forked from len0rd/rockbox
code police (and commit test)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14677 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ede16c7d37
commit
72221fbf79
1 changed files with 23 additions and 13 deletions
|
|
@ -25,13 +25,17 @@
|
||||||
|
|
||||||
PLUGIN_HEADER
|
PLUGIN_HEADER
|
||||||
|
|
||||||
/*Still To do:*/
|
/*
|
||||||
/* - Make original speed and further increases in speed depend more on screen size*/
|
Still To do:
|
||||||
/* - attempt to make the tunnels get narrower as the game goes on*/
|
- Make original speed and further increases in speed depend more on screen size
|
||||||
/* - make the chopper look better, maybe a picture, and scale according to screen size*/
|
- attempt to make the tunnels get narrower as the game goes on
|
||||||
/* - use textures for the color screens for background and terrain, eg stars on background*/
|
- make the chopper look better, maybe a picture, and scale according
|
||||||
/* - allow choice of different levels [later: different screen themes]*/
|
to screen size
|
||||||
/* - better high score handling, improved screen etc. */
|
- use textures for the color screens for background and terrain,
|
||||||
|
eg stars on background
|
||||||
|
- allow choice of different levels [later: different screen themes]
|
||||||
|
- better high score handling, improved screen etc.
|
||||||
|
*/
|
||||||
|
|
||||||
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
|
#if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD)
|
||||||
|
|
||||||
|
|
@ -201,7 +205,8 @@ static void chopDrawPlayer(int x,int y) /* These are SCREEN coords, not world! *
|
||||||
#elif LCD_DEPTH == 2
|
#elif LCD_DEPTH == 2
|
||||||
rb->lcd_set_foreground(LCD_BLACK);
|
rb->lcd_set_foreground(LCD_BLACK);
|
||||||
#endif
|
#endif
|
||||||
rb->lcd_drawline(SCALE(x), SCALE(y+iRotorOffset), SCALE(x+20), SCALE(y-iRotorOffset));
|
rb->lcd_drawline(SCALE(x), SCALE(y+iRotorOffset), SCALE(x+20),
|
||||||
|
SCALE(y-iRotorOffset));
|
||||||
|
|
||||||
#if LCD_DEPTH > 2
|
#if LCD_DEPTH > 2
|
||||||
rb->lcd_set_foreground(LCD_RGBPACK(20,20,50));
|
rb->lcd_set_foreground(LCD_RGBPACK(20,20,50));
|
||||||
|
|
@ -871,13 +876,18 @@ static void chopRenderTerrain(struct CTerrain *ter)
|
||||||
|
|
||||||
rb->lcd_drawline(SCALE(x), SCALE(y), SCALE(x2), SCALE(y2));
|
rb->lcd_drawline(SCALE(x), SCALE(y), SCALE(x2), SCALE(y2));
|
||||||
|
|
||||||
xlcd_filltriangle(SCALE(x), SCALE(y), SCALE(x2), SCALE(y2), SCALE(x2), SCALE(ay));
|
xlcd_filltriangle(SCALE(x), SCALE(y), SCALE(x2), SCALE(y2),
|
||||||
xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x2), SCALE(y2), SCALE(x2), SCALE(ay));
|
SCALE(x2), SCALE(ay));
|
||||||
|
xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x2), SCALE(y2),
|
||||||
|
SCALE(x2), SCALE(ay));
|
||||||
|
|
||||||
if (ay == 0)
|
if (ay == 0)
|
||||||
xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x), SCALE(y), SCALE(x2), SCALE(y2 / 2));
|
xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x), SCALE(y),
|
||||||
|
SCALE(x2), SCALE(y2 / 2));
|
||||||
else
|
else
|
||||||
xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x), SCALE(y), SCALE(x2), SCALE((LCD_HEIGHT*SIZE) - ((LCD_HEIGHT*SIZE) - y2) / 2));
|
xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x), SCALE(y),
|
||||||
|
SCALE(x2), SCALE((LCD_HEIGHT*SIZE) -
|
||||||
|
((LCD_HEIGHT*SIZE) - y2) / 2));
|
||||||
|
|
||||||
oldx = x;
|
oldx = x;
|
||||||
i++;
|
i++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue