diff options
Diffstat (limited to 'apps/plugins/chopper.c')
-rw-r--r-- | apps/plugins/chopper.c | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/apps/plugins/chopper.c b/apps/plugins/chopper.c index c2084f3d0b..5e27a5e6e7 100644 --- a/apps/plugins/chopper.c +++ b/apps/plugins/chopper.c | |||
@@ -25,13 +25,17 @@ | |||
25 | 25 | ||
26 | PLUGIN_HEADER | 26 | PLUGIN_HEADER |
27 | 27 | ||
28 | /*Still To do:*/ | 28 | /* |
29 | /* - Make original speed and further increases in speed depend more on screen size*/ | 29 | Still To do: |
30 | /* - attempt to make the tunnels get narrower as the game goes on*/ | 30 | - Make original speed and further increases in speed depend more on screen size |
31 | /* - make the chopper look better, maybe a picture, and scale according to screen size*/ | 31 | - attempt to make the tunnels get narrower as the game goes on |
32 | /* - use textures for the color screens for background and terrain, eg stars on background*/ | 32 | - make the chopper look better, maybe a picture, and scale according |
33 | /* - allow choice of different levels [later: different screen themes]*/ | 33 | to screen size |
34 | /* - better high score handling, improved screen etc. */ | 34 | - use textures for the color screens for background and terrain, |
35 | eg stars on background | ||
36 | - allow choice of different levels [later: different screen themes] | ||
37 | - better high score handling, improved screen etc. | ||
38 | */ | ||
35 | 39 | ||
36 | #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD) | 40 | #if (CONFIG_KEYPAD == IRIVER_H100_PAD) || (CONFIG_KEYPAD == IRIVER_H300_PAD) |
37 | 41 | ||
@@ -177,7 +181,7 @@ static void chopRenderTerrain(struct CTerrain *ter); | |||
177 | void chopper_load(bool newgame); | 181 | void chopper_load(bool newgame); |
178 | void cleanup_chopper(void); | 182 | void cleanup_chopper(void); |
179 | 183 | ||
180 | static void chopDrawPlayer(int x,int y) /* These are SCREEN coords, not world! */ | 184 | static void chopDrawPlayer(int x,int y) /* These are SCREEN coords, not world!*/ |
181 | { | 185 | { |
182 | 186 | ||
183 | #if LCD_DEPTH > 2 | 187 | #if LCD_DEPTH > 2 |
@@ -201,7 +205,8 @@ static void chopDrawPlayer(int x,int y) /* These are SCREEN coords, not world! * | |||
201 | #elif LCD_DEPTH == 2 | 205 | #elif LCD_DEPTH == 2 |
202 | rb->lcd_set_foreground(LCD_BLACK); | 206 | rb->lcd_set_foreground(LCD_BLACK); |
203 | #endif | 207 | #endif |
204 | rb->lcd_drawline(SCALE(x), SCALE(y+iRotorOffset), SCALE(x+20), SCALE(y-iRotorOffset)); | 208 | rb->lcd_drawline(SCALE(x), SCALE(y+iRotorOffset), SCALE(x+20), |
209 | SCALE(y-iRotorOffset)); | ||
205 | 210 | ||
206 | #if LCD_DEPTH > 2 | 211 | #if LCD_DEPTH > 2 |
207 | rb->lcd_set_foreground(LCD_RGBPACK(20,20,50)); | 212 | rb->lcd_set_foreground(LCD_RGBPACK(20,20,50)); |
@@ -871,13 +876,18 @@ static void chopRenderTerrain(struct CTerrain *ter) | |||
871 | 876 | ||
872 | rb->lcd_drawline(SCALE(x), SCALE(y), SCALE(x2), SCALE(y2)); | 877 | rb->lcd_drawline(SCALE(x), SCALE(y), SCALE(x2), SCALE(y2)); |
873 | 878 | ||
874 | xlcd_filltriangle(SCALE(x), SCALE(y), SCALE(x2), SCALE(y2), SCALE(x2), SCALE(ay)); | 879 | xlcd_filltriangle(SCALE(x), SCALE(y), SCALE(x2), SCALE(y2), |
875 | xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x2), SCALE(y2), SCALE(x2), SCALE(ay)); | 880 | SCALE(x2), SCALE(ay)); |
881 | xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x2), SCALE(y2), | ||
882 | SCALE(x2), SCALE(ay)); | ||
876 | 883 | ||
877 | if (ay == 0) | 884 | if (ay == 0) |
878 | xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x), SCALE(y), SCALE(x2), SCALE(y2 / 2)); | 885 | xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x), SCALE(y), |
886 | SCALE(x2), SCALE(y2 / 2)); | ||
879 | else | 887 | else |
880 | xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x), SCALE(y), SCALE(x2), SCALE((LCD_HEIGHT*SIZE) - ((LCD_HEIGHT*SIZE) - y2) / 2)); | 888 | xlcd_filltriangle(SCALE(x), SCALE(ay), SCALE(x), SCALE(y), |
889 | SCALE(x2), SCALE((LCD_HEIGHT*SIZE) - | ||
890 | ((LCD_HEIGHT*SIZE) - y2) / 2)); | ||
881 | 891 | ||
882 | oldx = x; | 892 | oldx = x; |
883 | i++; | 893 | i++; |