X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=main.c;h=a2d7bee15a89930549191d8a34403c2b178d0654;hp=4ffcb250cbbb7370eafb4c1907426ee22ad42f54;hb=4aca4a973f11e4636a7797af416b4c03e41740a0;hpb=0a50d8514cb73c25964068602ec458c6ac46ba22 diff --git a/main.c b/main.c index 4ffcb25..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,13 +630,7 @@ gameloop() { } } else { if(state == DEAD_PAUSE) { - // float alpha; // FADE SHIP - 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); } } @@ -727,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;