From 2bb09b07f2bfe3414f5a3320f26d26649a832824 Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Thu, 1 Jan 2015 07:04:55 +0100 Subject: [PATCH] some stupid speed --- game.h | 4 ++-- main.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/game.h b/game.h index 9926a91..af5c903 100644 --- a/game.h +++ b/game.h @@ -10,8 +10,8 @@ #include "SDL/SDL.h" #include "SDL_prims.h" -#define SCREEN_WIDTH 640 -#define SCREEN_HEIGHT 480 +#define SCREEN_WIDTH 1000 +#define SCREEN_HEIGHT 700 #define SCREEN_DIAGONAL (sqrt(SCREEN_HEIGHT*SCREEN_HEIGHT + SCREEN_WIDTH*SCREEN_WIDTH)) diff --git a/main.c b/main.c index d455528..3851b37 100644 --- a/main.c +++ b/main.c @@ -30,7 +30,7 @@ start: while(1) { SDL_FillRect(ga.screen, NULL, 0); - if(!(ga.counter % 30)) { + if(!(ga.counter % 28)) { add_random_obstacle(&ga); } update_obstacles(&ga); @@ -51,10 +51,10 @@ start: if(rand()%30 == 0) { rotation += rand()%20 - 10; - if(rotation > 10) - rotation = 10; - if(rotation < -10) - rotation = -10; + if(rotation > 15) + rotation = 15; + if(rotation < -13) + rotation = -13; } ga.general_rotation += rotation; ga.general_rotation %= ANGLE_MAX;