Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

Level Devil: README, screenshots and GIFs

Mason3637855e3167195
diff --git a/docs/media/gallery/leveldevil.gif b/docs/media/gallery/leveldevil.gif
new file mode 100644
index 00000000..c81df305
Binary files /dev/null and b/docs/media/gallery/leveldevil.gif differ
diff --git a/docs/media/leveldevil.gif b/docs/media/leveldevil.gif
new file mode 100644
index 00000000..35a932d3
Binary files /dev/null and b/docs/media/leveldevil.gif differ
diff --git a/docs/media/thumb_leveldevil.png b/docs/media/thumb_leveldevil.png
new file mode 100644
index 00000000..fedf3f1d
Binary files /dev/null and b/docs/media/thumb_leveldevil.png differ
diff --git a/games/leveldevil/README.md b/games/leveldevil/README.md
new file mode 100644
index 00000000..36e60529
--- /dev/null
+++ b/games/leveldevil/README.md
@@ -0,0 +1,34 @@
+# Level Devil
+
+Run to the door. The level has other plans. Unept's troll platformer on the NumWorks calculator: its flat colours, its tiny black runner, and rooms that change the moment you trust them.
+
+<img src="docs/shot.png" width="320" alt="The runner jumps over spikes that just came up in front of the door">
+
+- **16 levels of 5 rooms**, each level in its own colours, picked on a map of doors. Clear a level to open the next one; the last door has horns.
+- **Traps that wait for you:** the floor drops away, spikes pop up in front of the door, walls slide out, the ceiling comes down, the door runs off or turns out to be fake, the keys turn round, gravity flips, saws give chase...
+- **Rooms that change after you die in them**, like the original's: the trap you just learned isn't always the one waiting next time.
+- **A theme a level:** falling floors, spikes, walls, the door, backwards, fake ground, springs, warps, crushers, saws, chases, jumps in the air, gravity, ice, the edges of the room, and the Devil's own level, which mixes them.
+- **Tight controls:** hold jump to jump higher, a moment's grace after running off an edge, and back on your feet the moment you die.
+- **Deaths counted,** for the level and in all, with your best (the fewest deaths) for each level. The game remembers the room you reached, so you can stop any time.
+
+## Controls
+
+| Key | Action |
+| --- | --- |
+| Left, Right (or 4, 6) | Run |
+| Up, OK or EXE (or 8, 5) | Jump; hold it to jump higher |
+| Arrows, OK | Pick a door on the map |
+| Back | Pause: Resume, Restart the room, Levels, How to play, Quit game |
+| Home | Quit |
+
+## Credits
+
+[Level Devil - NOT A Troll Game](https://store.steampowered.com/app/3242750/) is **Unept**'s game (2023). This version is written in C for NumPlay, with no code or art from the original: its look and its traps follow the game, and its rooms are made for the calculator's screen in the spirit of the original's.
+
+The rooms are written in [tools/rooms.py](tools/rooms.py), which packs them into a little over 1 KB. `make test` plays every room through on a computer, as it starts and after a death or more, with the keys in [tests/solutions.txt](tests/solutions.txt), so each one can be cleared.
+
+Inside NumPlay it draws with the launcher's shapes and fonts, saves through its file functions and unpacks its rooms with its inflater, so the game itself is about 10 KB.
+
+It comes inside [NumPlay](https://github.com/Mason363/NumPlay), or on its own as `LevelDevil.nwa` from the [latest release](https://github.com/Mason363/NumPlay/releases/latest).
+
+Build: `make` (needs `arm-none-eabi-gcc`, Python 3 and Node.js for nwlink).
diff --git a/games/leveldevil/docs/shot.png b/games/leveldevil/docs/shot.png
new file mode 100644
index 00000000..f2776bbb
Binary files /dev/null and b/games/leveldevil/docs/shot.png differ
diff --git a/games/leveldevil/tests/play.c b/games/leveldevil/tests/play.c
index 776e9a9f..9cab617e 100644
--- a/games/leveldevil/tests/play.c
+++ b/games/leveldevil/tests/play.c
@@ -6,8 +6,8 @@
* play search L R [D] finds a way through a room (after D deaths), for tests/solutions.txt
* play trace L R [D] where the runner goes with the solution
* play rooms DIR a picture of every room as it starts (DIR/room_LL_R.ppm)
- * play film L R DIR [D] the solution of a room (after D deaths), a picture every 2 steps
- * (DIR/f_NNNN.ppm)
+ * play film L R DIR [D [KEYS]] the solution of a room (after D deaths), or these keys, a picture
+ * every 2 steps (DIR/f_NNNN.ppm)
*/
#define main ld_main
#include "../src/main.c"
@@ -111,6 +111,15 @@ static int run(const char *s, const char *film) {
snprintf(path, sizeof path, "%s/f_%04d.ppm", film, frame / 2);
picture(path);
}
+ if ((won || dead) && film) /* the runner in pieces, or the door closing, a little longer */
+ for (int k = 0; k < 44; k++) {
+ step(0);
+ if (!(frame++ & 1)) {
+ draw();
+ snprintf(path, sizeof path, "%s/f_%04d.ppm", film, frame / 2);
+ picture(path);
+ }
+ }
if (won || dead) return won ? 1 : 0;
}
if (!*s) return -1;
@@ -272,7 +281,7 @@ int main(int argc, char **argv) {
int i = (atoi(argv[2]) - 1) * ROOMS + atoi(argv[3]) - 1;
if (i < 0 || i >= ROOM_COUNT) return 2;
setup(i / ROOMS, i % ROOMS, argc > 5 ? atoi(argv[5]) : 0);
- return run(solutions[i][argc > 5 ? atoi(argv[5]) & 3 : 0], argv[4]) == 1 ? 0 : 1;
+ return run(argc > 6 ? argv[6] : solutions[i][argc > 5 ? atoi(argv[5]) & 3 : 0], argv[4]) == 1 ? 0 : 1;
}
if (!strcmp(argv[1], "solve")) {
int bad = 0;