summaryrefslogtreecommitdiffstats
path: root/apps/recorder/bounce.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-13 15:01:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-13 15:01:59 +0000
commit6f79d250ca65d858d68e13bdb5220aa70336a04f (patch)
tree308c9ae13cc91d4d7ecb099a73ff32e691b6baf4 /apps/recorder/bounce.c
parent2ddfabc4fb497f07d773221dca5a1bfd11f9984a (diff)
downloadrockbox-6f79d250ca65d858d68e13bdb5220aa70336a04f.tar.gz
rockbox-6f79d250ca65d858d68e13bdb5220aa70336a04f.tar.bz2
rockbox-6f79d250ca65d858d68e13bdb5220aa70336a04f.zip
made the movement a bit slower to appear smoother
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1714 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/bounce.c')
-rw-r--r--apps/recorder/bounce.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/apps/recorder/bounce.c b/apps/recorder/bounce.c
index a2afe29430..6b500964f0 100644
--- a/apps/recorder/bounce.c
+++ b/apps/recorder/bounce.c
@@ -54,7 +54,7 @@ static void loopit(void)
int yy,xx;
unsigned int i;
- char rock[]={'R', 'O', 'C', 'K', 'b', 'o', 'x'};
+ char rock[]="ROCKbox";
lcd_clear_display();
while(1)
@@ -62,23 +62,17 @@ static void loopit(void)
b = button_get(false);
if ( b & BUTTON_OFF )
return;
-#if 1
+
lcd_clear_display();
-#else
- lcd_clearrect(xtable[x&63], table[y&63], 11, 16);
- lcd_clearrect(xtable[(x+XDIFF)&63], table[(y+YDIFF)&63], 11, 16);
- lcd_clearrect(xtable[(x+XDIFF*2)&63], table[(y+YDIFF*2)&63], 11, 16);
- lcd_clearrect(xtable[(x+XDIFF*3)&63], table[(y+YDIFF*3)&63], 11, 16);
- lcd_clearrect(xtable[(x+XDIFF*4)&63], table[(y+YDIFF*4)&63], 11, 16);
- lcd_clearrect(xtable[(x+XDIFF*5)&63], table[(y+YDIFF*5)&63], 11, 16);
- lcd_clearrect(xtable[(x+XDIFF*6)&63], table[(y+YDIFF*6)&63], 11, 16);
-#endif
- y+=3;
+ y++;
+ y += (y%13)?1:2;
+
x++;
+ x += (x%17)?0:1;
yy=y;
xx=x;
- for(i=0; i<sizeof(rock)/sizeof(rock[0]); i++, yy+=YDIFF, xx+=XDIFF)
+ for(i=0; i<sizeof(rock)-1; i++, yy+=YDIFF, xx+=XDIFF)
lcd_bitmap((char *)char_gen_12x16[rock[i]-0x20],
xtable[xx&63], table[yy&63],
11, 16, false);