X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=main.c;h=a2d7bee15a89930549191d8a34403c2b178d0654;hp=f7de24e0f20c1aa38985c52bff1c59facbedc02c;hb=4aca4a973f11e4636a7797af416b4c03e41740a0;hpb=0224eb908d4084f52a22c8d64404a0efb4acfa35 diff --git a/main.c b/main.c index f7de24e..a2d7bee 100644 --- a/main.c +++ b/main.c @@ -563,8 +563,6 @@ static inline void kill_ship(Sprite *ship) { ship->flags = MOVE; - // ship->flags = MOVE|DRAW; // FADE SHIP - // SDL_SetAlpha(ship->image, SDL_SRCALPHA, 0); // FADE SHIP bang = true; } @@ -632,18 +630,7 @@ gameloop() { } } else { if(state == DEAD_PAUSE) { - float blast_radius; - // float alpha; // FADE SHIP - if(state_timeout >= DEAD_PAUSE_LENGTH - 20.0) { - blast_radius = BLAST_RADIUS * (DEAD_PAUSE_LENGTH - state_timeout) / 20.0; - blast_rocks(bangx, bangy, blast_radius); - } - if(bangx < 60) bangx = 60; - - // FADE SHIP - // alpha = 255.0 * (DEAD_PAUSE_LENGTH - state_timeout) / DEAD_PAUSE_LENGTH; - // SDL_SetAlpha(ship.image, SDL_SRCALPHA, (uint8_t)alpha); } } @@ -732,7 +719,6 @@ gameloop() { ship.dx = screendx; ship.dy = screendy; ship.lives = 4; ship.flags = MOVE|DRAW|COLLIDE; - // SDL_SetAlpha(ship.image, SDL_SRCALPHA, SDL_ALPHA_OPAQUE); // FADE SHIP add_sprite(SPRITE(&ship)); score = 0;