60UPS, 30FPS

This commit is contained in:
KikooDX 2020-05-16 12:20:33 +02:00
parent e718b2dcd6
commit 3ac6af2106
2 changed files with 9 additions and 6 deletions

View File

@ -2,4 +2,4 @@
#define PLAYER_W 11
#define LEVEL_WIDTH 28
#define LAST_LEVEL 5062
#define FPS 30
#define FPS 60

View File

@ -71,11 +71,14 @@ int main(void)
has_ticked = 0;
//START DRAW
step++;
DRAW_LEVEL();
draw_player(player_x, player_y);
draw_timer(step);
dupdate();
//END DRAW
if (step % 2)
{
DRAW_LEVEL();
draw_player(player_x, player_y);
draw_timer(step/2);
dupdate();
}
//END DRAW
clearevents();
//polarity swap first
if (keydown(KEY_OPTN))