summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-10-17pacman: Use the gray value of the color for the outlineHEADmasterBenjamin Otte1-5/+5
2011-10-17geom: Add game_color_to_gray()Benjamin Otte2-0/+11
Returns the gray value of a color. Alpha is ignored.
2011-10-16sheep: Setting the graphic once should be enoughBenjamin Otte1-1/+0
2011-10-16resource: Add to_string() function to file resourcesBenjamin Otte1-0/+10
2011-10-16animation: Allow empty animation framesBenjamin Otte2-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-16bomb: Handle graphics differentlyBenjamin Otte1-8/+6
When the bomb isn't existing, remove the graphic. Reload it when the bomb is dropped.
2011-10-16game: Fix refcounting for viewport and iconBenjamin Otte1-2/+10
2011-10-16game: Get rid of named objectsBenjamin Otte3-53/+22
Instead, rely on resources by name.
2011-10-16bomber: Rewrite to make use of resourcesBenjamin Otte7-121/+286
2011-10-16game: Add a resource file to what is loaded by defaultBenjamin Otte1-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-16game: Replace deprecated function with undeprecated oneBenjamin Otte1-1/+1
2011-10-16game: Add game_game_spawn_object() convenience functionBenjamin Otte2-0/+16
2011-10-16resource: Add game_resource_register_all_resources()Benjamin Otte1-0/+17
... and use it. This ensures that all GTypes for resources exist when we need them.
2011-10-16game: Add game_game_load_resource()Benjamin Otte3-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-16game: Rename game_game_load_resource()Benjamin Otte3-5/+5
... to game_game_load_old_resource(). I want the name for something else.
2011-10-16game: Add game_game_get_resource()Benjamin Otte3-1/+19
For now it's equivalent to game_game_get_object() restricted to resources.
2011-10-16resource: Add animation resourcesBenjamin Otte6-0/+334
2011-10-16animation: Remove ability to specify a duration per frameBenjamin Otte3-53/+16
This momentarily breaks bomber, but will be fixed in later commits.
2011-10-16animation: Remove ability to create animations from GdkPixbufBenjamin Otte2-74/+0
It was unused anyway, and it's a bad idea.
2011-10-16resource: Add resources for imagesBenjamin Otte4-0/+335
2011-10-16image: Use cairo-gobject for types from cairo objectsBenjamin Otte3-16/+6
2011-10-16resource: Add a resource for filesBenjamin Otte4-0/+235
2011-10-16resource: Add a data resourceBenjamin Otte4-0/+189
This should be the only way data (for images, sounds, maps, your mom, ...) enters the game.
2011-10-16resource: Add resourcesBenjamin Otte4-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-16object: Add game_object_load() and game_object_save()Benjamin Otte2-0/+109
2011-10-15animation: Remove unused cache memberBenjamin Otte1-4/+1
2011-10-15ui: Recreate UI files for GTK 3 portBenjamin Otte2-170/+96
Done by loading and then saving the files in Glade.
2011-10-15gnome: Port to GTK 3Benjamin Otte5-50/+55
2011-10-15graphic: Remove the area argument form draw vfuncBenjamin Otte14-25/+23
It turns out that with the new clipping machinery it was only used in one place.
2011-10-15graphic: Remove game_graphic_draw_area() functionBenjamin Otte5-40/+7
Use game_graphic_draw() + clipping instead.
2011-10-15graphic: Remove last traces of cacheBenjamin Otte2-6/+0
2011-10-15graphic: Remove game_graphic_invalidate_cache()Benjamin Otte2-13/+0
No cache, no invalidation needed.
2011-10-15graphic: Remove game_cairo_pattern_matches()Benjamin Otte2-23/+0
Unused function.
2011-10-15graphic: Remove game_graphic_draw_area_no_cache()Benjamin Otte2-27/+16
Caches are gone, so there's no need for this function.
2011-10-15graphic: Remove support for cachingBenjamin Otte6-137/+1
Cairo is fast, yadayada...
2011-10-15colored: Don't use the get_cache() functionBenjamin Otte1-6/+9
2011-10-15rectangle: Introduce game_rectangle_path()Benjamin Otte3-1/+25
Just a tiny convenience function to draw rectangles.
2011-10-15sheep: Ensure the board size doesn't cause overflow in cairoBenjamin Otte1-1/+4
2011-10-14state: Provide the default keymap as argumentBenjamin Otte1-1/+1
This is for forward-portability with GTK 3.
2011-10-14board: Use dispose instead of destroy vfuncBenjamin Otte1-6/+4
2011-10-14window: Use gtk_widget_destroy() instead of gtk_object_destroy()Benjamin Otte1-1/+1
Why is gtk_object_destroy() not deprecated?
2011-10-14state: Use GTK 3 compatible key nameBenjamin Otte1-1/+1
2011-10-14cellrenderercolor: Use correct type nameBenjamin Otte1-1/+1
2011-10-14window: Fix includesBenjamin Otte2-6/+7
We want to compile fine with GTK_DISABLE_SINGLE_INCLUDES
2011-10-14cellrendererkeys: Fix includesBenjamin Otte2-3/+4
We want to compile fine with GTK_DISABLE_SINGLE_INCLUDES
2011-10-14highscore: Fix includesBenjamin Otte2-3/+5
We want to compile fine with GTK_DISABLE_SINGLE_INCLUDES
2011-10-14keyboard-config: Fix includesBenjamin Otte2-4/+5
We want to compile fine with GTK_DISABLE_SINGLE_INCLUDES
2011-10-14cellrenderercolor: Don't use sealed variablesBenjamin Otte1-18/+26
2011-10-14board: Don't use sealed variablesBenjamin Otte1-4/+6
2011-10-14board: Chain to parent in size_allocateBenjamin Otte1-1/+2