Added level screenshots
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#svn info | grep Revision | cut -d " " -f 2
|
#svn info | grep Revision | cut -d " " -f 2
|
||||||
svnversion . | cut -d: -f2
|
svnversion . | cut -d: -f2 | sed -e 's/M//g'
|
||||||
|
|
51
rc.c
|
@ -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++;
|
fpscount++;
|
||||||
tick();
|
tick();
|
||||||
} // end main loop
|
} // end main loop
|
||||||
|
@ -1206,8 +1216,10 @@ void nextlevel(void) {
|
||||||
|
|
||||||
// now the player gets invincibility
|
// now the player gets invincibility
|
||||||
if (!inintro()) {
|
if (!inintro()) {
|
||||||
makeinvuln(player);
|
if (!cheat) {
|
||||||
makeinvuln(player2);
|
makeinvuln(player);
|
||||||
|
makeinvuln(player2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// phone is cancelled on boss levels
|
// phone is cancelled on boss levels
|
||||||
|
@ -9930,28 +9942,23 @@ if (cheat) {
|
||||||
if (toggletimer == 0) {
|
if (toggletimer == 0) {
|
||||||
// nextlevel();
|
// nextlevel();
|
||||||
sprite_t *s2, *nexts;
|
sprite_t *s2, *nexts;
|
||||||
|
// kill all enemies and fruits
|
||||||
// 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);
|
|
||||||
for (s2 = sprite; s2 ; s2 = nexts) {
|
for (s2 = sprite; s2 ; s2 = nexts) {
|
||||||
nexts = s2->next;
|
nexts = s2->next;
|
||||||
if (isbullet(s2->id)) {
|
if (isbullet(s2->id) || ismonster(s2->id) || isfruit(s2->id)) {
|
||||||
s2->dead = D_FINAL;
|
s2->dead = D_FINAL;
|
||||||
} else if (ismonster(s2->id)) {
|
if (ismonster(s2->id)) {
|
||||||
s2->willbecome = P_DIAMOND;
|
if (s2->caughtby) {
|
||||||
|
uncatch(s2);
|
||||||
if (s2->caughtby) {
|
}
|
||||||
uncatch(s2);
|
|
||||||
}
|
}
|
||||||
die(s2);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// call in cloud immediately
|
||||||
|
levelcomplete = LV_FINAL;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
toggletimer = 50;
|
toggletimer = 50;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12364,3 +12371,11 @@ int isice(int id) {
|
||||||
}
|
}
|
||||||
return B_FALSE;
|
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
|
@ -127,3 +127,4 @@ int getpnum(sprite_t *s);
|
||||||
int isonplatform(double x, double y);
|
int isonplatform(double x, double y);
|
||||||
int countbabies(sprite_t *s, int babytype);
|
int countbabies(sprite_t *s, int babytype);
|
||||||
int isice(int id);
|
int isice(int id);
|
||||||
|
int savebmp(SDL_Surface *which);
|
||||||
|
|
After Width: | Height: | Size: 180 KiB |
After Width: | Height: | Size: 252 KiB |
After Width: | Height: | Size: 183 KiB |
After Width: | Height: | Size: 190 KiB |
After Width: | Height: | Size: 229 KiB |
After Width: | Height: | Size: 116 KiB |
After Width: | Height: | Size: 191 KiB |
After Width: | Height: | Size: 206 KiB |
After Width: | Height: | Size: 264 KiB |
After Width: | Height: | Size: 197 KiB |
After Width: | Height: | Size: 197 KiB |
After Width: | Height: | Size: 127 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 300 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 279 KiB |
After Width: | Height: | Size: 232 KiB |
After Width: | Height: | Size: 245 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 253 KiB |
After Width: | Height: | Size: 168 KiB |