Tweaked jetpack fireball

This commit is contained in:
Rob Pearce 2009-02-04 00:54:54 +00:00
parent 68dca94e50
commit c0c10963cd
3 changed files with 7 additions and 3 deletions

View File

@ -1,10 +1,10 @@
all: rc edit all: rc edit
rc: rc.c shared.c rc.h shared.h globals.h defs.h rc: rc.c shared.c rc.h shared.h globals.h defs.h
gcc -O3 -Wall -DREV=`./getsvnrev.sh` -o rc -g rc.c shared.c `sdl-config --cflags --libs` -I/usr/local/include -L/usr/local/lib -lSDLmain -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -lSDL_mixer gcc -O3 -Wall -DREV=`./getsvnrev.sh` -o rc -g rc.c shared.c `sdl-config --cflags --libs` -I/usr/local/include -L/usr/local/lib -L/opt/local/lib -lSDLmain -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf -lSDL_mixer
edit: edit.c shared.c edit.h shared.h globals.h defs.h edit: edit.c shared.c edit.h shared.h globals.h defs.h
gcc -D__EDITOR -DREV=`./getsvnrev.sh` -Wall -o edit -g edit.c shared.c `sdl-config --cflags --libs` -I/usr/local/include -L/usr/local/lib -lSDLmain -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf gcc -D__EDITOR -DREV=`./getsvnrev.sh` -Wall -o edit -g edit.c shared.c `sdl-config --cflags --libs` -I/usr/local/include -L/usr/local/lib -L/opt/local/lib -lSDLmain -lSDL -lSDL_image -lSDL_gfx -lSDL_ttf
app: rc app: rc
./makeapp.sh ./makeapp.sh

4
rc.c
View File

@ -1582,7 +1582,9 @@ void jump(sprite_t *s, int dir) {
if ((s->powerup == PW_JETPACK) && (!s->useddoublejump)) { if ((s->powerup == PW_JETPACK) && (!s->useddoublejump)) {
// jetpack makes a blast of fire // jetpack makes a blast of fire
addsprite(P_SMASH, s->x, s->y, "jet_smahs"); addsprite(P_SMASH, s->x, s->y, "jet_smash");
addsprite(P_SMASH, s->x+(TILEW/2), s->y, "jet_smash");
addsprite(P_SMASH, s->x-(TILEW/2), s->y, "jet_smash");
// jetpack always adds speed to sideways jumps // jetpack always adds speed to sideways jumps
if (s->jumpdir > 0) { if (s->jumpdir > 0) {

View File

@ -3393,6 +3393,8 @@ int randompowerup(void) {
int num; int num;
num = rand() % 46; num = rand() % 46;
return P_JETPACK;
switch (num) { switch (num) {
case 0: case 0:
default: default: