From 0843e88374798bd0fc6a4da2a85b8cc0f3d0f356 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Mon, 13 Dec 2004 18:41:21 +0000 Subject: [PATCH] no starting shields ever rocks near starting position dissapear when you die so you can reapear safely --- main.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index a186431..fe58efa 100644 --- a/main.c +++ b/main.c @@ -53,6 +53,7 @@ void clearBuffer(); #define W 100 #define M 255 #define BIG_FONT_FILE "fonts/score.png" +#define STARTSPACE 430 // pixels from the left which will be cleared of rocks when you die // }}} // macros {{{ #define CONDERROR(a) if((a)) {initerror = strdup(SDL_GetError());return 1;} @@ -1106,12 +1107,17 @@ int gameloop() { // Create a new ship and start all over again state = GAMEPLAY; play_tune(1); - initialshield = 150; + initialshield = 0; xship = 10; yship = YSIZE/2; - xvel = 2; + xvel = 3; yvel = 0; shieldlevel = 3*W; + for(i = 0; i