diff --git a/rc.c b/rc.c index 1387b28..f600035 100644 --- a/rc.c +++ b/rc.c @@ -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; } diff --git a/website/levels/level_1_1.png b/website/levels/level_1_1.png index de4c28f..2e2d2f9 100644 Binary files a/website/levels/level_1_1.png and b/website/levels/level_1_1.png differ diff --git a/website/levels/level_2_10.png b/website/levels/level_2_10.png new file mode 100644 index 0000000..eee8a9f Binary files /dev/null and b/website/levels/level_2_10.png differ diff --git a/website/levels/level_2_11.png b/website/levels/level_2_11.png new file mode 100644 index 0000000..9c9d310 Binary files /dev/null and b/website/levels/level_2_11.png differ diff --git a/website/levels/level_2_12.png b/website/levels/level_2_12.png new file mode 100644 index 0000000..cc2bc9a Binary files /dev/null and b/website/levels/level_2_12.png differ diff --git a/website/levels/level_2_13.png b/website/levels/level_2_13.png new file mode 100644 index 0000000..4996673 Binary files /dev/null and b/website/levels/level_2_13.png differ diff --git a/website/levels/level_2_14.png b/website/levels/level_2_14.png new file mode 100644 index 0000000..800c7ba Binary files /dev/null and b/website/levels/level_2_14.png differ diff --git a/website/levels/level_2_15.png b/website/levels/level_2_15.png new file mode 100644 index 0000000..f53e072 Binary files /dev/null and b/website/levels/level_2_15.png differ diff --git a/website/levels/level_2_16.png b/website/levels/level_2_16.png new file mode 100644 index 0000000..421bee7 Binary files /dev/null and b/website/levels/level_2_16.png differ diff --git a/website/levels/level_2_17.png b/website/levels/level_2_17.png new file mode 100644 index 0000000..62592dc Binary files /dev/null and b/website/levels/level_2_17.png differ diff --git a/website/levels/level_2_18.png b/website/levels/level_2_18.png new file mode 100644 index 0000000..578e46c Binary files /dev/null and b/website/levels/level_2_18.png differ diff --git a/website/levels/level_2_19.png b/website/levels/level_2_19.png new file mode 100644 index 0000000..16b9f5c Binary files /dev/null and b/website/levels/level_2_19.png differ diff --git a/website/levels/level_2_2.png b/website/levels/level_2_2.png new file mode 100644 index 0000000..479c582 Binary files /dev/null and b/website/levels/level_2_2.png differ diff --git a/website/levels/level_2_20.png b/website/levels/level_2_20.png new file mode 100644 index 0000000..ca784b3 Binary files /dev/null and b/website/levels/level_2_20.png differ diff --git a/website/levels/level_2_3.png b/website/levels/level_2_3.png new file mode 100644 index 0000000..a13f2cb Binary files /dev/null and b/website/levels/level_2_3.png differ diff --git a/website/levels/level_2_4.png b/website/levels/level_2_4.png new file mode 100644 index 0000000..d955079 Binary files /dev/null and b/website/levels/level_2_4.png differ diff --git a/website/levels/level_2_5.png b/website/levels/level_2_5.png new file mode 100644 index 0000000..1a3adf9 Binary files /dev/null and b/website/levels/level_2_5.png differ diff --git a/website/levels/level_2_6.png b/website/levels/level_2_6.png new file mode 100644 index 0000000..261012f Binary files /dev/null and b/website/levels/level_2_6.png differ diff --git a/website/levels/level_2_7.png b/website/levels/level_2_7.png new file mode 100644 index 0000000..405306e Binary files /dev/null and b/website/levels/level_2_7.png differ diff --git a/website/levels/level_2_8.png b/website/levels/level_2_8.png new file mode 100644 index 0000000..f023fdb Binary files /dev/null and b/website/levels/level_2_8.png differ diff --git a/website/levels/level_2_9.png b/website/levels/level_2_9.png new file mode 100644 index 0000000..3f12ca1 Binary files /dev/null and b/website/levels/level_2_9.png differ diff --git a/website/levels/level_3_1.png b/website/levels/level_3_1.png new file mode 100644 index 0000000..f8d6506 Binary files /dev/null and b/website/levels/level_3_1.png differ diff --git a/website/levels/level_3_10.png b/website/levels/level_3_10.png new file mode 100644 index 0000000..0202905 Binary files /dev/null and b/website/levels/level_3_10.png differ diff --git a/website/levels/level_3_11.png b/website/levels/level_3_11.png new file mode 100644 index 0000000..3990dfa Binary files /dev/null and b/website/levels/level_3_11.png differ diff --git a/website/levels/level_3_12.png b/website/levels/level_3_12.png new file mode 100644 index 0000000..9e0a78b Binary files /dev/null and b/website/levels/level_3_12.png differ diff --git a/website/levels/level_3_13.png b/website/levels/level_3_13.png new file mode 100644 index 0000000..5678371 Binary files /dev/null and b/website/levels/level_3_13.png differ diff --git a/website/levels/level_3_14.png b/website/levels/level_3_14.png new file mode 100644 index 0000000..369fa60 Binary files /dev/null and b/website/levels/level_3_14.png differ diff --git a/website/levels/level_3_15.png b/website/levels/level_3_15.png new file mode 100644 index 0000000..8bed9cd Binary files /dev/null and b/website/levels/level_3_15.png differ diff --git a/website/levels/level_3_16.png b/website/levels/level_3_16.png new file mode 100644 index 0000000..10f7837 Binary files /dev/null and b/website/levels/level_3_16.png differ diff --git a/website/levels/level_3_17.png b/website/levels/level_3_17.png new file mode 100644 index 0000000..32f2692 Binary files /dev/null and b/website/levels/level_3_17.png differ diff --git a/website/levels/level_3_18.png b/website/levels/level_3_18.png new file mode 100644 index 0000000..0b06e8d Binary files /dev/null and b/website/levels/level_3_18.png differ diff --git a/website/levels/level_3_19.png b/website/levels/level_3_19.png new file mode 100644 index 0000000..2cf8df9 Binary files /dev/null and b/website/levels/level_3_19.png differ diff --git a/website/levels/level_3_2.png b/website/levels/level_3_2.png new file mode 100644 index 0000000..e0df90d Binary files /dev/null and b/website/levels/level_3_2.png differ diff --git a/website/levels/level_3_20.png b/website/levels/level_3_20.png new file mode 100644 index 0000000..cde3999 Binary files /dev/null and b/website/levels/level_3_20.png differ diff --git a/website/levels/level_3_3.png b/website/levels/level_3_3.png new file mode 100644 index 0000000..35a354e Binary files /dev/null and b/website/levels/level_3_3.png differ diff --git a/website/levels/level_3_4.png b/website/levels/level_3_4.png new file mode 100644 index 0000000..65d86c3 Binary files /dev/null and b/website/levels/level_3_4.png differ diff --git a/website/levels/level_3_5.png b/website/levels/level_3_5.png new file mode 100644 index 0000000..ba49972 Binary files /dev/null and b/website/levels/level_3_5.png differ diff --git a/website/levels/level_3_6.png b/website/levels/level_3_6.png new file mode 100644 index 0000000..064e5b5 Binary files /dev/null and b/website/levels/level_3_6.png differ diff --git a/website/levels/level_3_7.png b/website/levels/level_3_7.png new file mode 100644 index 0000000..1d16e1d Binary files /dev/null and b/website/levels/level_3_7.png differ diff --git a/website/levels/level_3_8.png b/website/levels/level_3_8.png new file mode 100644 index 0000000..d35c6ed Binary files /dev/null and b/website/levels/level_3_8.png differ diff --git a/website/levels/level_3_9.png b/website/levels/level_3_9.png new file mode 100644 index 0000000..6111b44 Binary files /dev/null and b/website/levels/level_3_9.png differ diff --git a/website/levels/level_4_1.png b/website/levels/level_4_1.png new file mode 100644 index 0000000..30d9baf Binary files /dev/null and b/website/levels/level_4_1.png differ diff --git a/website/levels/level_4_2.png b/website/levels/level_4_2.png new file mode 100644 index 0000000..af6f014 Binary files /dev/null and b/website/levels/level_4_2.png differ diff --git a/website/levels/level_4_3.png b/website/levels/level_4_3.png new file mode 100644 index 0000000..b24e41b Binary files /dev/null and b/website/levels/level_4_3.png differ diff --git a/website/levels/level_4_4.png b/website/levels/level_4_4.png new file mode 100644 index 0000000..9142e63 Binary files /dev/null and b/website/levels/level_4_4.png differ diff --git a/website/levels/level_4_5.png b/website/levels/level_4_5.png new file mode 100644 index 0000000..1441d0b Binary files /dev/null and b/website/levels/level_4_5.png differ diff --git a/website/levels/level_4_6.png b/website/levels/level_4_6.png new file mode 100644 index 0000000..90baf9b Binary files /dev/null and b/website/levels/level_4_6.png differ diff --git a/website/levels/level_4_7.png b/website/levels/level_4_7.png new file mode 100644 index 0000000..6daddc3 Binary files /dev/null and b/website/levels/level_4_7.png differ