|
Rockbox mail archiveSubject: [patch] new game "Wormlet"[patch] new game "Wormlet"
From: Philipp Pertermann <Philipp.Pertermann_at_web.de>
Date: Sun, 25 Aug 2002 21:19:52 +0200 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 _at__at_ -29,6 +29,7 _at__at_ #include "sprintf.h" #include "sokoban.h" +#include "wormlet.h" extern Menu tetris(void); Menu games_menu(void) _at__at_ -39,6 +40,7 _at__at_ 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 _at__at_ -316,7 +316,7 _at__at_ } 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); _at__at_ -394,7 +394,7 _at__at_ 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 template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |