Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0a50d85
)
removed ship fade in code (unused)
author
Joshua Grams
<josh@qualdan.com>
Sun, 26 Mar 2006 11:17:57 +0000
(11:17 +0000)
committer
Joshua Grams
<josh@qualdan.com>
Sun, 26 Mar 2006 11:17:57 +0000
(11:17 +0000)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
4ffcb25
..
a2d7bee
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-563,8
+563,6
@@
static inline void
kill_ship(Sprite *ship)
{
ship->flags = MOVE;
kill_ship(Sprite *ship)
{
ship->flags = MOVE;
- // ship->flags = MOVE|DRAW; // FADE SHIP
- // SDL_SetAlpha(ship->image, SDL_SRCALPHA, 0); // FADE SHIP
bang = true;
}
bang = true;
}
@@
-632,13
+630,7
@@
gameloop() {
}
} else {
if(state == DEAD_PAUSE) {
}
} else {
if(state == DEAD_PAUSE) {
- // float alpha; // FADE SHIP
-
if(bangx < 60) bangx = 60;
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;
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;
add_sprite(SPRITE(&ship));
score = 0;