Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2011-10-17 | pacman: Use the gray value of the color for the outlineHEADmaster | Benjamin Otte | 1 | -5/+5 | |
2011-10-17 | geom: Add game_color_to_gray() | Benjamin Otte | 2 | -0/+11 | |
Returns the gray value of a color. Alpha is ignored. | |||||
2011-10-16 | sheep: Setting the graphic once should be enough | Benjamin Otte | 1 | -1/+0 | |
2011-10-16 | resource: Add to_string() function to file resources | Benjamin Otte | 1 | -0/+10 | |
2011-10-16 | animation: Allow empty animation frames | Benjamin Otte | 2 | -16/+82 | |
In that case, the current image will be kept. I don't like the current approach of using maybe values, but it works. Tis fixes bomber animations being too fast. | |||||
2011-10-16 | bomb: Handle graphics differently | Benjamin Otte | 1 | -8/+6 | |
When the bomb isn't existing, remove the graphic. Reload it when the bomb is dropped. | |||||
2011-10-16 | game: Fix refcounting for viewport and icon | Benjamin Otte | 1 | -2/+10 | |
2011-10-16 | game: Get rid of named objects | Benjamin Otte | 3 | -53/+22 | |
Instead, rely on resources by name. | |||||
2011-10-16 | bomber: Rewrite to make use of resources | Benjamin Otte | 7 | -121/+286 | |
2011-10-16 | game: Add a resource file to what is loaded by default | Benjamin Otte | 1 | -0/+55 | |
Load the gvariant printed file $gamename.resources when the game starts. This file contains all the resources used by the game. These resources are available by name using game_game_get_resource() (and can be automatically used using game_game_spawn_object() and other helper functions). | |||||
2011-10-16 | game: Replace deprecated function with undeprecated one | Benjamin Otte | 1 | -1/+1 | |
2011-10-16 | game: Add game_game_spawn_object() convenience function | Benjamin Otte | 2 | -0/+16 | |
2011-10-16 | resource: Add game_resource_register_all_resources() | Benjamin Otte | 1 | -0/+17 | |
... and use it. This ensures that all GTypes for resources exist when we need them. | |||||
2011-10-16 | game: Add game_game_load_resource() | Benjamin Otte | 3 | -1/+17 | |
The function will load a file and return it as a GDataResource. This is the only function that should be used for loading data in games. | |||||
2011-10-16 | game: Rename game_game_load_resource() | Benjamin Otte | 3 | -5/+5 | |
... to game_game_load_old_resource(). I want the name for something else. | |||||
2011-10-16 | game: Add game_game_get_resource() | Benjamin Otte | 3 | -1/+19 | |
For now it's equivalent to game_game_get_object() restricted to resources. | |||||
2011-10-16 | resource: Add animation resources | Benjamin Otte | 6 | -0/+334 | |
2011-10-16 | animation: Remove ability to specify a duration per frame | Benjamin Otte | 3 | -53/+16 | |
This momentarily breaks bomber, but will be fixed in later commits. | |||||
2011-10-16 | animation: Remove ability to create animations from GdkPixbuf | Benjamin Otte | 2 | -74/+0 | |
It was unused anyway, and it's a bad idea. | |||||
2011-10-16 | resource: Add resources for images | Benjamin Otte | 4 | -0/+335 | |
2011-10-16 | image: Use cairo-gobject for types from cairo objects | Benjamin Otte | 3 | -16/+6 | |
2011-10-16 | resource: Add a resource for files | Benjamin Otte | 4 | -0/+235 | |
2011-10-16 | resource: Add a data resource | Benjamin Otte | 4 | -0/+189 | |
This should be the only way data (for images, sounds, maps, your mom, ...) enters the game. | |||||
2011-10-16 | resource: Add resources | Benjamin Otte | 4 | -0/+172 | |
Resources are (immutable in the game) objects that potentially can spawn instances for in-game happenings. Some resources just exist for other resources to use. They are also able to be serialized and deserialized to GVariants, so that it's easy to create them from files. | |||||
2011-10-16 | object: Add game_object_load() and game_object_save() | Benjamin Otte | 2 | -0/+109 | |
2011-10-15 | animation: Remove unused cache member | Benjamin Otte | 1 | -4/+1 | |
2011-10-15 | ui: Recreate UI files for GTK 3 port | Benjamin Otte | 2 | -170/+96 | |
Done by loading and then saving the files in Glade. | |||||
2011-10-15 | gnome: Port to GTK 3 | Benjamin Otte | 5 | -50/+55 | |
2011-10-15 | graphic: Remove the area argument form draw vfunc | Benjamin Otte | 14 | -25/+23 | |
It turns out that with the new clipping machinery it was only used in one place. | |||||
2011-10-15 | graphic: Remove game_graphic_draw_area() function | Benjamin Otte | 5 | -40/+7 | |
Use game_graphic_draw() + clipping instead. | |||||
2011-10-15 | graphic: Remove last traces of cache | Benjamin Otte | 2 | -6/+0 | |
2011-10-15 | graphic: Remove game_graphic_invalidate_cache() | Benjamin Otte | 2 | -13/+0 | |
No cache, no invalidation needed. | |||||
2011-10-15 | graphic: Remove game_cairo_pattern_matches() | Benjamin Otte | 2 | -23/+0 | |
Unused function. | |||||
2011-10-15 | graphic: Remove game_graphic_draw_area_no_cache() | Benjamin Otte | 2 | -27/+16 | |
Caches are gone, so there's no need for this function. | |||||
2011-10-15 | graphic: Remove support for caching | Benjamin Otte | 6 | -137/+1 | |
Cairo is fast, yadayada... | |||||
2011-10-15 | colored: Don't use the get_cache() function | Benjamin Otte | 1 | -6/+9 | |
2011-10-15 | rectangle: Introduce game_rectangle_path() | Benjamin Otte | 3 | -1/+25 | |
Just a tiny convenience function to draw rectangles. | |||||
2011-10-15 | sheep: Ensure the board size doesn't cause overflow in cairo | Benjamin Otte | 1 | -1/+4 | |
2011-10-14 | state: Provide the default keymap as argument | Benjamin Otte | 1 | -1/+1 | |
This is for forward-portability with GTK 3. | |||||
2011-10-14 | board: Use dispose instead of destroy vfunc | Benjamin Otte | 1 | -6/+4 | |
2011-10-14 | window: Use gtk_widget_destroy() instead of gtk_object_destroy() | Benjamin Otte | 1 | -1/+1 | |
Why is gtk_object_destroy() not deprecated? | |||||
2011-10-14 | state: Use GTK 3 compatible key name | Benjamin Otte | 1 | -1/+1 | |
2011-10-14 | cellrenderercolor: Use correct type name | Benjamin Otte | 1 | -1/+1 | |
2011-10-14 | window: Fix includes | Benjamin Otte | 2 | -6/+7 | |
We want to compile fine with GTK_DISABLE_SINGLE_INCLUDES | |||||
2011-10-14 | cellrendererkeys: Fix includes | Benjamin Otte | 2 | -3/+4 | |
We want to compile fine with GTK_DISABLE_SINGLE_INCLUDES | |||||
2011-10-14 | highscore: Fix includes | Benjamin Otte | 2 | -3/+5 | |
We want to compile fine with GTK_DISABLE_SINGLE_INCLUDES | |||||
2011-10-14 | keyboard-config: Fix includes | Benjamin Otte | 2 | -4/+5 | |
We want to compile fine with GTK_DISABLE_SINGLE_INCLUDES | |||||
2011-10-14 | cellrenderercolor: Don't use sealed variables | Benjamin Otte | 1 | -18/+26 | |
2011-10-14 | board: Don't use sealed variables | Benjamin Otte | 1 | -4/+6 | |
2011-10-14 | board: Chain to parent in size_allocate | Benjamin Otte | 1 | -1/+2 | |