New level screenshots

This commit is contained in:
Rob Pearce 2008-12-02 22:51:30 +00:00
parent 931bb7dc11
commit 1c04cc5be7
48 changed files with 14 additions and 4 deletions

18
rc.c
View File

@ -37,6 +37,9 @@ int lockcredits = B_FALSE;
int globtimer;
int autoshot = B_FALSE;
int shottaken = B_FALSE;
int introstate;
TTF_Font *font[MAXLETTERHEIGHT];
@ -219,6 +222,9 @@ int main (int argc, char **argv) {
} else if (!strcmp(argv[i], "-c")) {
printf("Cheat mode.\n");
cheat = B_TRUE;
} else if (!strcmp(argv[i], "-as")) {
printf("Automatic screenshot mode activated.\n");
autoshot = B_TRUE;
} else if (!strcmp(argv[i], "-l")) {
if (++i >= argc) {
printf("Missing level number.\n");
@ -907,11 +913,10 @@ int main (int argc, char **argv) {
}
// screenshot
if (keydown(0, SDLK_F12) || keydown(0, SDLK_w)) {
if (toggletimer == 0) {
///
if (autoshot && (levelcomplete == LV_INPROGRESS)) {
if (!shottaken) {
savebmp(screen);
toggletimer = 80;
shottaken = B_TRUE;
}
}
@ -1369,6 +1374,10 @@ void nextlevel(void) {
// reset timer
timer = 0;
if (autoshot) {
shottaken = B_FALSE;
}
}
void jump(sprite_t *s, int dir) {
@ -12377,5 +12386,6 @@ int savebmp(SDL_Surface *which) {
char filename[BUFLEN];
sprintf(filename, "/tmp/level_%d_%d.bmp",getcurworld(), getcurlevel());
rv = SDL_SaveBMP(which, filename);
printf("Screenshot saved in %s\n",filename);
return rv;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB