cloud can no longer be killed by slamming onto it

cloud now disappears when level is completed
This commit is contained in:
Rob Pearce 2006-01-31 06:41:45 +00:00
parent cda053664d
commit 6c6c82390c
3 changed files with 10 additions and 17 deletions

16
a
View File

@ -1,13 +1,3 @@
changed sprite removal method
added angry attribute
added hurryup time
added powerups:
speed
extra net
big net
fruits now disappear after a while
arrows don't affect monsters
added monsters:
bee
spider
player now progresses a level when all mosnters are dead
cloud can no longer be killed by slamming onto it
cloud now disappears when level is completed

BIN
rc

Binary file not shown.

5
rc.c
View File

@ -833,7 +833,7 @@ void movesprite(sprite_t *s) {
}
}
} else if (s->id == P_CLOUD) {
if (player->dead) {
if ((player->dead) || (levelcomplete)) {
if ((s->img->h <= 3) || (s->img->w <= 3)) {
s->dead = 4;
/* reset hurryup timer */
@ -1601,6 +1601,7 @@ void setdefaults(sprite_t *s) {
s->speed = 1;
s->climbing = 0;
s->jumping = 0;
s->jumpspeed = 0;
s->jumpdir = 1;
s->netting = 0;
s->netmax = 1;
@ -2117,10 +2118,12 @@ void dogravity(sprite_t *s) {
if (ydiff < 0) ydiff =-ydiff;
if ((xdiff <= s2->img->w) && (ydiff <= s2->img->h)) {
if (s2->id != P_CLOUD) {
die(s2);
pointsinc *= 2;
psize += 10;
}
}
}
}