From: Jason Woofenden Date: Mon, 13 Dec 2004 18:41:21 +0000 (+0000) Subject: no starting shields ever X-Git-Tag: 0.1~40 X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=commitdiff_plain;h=0843e88374798bd0fc6a4da2a85b8cc0f3d0f356 no starting shields ever rocks near starting position dissapear when you die so you can reapear safely --- 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