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.
C calculatorcalculator-gamescasiochesscrossy-roaddrive-madfx-cg50gamesgeometry-dashgraphing-calculatorndlessnumworksnumworks-appsnumworks-calculatornumworks-gamenumworks-gamestetristi-84-plus-ceti-nspire
Level Devil: README, screenshots and GIFs of the real rooms
Mason36319f9ad1e95fb
diff --git a/docs/media/gallery/leveldevil.gif b/docs/media/gallery/leveldevil.gifindex c81df305..4fac2717 100644Binary files a/docs/media/gallery/leveldevil.gif and b/docs/media/gallery/leveldevil.gif differdiff --git a/docs/media/leveldevil.gif b/docs/media/leveldevil.gifindex 35a932d3..9ad80d4b 100644Binary files a/docs/media/leveldevil.gif and b/docs/media/leveldevil.gif differdiff --git a/docs/media/thumb_leveldevil.png b/docs/media/thumb_leveldevil.pngindex fedf3f1d..d973b573 100644Binary files a/docs/media/thumb_leveldevil.png and b/docs/media/thumb_leveldevil.png differdiff --git a/games/leveldevil/README.md b/games/leveldevil/README.mdindex 5dd1f0f4..1bb61725 100644--- a/games/leveldevil/README.md+++ b/games/leveldevil/README.md@@ -26,7 +26,7 @@ Run to the door. The level has other plans. Unept's troll platformer on the NumW[Level Devil - NOT A Troll Game](https://store.steampowered.com/app/3242750/) is **Unept**'s game (2023). This version is written in C for the calculator, with no code of the original. Its rooms are the original's: [tools/fetch.py](tools/fetch.py) takes each room's tiles and actors (where each one is, its type, size and turn) from the game's web build and keeps them in [tools/scenes.json](tools/scenes.json), and [tools/rooms.py](tools/rooms.py) has what each room's script does (what each trigger sets off, after how long, how far and how fast), written out from the game's scene scripts. The runner's speeds and jump, the gravity of each room and the colours of each world are the game's; its pictures are drawn from the game's sprites.-`make test` plays every room through on a computer with the keys in [tests/solutions.txt](tests/solutions.txt) (found by a search, `build/play search`), so each one can be cleared.+`make test` plays the rooms through on a computer with the keys in [tests/solutions.txt](tests/solutions.txt) (found by a search, `build/play search`, or written by hand): 75 of the 80 are cleared that way. For the other five (Scale 4, Gravity 4, Movement 3 and Wraparound 4 and 5), no keys have been found yet, so it plays a walk that sets their traps off without the runner dying.It comes as its own app, `LevelDevil.nwa`, from the [latest release](https://github.com/Mason363/NumPlay/releases/latest).diff --git a/games/leveldevil/docs/shot.png b/games/leveldevil/docs/shot.pngindex f2776bbb..ae712260 100644Binary files a/games/leveldevil/docs/shot.png and b/games/leveldevil/docs/shot.png differdiff --git a/games/leveldevil/tests/play.c b/games/leveldevil/tests/play.cindex a6a40fd5..35d36b98 100644--- a/games/leveldevil/tests/play.c+++ b/games/leveldevil/tests/play.c@@ -3,9 +3,14 @@* play solve every room played through with its keys (tests/solutions.txt): each must* reach the door without dying; a room with a walk instead ("L-R~ keys", where* no keys were found) must set off its traps without dying- * play search L R finds keys through a room, for tests/solutions.txt (or, failing that, a walk:- * the way that sets off the most of its traps)- * play trace L R [KEYS] where the runner goes+ * play search L R [D|-] [CHUNK] [X,Y] [KEYS]+ * finds keys through a room, for tests/solutions.txt (or, failing that, a walk:+ * the way that sets off the most of its traps): D to try the Down key too, the+ * keys held CHUNK steps at a time, to the place X,Y (the runner's middle) instead+ * of the door, after KEYS. PLAY_TRAPS=1 makes for the triggers first, then the+ * door; PLAY_DEPTH the most chunks (900); PLAY_DEBUG=1 shows the search+ * play trace L R [KEYS] where the runner goes (every PLAY_EVERY steps; PLAY_EXACT=1 stops with the+ * keys; PLAY_OBJS=1 lists the objects at the end)* play rooms DIR a picture of every room as it starts (DIR/room_LL_R.ppm)* play film L R DIR [KEYS] the room played with its keys (or these), a picture every 2 steps* (DIR/f_NNNN.ppm)@@ -214,7 +219,6 @@ static int search(int i, int nmoves, const uint8_t *moves, int chunk, char *out,for (int m = 0; m < nmoves; m++) {give(cur + sz * c);for (int k = 0; k < chunk && !dead && !won; k++) step(moves[m]);- if (getenv("PLAY_DEBUG2") && d < 12) fprintf(stderr, "d%d m%d x%d%s\n", d, m, (int)(hx >> 8), dead ? " dead" : "");if (dead) continue;memcpy(npath + (size_t)nn * DEPTH, path + (size_t)c * DEPTH, (size_t)d);npath[(size_t)nn * DEPTH + d] = (uint8_t)m;