Index: apps/plugins/chopper.c =================================================================== --- apps/plugins/chopper.c (revision 27826) +++ apps/plugins/chopper.c (working copy) @@ -182,28 +182,23 @@ #endif #define NUMBER_OF_BLOCKS 8 -#define NUMBER_OF_PARTICLES 3 +#define NUMBER_OF_PARTICLES 5 #define MAX_TERRAIN_NODES 15 #define LEVEL_MODE_NORMAL 0 #define LEVEL_MODE_STEEP 1 #if LCD_HEIGHT <= 64 -#define CYCLES 100 static inline int SCALE(int x) { return x == 1 ? x : x >> 1; } #define SIZE 2 #else -#define CYCLES 60 #define SCALE(x) (x) #define SIZE 1 #endif -/* in 10 milisecond (ticks) */ -#define CYCLETIME ((CYCLES*HZ)/1000) - /*Chopper's local variables to track the terrain position etc*/ static int chopCounter; static int iRotorOffset; @@ -783,7 +778,7 @@ while (!exit) { - end = *rb->current_tick + CYCLETIME; + end = *rb->current_tick + 1; if(chopUpdateTerrainRecycling(&mGround) == 1) /* mirror the sky if we've changed the ground */ @@ -838,7 +833,11 @@ ) bdelay = -2; if (bdelay == 0) - iPlayerSpeedY = -3; + #if SIZE==1 + iPlayerSpeedY = -2; + #elif SIZE==2 + iPlayerSpeedY = -1; + #endif break; default: @@ -849,7 +848,11 @@ ) bdelay = 3; if (bdelay == 0) - iPlayerSpeedY = 4; + #if SIZE==1 + iPlayerSpeedY = 2; + #elif SIZE==2 + iPlayerSpeedY = 1; + #endif if (rb->default_event_handler(move_button) == SYS_USB_CONNECTED) return PLUGIN_USB_CONNECTED; @@ -871,7 +874,11 @@ chopCounter++; /* increase speed as we go along */ - if (chopCounter == 100){ + #if SIZE==1 + if (chopCounter == 600){ + #elif SIZE==2 + if (chopCounter == 1000){ + #endif iPlayerSpeedX++; chopCounter=0; } @@ -998,7 +1005,11 @@ iLastBlockPlacedPosX = 0; iGravityTimerCountdown = 2; chopCounter = 0; - iPlayerSpeedX = 3; + #if SIZE==1 + iPlayerSpeedX = 2; + #elif SIZE==2 + iPlayerSpeedX = 1; + #endif iPlayerSpeedY = 0; iCameraPosX = 30;