diff options
Diffstat (limited to 'apps/recorder/snake.c')
-rw-r--r-- | apps/recorder/snake.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/apps/recorder/snake.c b/apps/recorder/snake.c index b0e42d8fd0..8c14527bd5 100644 --- a/apps/recorder/snake.c +++ b/apps/recorder/snake.c | |||
@@ -20,7 +20,7 @@ dir is the current direction of the snake - 0=up, 1=right, 2=down, 3=left; | |||
20 | #include "button.h" | 20 | #include "button.h" |
21 | #include "kernel.h" | 21 | #include "kernel.h" |
22 | #include "menu.h" | 22 | #include "menu.h" |
23 | 23 | #include "lang.h" | |
24 | 24 | ||
25 | int board[28][16],snakelength; | 25 | int board[28][16],snakelength; |
26 | unsigned int score,hiscore=0; | 26 | unsigned int score,hiscore=0; |
@@ -35,14 +35,14 @@ void die (void) { | |||
35 | lcd_clear_display(); | 35 | lcd_clear_display(); |
36 | snprintf(pscore,sizeof(pscore),"%d",score); | 36 | snprintf(pscore,sizeof(pscore),"%d",score); |
37 | lcd_putsxy(3,12,"oops...",0); | 37 | lcd_putsxy(3,12,"oops...",0); |
38 | lcd_putsxy(3,22,"Your Score :",0); | 38 | lcd_putsxy(3,22,str(LANG_SNAKE_SCORE),0); |
39 | lcd_putsxy(3,32, pscore,0); | 39 | lcd_putsxy(3,32, pscore,0); |
40 | if (score>hiscore) { | 40 | if (score>hiscore) { |
41 | hiscore=score; | 41 | hiscore=score; |
42 | lcd_putsxy(3,42,"New High Score!",0); | 42 | lcd_putsxy(3,42,str(LANG_SNAKE_HISCORE_NEW),0); |
43 | } | 43 | } |
44 | else { | 44 | else { |
45 | snprintf(hscore,sizeof(hscore),"High Score %d",hiscore); | 45 | snprintf(hscore,sizeof(hscore),str(LANG_SNAKE_HISCORE),hiscore); |
46 | lcd_putsxy(3,42,hscore,0); | 46 | lcd_putsxy(3,42,hscore,0); |
47 | } | 47 | } |
48 | lcd_update(); | 48 | lcd_update(); |
@@ -141,9 +141,9 @@ void redraw (void) { | |||
141 | 141 | ||
142 | void game_pause (void) { | 142 | void game_pause (void) { |
143 | lcd_clear_display(); | 143 | lcd_clear_display(); |
144 | lcd_putsxy(3,12,"Game Paused",0); | 144 | lcd_putsxy(3,12,str(LANG_SNAKE_PAUSE),0); |
145 | lcd_putsxy(3,22,"[play] to resume",0); | 145 | lcd_putsxy(3,22,str(LANG_SNAKE_RESUME),0); |
146 | lcd_putsxy(3,32,"[off] to quit",0); | 146 | lcd_putsxy(3,32,str(LANG_SNAKE_QUIT),0); |
147 | lcd_update(); | 147 | lcd_update(); |
148 | while (1) { | 148 | while (1) { |
149 | switch (button_get(true)) { | 149 | switch (button_get(true)) { |
@@ -221,12 +221,12 @@ void game_init(void) { | |||
221 | 221 | ||
222 | 222 | ||
223 | lcd_clear_display(); | 223 | lcd_clear_display(); |
224 | snprintf(plevel,sizeof(plevel),"Level - %d",level); | 224 | snprintf(plevel,sizeof(plevel),str(LANG_SNAKE_LEVEL),level); |
225 | snprintf(phscore,sizeof(phscore),"High Score - %d",hiscore); | 225 | snprintf(phscore,sizeof(phscore),str(LANG_SNAKE_HISCORE),hiscore); |
226 | lcd_putsxy(3,2, plevel,0); | 226 | lcd_putsxy(3,2, plevel,0); |
227 | lcd_putsxy(3,12, "(1 - slow, 9 - fast)",0); | 227 | lcd_putsxy(3,12, str(LANG_SNAKE_RANGE),0); |
228 | lcd_putsxy(3,22, "[off] to quit",0); | 228 | lcd_putsxy(3,22, str(LANG_SNAKE_QUIT),0); |
229 | lcd_putsxy(3,32, "[play] to start/pause",0); | 229 | lcd_putsxy(3,32, str(LANG_SNAKE_START),0); |
230 | lcd_putsxy(3,42, phscore,0); | 230 | lcd_putsxy(3,42, phscore,0); |
231 | lcd_update(); | 231 | lcd_update(); |
232 | 232 | ||
@@ -250,7 +250,7 @@ void game_init(void) { | |||
250 | return; | 250 | return; |
251 | break; | 251 | break; |
252 | } | 252 | } |
253 | snprintf(plevel,sizeof(plevel),"Level - %d",level); | 253 | snprintf(plevel,sizeof(plevel),str(LANG_SNAKE_LEVEL),level); |
254 | lcd_putsxy(3,2, plevel,0); | 254 | lcd_putsxy(3,2, plevel,0); |
255 | lcd_update(); | 255 | lcd_update(); |
256 | } | 256 | } |