Added level screenshots

This commit is contained in:
Rob Pearce 2008-12-02 22:29:24 +00:00
parent 0930781c32
commit 424a8d0e2e
24 changed files with 35 additions and 19 deletions

View File

@ -1,3 +1,3 @@
#!/bin/sh
#svn info | grep Revision | cut -d " " -f 2
svnversion . | cut -d: -f2
svnversion . | cut -d: -f2 | sed -e 's/M//g'

43
rc.c
View File

@ -906,6 +906,16 @@ int main (int argc, char **argv) {
}
}
// screenshot
if (keydown(0, SDLK_F12) || keydown(0, SDLK_w)) {
if (toggletimer == 0) {
///
savebmp(screen);
toggletimer = 80;
}
}
fpscount++;
tick();
} // end main loop
@ -1206,9 +1216,11 @@ void nextlevel(void) {
// now the player gets invincibility
if (!inintro()) {
if (!cheat) {
makeinvuln(player);
makeinvuln(player2);
}
}
// phone is cancelled on boss levels
if (haspowerupany(PW_PHONE)) {
@ -9930,28 +9942,23 @@ if (cheat) {
if (toggletimer == 0) {
// nextlevel();
sprite_t *s2, *nexts;
// make the screen shake
player->powerup = PW_BOMB;
player->timer1 = BOMBSHAKETIME;
// kill all monsters
playfx(FX_BOOM);
sprintf(tempm, "KABOOM!!");
addoutlinetext(player->x,player->y - player->img->h/2, TEXTSIZE_BOMB, tempm,&red,&yellow,POINTSDELAY,TT_NORM);
// kill all enemies and fruits
for (s2 = sprite; s2 ; s2 = nexts) {
nexts = s2->next;
if (isbullet(s2->id)) {
if (isbullet(s2->id) || ismonster(s2->id) || isfruit(s2->id)) {
s2->dead = D_FINAL;
} else if (ismonster(s2->id)) {
s2->willbecome = P_DIAMOND;
if (ismonster(s2->id)) {
if (s2->caughtby) {
uncatch(s2);
}
die(s2);
}
}
}
// call in cloud immediately
levelcomplete = LV_FINAL;
toggletimer = 50;
}
}
@ -12364,3 +12371,11 @@ int isice(int id) {
}
return B_FALSE;
}
int savebmp(SDL_Surface *which) {
int rv;
char filename[BUFLEN];
sprintf(filename, "/tmp/level_%d_%d.bmp",getcurworld(), getcurlevel());
rv = SDL_SaveBMP(which, filename);
return rv;
}

1
rc.h
View File

@ -127,3 +127,4 @@ int getpnum(sprite_t *s);
int isonplatform(double x, double y);
int countbabies(sprite_t *s, int babytype);
int isice(int id);
int savebmp(SDL_Surface *which);

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB