Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: [patch] new game "Wormlet"
From: Philipp Pertermann (Philipp.Pertermann_at_web.de)
Date: 2002-08-25


Hi! I just did my first "Hello World" excercise. Usually my first
program is always tetris. But since this already has been done I had to
implement another game of similar simplicity. Thus here is Wormlet!
I just am not quite sure wether I used all the necessary #ifdefs but
since the code is completely in apps\recorder (which I was told would
only be used with recorder specific targets) I don't expect much trouble.

Oh, yes. And I did patch tetris because after loosing the game the score
wouldn't remain visible. -> No high score to show off to your friends -
an unbearable situation.

Phil

Ps.: Does that earn me a free T-Shirt now? ;)

-- 
http://www.x-phobie.de
mailto:phil_at_x-phobie.de
AOL Instant Messenger: langhaarRocker
ICQ: 113881639


RCS file: /cvsroot/rockbox/apps/games_menu.c,v
retrieving revision 1.4
diff -u -b -r1.4 games_menu.c
--- games_menu.c 23 Aug 2002 12:32:52 -0000 1.4
+++ games_menu.c 25 Aug 2002 18:33:09 -0000
@@ -29,6 +29,7 @@
 #include "sprintf.h"
 
 #include "sokoban.h"
+#include "wormlet.h"
 extern Menu tetris(void);
 
 Menu games_menu(void)
@@ -39,6 +40,7 @@
     struct menu_items items[] = {
         { "Tetris", tetris },
         { "Sokoban", sokoban },
+ { "Wormlet", wormlet }
     };
 
     m=menu_init( items, sizeof items / sizeof(struct menu_items) );

Index: recorder/tetris.c
===================================================================
RCS file: /cvsroot/rockbox/apps/recorder/tetris.c,v
retrieving revision 1.23
diff -u -b -r1.23 tetris.c
--- recorder/tetris.c 23 Aug 2002 12:32:52 -0000 1.23
+++ recorder/tetris.c 25 Aug 2002 18:33:11 -0000
@@ -316,7 +316,7 @@
         }
 
         snprintf (s, sizeof(s), "%d Rows - Level %d", lines, level);
- lcd_putsxy (2, 52, s, 0);
+ lcd_putsxy (2, 42, s, 0);
 
         new_block();
         move_block(0,0,0);
@@ -394,7 +394,7 @@
     init_tetris();
 
     draw_frame(start_x, start_x + max_x - 1, start_y - 1, start_y + max_y);
- lcd_putsxy (2, 52, "0 Rows - Level 0", 0);
+ lcd_putsxy (2, 42, "0 Rows - Level 0", 0);
     lcd_update();
 
     next_b = t_rand(blocks);



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa