- Added new monster: plant (doesn't move but is affected by conveyor belts)

- Added plants to levels
- More levels
This commit is contained in:
Rob Pearce 2008-10-24 03:31:25 +00:00
parent 89e10b2706
commit e37ca153c9
21 changed files with 74 additions and 42 deletions

View File

@ -32,7 +32,7 @@
102,level102.dat,Diving Pool
18,level8.5.dat,Look out above...
110,level110.dat,Portrait Gallery #1
114,level114.dat,NEW LEVEL
114,level114.dat,Loopy Plants
106,level106.dat,Bunkers
112,level112.dat,Divide and Conquer
109,level109.dat,THE END SO FAR

BIN
data/sprites/plant.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
data/sprites/plantdead.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 B

BIN
data/sprites/plantjump.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -2,6 +2,7 @@ bgfile forest2.png
bg 0
hurryup 70
help
Plants don't move, but can still kill you!
endhelp
monsters
0 3 28
@ -33,6 +34,10 @@ monsters
12 31 24
1 20 21
7 37 9
14 7 28
124 15 28
124 18 9
124 31 18
endmonsters
exitdir 1
4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,

View File

@ -4,6 +4,8 @@ hurryup 30
help
endhelp
monsters
0 8 5
23 32 5
49 17 14
6 19 21
17 21 23
@ -42,13 +44,13 @@ monsters
15 18 5
15 16 5
15 14 5
0 8 5
23 32 5
6 5 11
18 31 14
18 26 5
18 9 23
49 28 23
124 24 5
124 15 5
endmonsters
exitdir 1
44,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,44,

View File

@ -5,6 +5,7 @@ help
endhelp
monsters
0 19 11
23 19 18
18 33 13
18 4 13
18 22 18
@ -23,10 +24,9 @@ monsters
15 21 18
16 25 18
16 13 18
1 6 4
1 33 26
12 20 4
23 19 18
124 6 4
124 33 26
endmonsters
exitdir 1
44,0,0,0,44,44,44,44,44,0,0,0,0,0,44,44,44,44,44,44,44,44,44,44,44,0,0,0,0,0,0,44,44,44,44,44,0,0,0,44,

View File

@ -6,7 +6,6 @@ endhelp
monsters
0 1 2
23 19 2
1 33 7
1 13 10
16 6 28
16 6 28
@ -46,6 +45,9 @@ monsters
17 12 10
15 14 10
12 30 5
124 30 14
124 3 10
124 34 7
endmonsters
exitdir 1
4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,

View File

@ -46,27 +46,29 @@ monsters
15 18 27
15 25 27
17 17 27
124 6 18
124 33 18
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,
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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,45,0,0,0,0,0,0,0,0,0,0,0,0,45,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,52,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,
44,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,0,0,0,0,52,52,0,0,0,0,0,17,0,0,0,0,0,0,0,0,0,0,0,44,
44,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,52,52,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,44,
44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,44,
44,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,44,
44,28,28,28,28,28,44,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,44,28,28,28,28,28,44,
44,0,0,0,0,0,44,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,44,0,0,0,0,0,44,
44,0,0,0,0,0,44,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,44,0,0,0,0,0,44,

View File

@ -4,9 +4,9 @@ hurryup 30
help
endhelp
monsters
0 6 4
49 30 18
49 16 18
0 6 4
1 36 1
1 26 7
1 3 1
@ -41,14 +41,14 @@ monsters
17 34 18
7 34 9
7 18 12
1 31 26
1 26 26
1 21 26
1 18 22
1 13 22
1 8 22
15 18 22
15 8 22
124 18 22
124 13 22
124 9 22
124 21 26
124 26 26
124 31 26
15 18 22
endmonsters
exitdir -1
44,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,44,
@ -78,7 +78,7 @@ exitdir -1
44,44,44,44,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,0,0,44,44,44,44,
44,44,44,44,12,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,44,44,44,44,
44,44,44,44,13,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,44,44,44,44,
44,44,44,44,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,17,17,44,44,44,44,
44,44,44,44,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,17,44,44,44,44,
44,44,44,44,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,44,44,44,44,
44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,
layer2

View File

@ -12,7 +12,6 @@ monsters
6 29 18
6 6 11
18 9 5
18 31 23
12 24 28
6 21 2
6 37 10
@ -54,6 +53,7 @@ monsters
15 29 7
12 32 7
14 8 22
124 31 23
endmonsters
exitdir 1
24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,

View File

@ -25,6 +25,9 @@ monsters
15 9 8
15 2 8
6 4 8
124 23 10
124 13 28
124 17 28
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,

3
defs.h
View File

@ -297,7 +297,7 @@
#define S_SLOPE 2
// Sprite types
#define MAXPTYPES 124
#define MAXPTYPES 125
#define P_PLAYER 0
#define P_RAT 1
#define P_CHEESE 2
@ -427,6 +427,7 @@
#define P_SKULL 121
#define P_WINGLEFT 122
#define P_WINGRIGHT 123
#define P_PLANT 124
// cards
#define CARDFONTX 4

1
edit.c
View File

@ -1036,6 +1036,7 @@ int isplacablesprite(int sid) {
case P_RINGGOLD:
case P_CLOCK:
case P_BELL:
case P_ARMOUR:
case P_GEMBOOST:
case P_HELMET:
case P_PHONE:

13
rc.c
View File

@ -2313,6 +2313,9 @@ if (s->id == P_PUFF) printf("PUFF WITH DOOMCOUNT!\n");
// move forwards
rv = movex(s, s->dir*getspeed(s));
}
} else if (s->id == P_PLANT) {
// don't move!
s->moved = MV_WALK;
} else if (s->id == P_KINGRAT) {
/* timer1 is state
@ -3060,15 +3063,19 @@ void dotileeffects(sprite_t *s) {
// CHECKS WHICH COUlD APPLY TO TILES UNDER AND SLIGHTLY LEFT/RIGHT OF US
while (!finished) {
if (tt->id == T_RIGHT) {
if (!ismonster(s->id) && !isfruit(s->id)) {
if (player->powerup != PW_CLOCK) {
if (!ismonster(s->id) && !isfruit(s->id)) {
movex(s, 1.5);
} else if (s->id == P_PLANT) {
movex(s, 1.5);
}
}
finished = B_TRUE;
}
} else if (tt->id == T_LEFT) {
if (!ismonster(s->id) && !isfruit(s->id)) {
if (player->powerup != PW_CLOCK) {
if (!ismonster(s->id) && !isfruit(s->id)) {
movex(s, -1.5);
} else if (s->id == P_PLANT) {
movex(s, -1.5);
}
}

View File

@ -1106,6 +1106,13 @@ int loadimagesets(void) {
loadspriteimage(P_TICK,F_DEAD, "sprites/tickdead.png");
imageset[P_TICK].numimages = 8;
loadspriteimage(P_PLANT,F_WALK1, "sprites/plant.png");
loadspriteimage(P_PLANT,F_JUMP, "sprites/plantjump.png");
loadspriteimage(P_PLANT,F_FALL, "sprites/plantjump.png");
loadspriteimage(P_PLANT,F_CAUGHT, "sprites/plant.png");
loadspriteimage(P_PLANT,F_DEAD, "sprites/plantdead.png");
imageset[P_PLANT].numimages = 8;
loadspriteimage(P_KINGRAT,F_WALK1, "sprites/kingrat.png");
loadspriteimage(P_KINGRAT,F_JUMP, "sprites/kingratjump.png");
loadspriteimage(P_KINGRAT,F_FALL, "sprites/kingratjump.png");
@ -2353,6 +2360,7 @@ int ismonster(int id) {
case P_SPIDER:
case P_SNAKE:
case P_TICK:
case P_PLANT:
case P_SNAIL:
case P_SLUG:
case P_FISH:
@ -2768,6 +2776,7 @@ void setfruitinfo(void) {
setinfo(P_TICK, "Tick", "The tick is small but intelligent - even in its regular placid state it will move in the same manner as an angry rat. Because of their small size, they are also difficult to arget with a slam!", "tick.png");
setinfo(P_PLANT, "Plant", "Evil venus fly trap plants will lie in wait and devour any player foolish enough to wander into their clutches.", "plant.png");
setinfo(P_BLACKCLOUD, "Cloud of Doom", "This unkillable cloud will appear if you spend too much time on one level. Beware, as the only way to defeat the cloud of doom is to complete the level before it grows too large to handle!", "cloud.png");

BIN
templates/plantbase.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
templates/plantclose.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
templates/planthalf.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

BIN
templates/plantjaw.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
templates/plantopen.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB