Can now slam monsters with the other player (they don't die)
This commit is contained in:
parent
ad565905e2
commit
f70314dfef
|
@ -8,7 +8,8 @@ monsters
|
|||
134 36 19
|
||||
23 38 19
|
||||
6 20 10
|
||||
157 3 18
|
||||
1 13 19
|
||||
1 23 19
|
||||
endmonsters
|
||||
exitdir 1
|
||||
4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,
|
||||
|
@ -30,8 +31,8 @@ exitdir 1
|
|||
4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,
|
||||
4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,
|
||||
4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,
|
||||
4,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,
|
||||
4,0,0,0,0,0,0,0,0,1,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,1,1,1,1,1,1,4,
|
||||
4,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,4,
|
||||
4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,
|
||||
4,0,0,0,0,0,0,0,0,1,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,1,1,1,1,1,1,4,
|
||||
4,0,0,0,0,0,0,0,0,1,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,1,1,1,1,1,1,4,
|
||||
4,0,0,0,0,0,0,0,0,1,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,1,1,1,1,1,1,4,
|
||||
|
|
10
rc.c
10
rc.c
|
@ -2138,7 +2138,13 @@ void checkcollide(sprite_t *s) {
|
|||
if (s2->id != P_BLACKCLOUD) {
|
||||
if ((s2->id == P_SNAIL) && (s2->invuln)) {
|
||||
// snail shell doesn't hurt us
|
||||
} else if (s->caughtby) {
|
||||
// can't die while being slammed
|
||||
if (!s->caughtby->slamming) {
|
||||
die(s);
|
||||
}
|
||||
} else {
|
||||
printf("dead!\n");
|
||||
die(s);
|
||||
}
|
||||
} else {
|
||||
|
@ -7220,6 +7226,10 @@ void dogravity(sprite_t *s) {
|
|||
jump(s2, s->dir); // away from the one who caught them
|
||||
s2->jumpspeed = 3;
|
||||
}
|
||||
// still counts as a monster for hitting others
|
||||
gotsomething++;
|
||||
xnet = s2->x;
|
||||
ynet = s2->y - s2->img->h/2;
|
||||
} else {
|
||||
/* will become a fruit when it finishes dying */
|
||||
if (boss) {
|
||||
|
|
Loading…
Reference in New Issue