Commit 6753250a authored by Bruno Coudoin's avatar Bruno Coudoin

added msvcr71.dll, not all windows have it. imported sounds from Tuxpaint.

	* Makefile.mingw.in: added msvcr71.dll, not all windows have it.
	* boards/sounds/README: imported sounds from Tuxpaint.
	* boards/sounds/brick.wav:
	* boards/sounds/line_end.wav:
	* src/boards/py-mod-gcompris.c: (python_gcompris_module_init):
	* src/boards/target.c: (animate_items), (launch_dart): added sounds.
	* src/boards/hanoi.c: (animate_items), (launch_dart): fixed bad index, was bringing
	  GC in an infinite loop.
parent 8c73e64f
2006-11-27 Bruno coudoin <bruno.coudoin@free.fr>
* Makefile.mingw.in: added msvcr71.dll, not all windows have it.
* boards/sounds/README: imported sounds from Tuxpaint.
* boards/sounds/brick.wav:
* boards/sounds/line_end.wav:
* src/boards/py-mod-gcompris.c: (python_gcompris_module_init):
* src/boards/target.c: (animate_items), (launch_dart): added sounds.
* src/boards/hanoi.c: (animate_items), (launch_dart): fixed bad index, was bringing
GC in an infinite loop.
2006-11-27 Bruno coudoin <bruno.coudoin@free.fr>
- Changed tha way we manage cursors. Now use the
......
......@@ -65,7 +65,8 @@ NEEDED_DLLS = $(GNUCHESS_TOP)/bin/pthreadGC.dll \
$(GTK_TOP)/bin/intl.dll \
$(GTK_TOP)/bin/libpng13.dll \
$(GTK_TOP)/bin/jpeg62.dll \
$(SQLITE_TOP)/sqlite3.dll
$(SQLITE_TOP)/sqlite3.dll \
/c/WINDOWS/system32/msvcr71.dll
NEEDED_FILES = README \
COPYING \
......
wahoo.ogg taken from the childsplay project: http://childsplay.sourceforge.net/
From TUXPAINT: line_end.wav brick.wav
......@@ -386,7 +386,7 @@ static GnomeCanvasItem *hanoi_create_item(GnomeCanvasGroup *parent)
{
done = FALSE;
i = (guint)g_random_int_range(0, number_of_item_x-2);
i = (guint)g_random_int_range(0, number_of_item_x);
/* Restrict the goal to lowest items */
j = (guint)g_random_int_range(0, 2);
......
......@@ -1659,7 +1659,6 @@ void python_gcompris_module_init(void)
/* Cursors constants */
PyModule_AddIntConstant(gcomprisModule, "CURSOR_FIRST_CUSTOM", GCOMPRIS_FIRST_CUSTOM_CURSOR);
PyModule_AddIntConstant(gcomprisModule, "CURSOR_BIG_RED_ARROW", GCOMPRIS_BIG_RED_ARROW_CURSOR);
PyModule_AddIntConstant(gcomprisModule, "CURSOR_LINE", GCOMPRIS_LINE_CURSOR);
PyModule_AddIntConstant(gcomprisModule, "CURSOR_FILLRECT", GCOMPRIS_FILLRECT_CURSOR);
PyModule_AddIntConstant(gcomprisModule, "CURSOR_RECT", GCOMPRIS_RECT_CURSOR);
......
......@@ -606,6 +606,8 @@ static void animate_items()
if(animate_item_distance-- == 0)
{
gc_sound_play_ogg ("sounds/brick.wav", NULL);
gtk_timeout_remove (animate_id);
animate_id = 0;
animate_item = NULL;
......@@ -630,6 +632,8 @@ static void launch_dart(double item_x, double item_y)
animate_item_size = MAX_DART_SIZE;
animate_item_distance = targetDefinition[gcomprisBoard->level-1].target_distance/10;
gc_sound_play_ogg ("sounds/line_end.wav", NULL);
animate_item = gnome_canvas_item_new (boardRootItem,
gnome_canvas_ellipse_get_type(),
"x1", (double)item_x-MAX_DART_SIZE,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment