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: icon from the game's 1 Player card, README, screenshots and GIFs of its own screens

Mason363319c4e32f99f
diff --git a/docs/media/gallery/leveldevil.gif b/docs/media/gallery/leveldevil.gif
index 4fac2717..52971222 100644
Binary files a/docs/media/gallery/leveldevil.gif and b/docs/media/gallery/leveldevil.gif differ
diff --git a/docs/media/leveldevil.gif b/docs/media/leveldevil.gif
index 9ad80d4b..672185f1 100644
Binary files a/docs/media/leveldevil.gif and b/docs/media/leveldevil.gif differ
diff --git a/docs/media/thumb_leveldevil.png b/docs/media/thumb_leveldevil.png
index d973b573..d118ee22 100644
Binary files a/docs/media/thumb_leveldevil.png and b/docs/media/thumb_leveldevil.png differ
diff --git a/docs/play.md b/docs/play.md
index 825f0c09..c6245275 100644
--- a/docs/play.md
+++ b/docs/play.md
@@ -449,19 +449,22 @@ Click the cookie, buy buildings that bake for you and upgrades that make them ba
## Level Devil
-<img src="media/leveldevil.gif" width="320" align="right" alt="Level Devil: the floor drops away under the runner; a button makes it grow, another shrinks it; spikes come up in its way">
+<img src="media/leveldevil.gif" width="320" align="right" alt="Level Devil: the Devil's eyes on the jaws, the title and the map; in the first room the floor drops under the runner, it dies, tries again and jumps the pit to the door">
Level Devil comes as its own app, `LevelDevil.nwa`: install it on its own.
| Key | What it does |
| --- | --- |
-| **Left / Right** (or 4 / 6) | Run |
+| **Left / Right** (or 4 / 6) | Run; on the map, the world before or after |
| **Up**, **OK** or **EXE** (or 8 / 5) | Jump (in Gravity: turn gravity round; in Flappy: flap) |
| **Down** (or 2) | Jump, in the room that says so |
+| **Up / Down** on the map | The nearest world up or down |
+| **OK** on the title and the map | Play |
| **Any key**, once dead | Try again |
| **Back** | Pause: Resume, Restart, Levels, Quit game |
+| **Home** | Save and quit |
-Run to the door. These are the game's 80 rooms in its order: sixteen worlds of five (Pits, Spikes, Push, Coins, Controls, Platforms, Springs, Warps, Scale, Doors, Saws, Flappy, Gravity, Movement, Wraparound and the Boss), each with its own traps and timing. Clear a world's five rooms to open the next one on the map. Your deaths are counted, with your best for each world. The game keeps a copy of its save in `leveldevil_saves.py`, so installing apps again doesn't erase your progress.
+Run to the door. These are the game's 80 rooms in its order: sixteen worlds of five (Pits, Spikes, Push, Coins, Controls, Platforms, Springs, Warps, Scale, Doors, Saws, Flappy, Gravity, Movement, Wraparound and the Boss), each with its own traps and timing, drawn with the game's own pictures. Clear a world's five rooms to open the next portal on the game's map. Your deaths are counted, with your best for each world. The game keeps a copy of its save in `leveldevil_saves.py`, so installing apps again doesn't erase your progress.
<br clear="right">
diff --git a/games/leveldevil/README.md b/games/leveldevil/README.md
index 1bb61725..758915c9 100644
--- a/games/leveldevil/README.md
+++ b/games/leveldevil/README.md
@@ -1,15 +1,18 @@
# Level Devil
-Run to the door. The level has other plans. Unept's troll platformer on the NumWorks calculator, with the game's own rooms: all sixteen worlds of five rooms, their tiles, their traps and their timing, in the game's flat colours with its tiny black runner.
+Run to the door. The level has other plans. Unept's troll platformer on the NumWorks calculator, with the game's own rooms and the game's own pictures: all sixteen worlds of five rooms, their traps and their timing, in the game's flat colours with its tiny black runner.
-<img src="docs/shot.png" width="320" alt="Pits, the first world: the runner on its way to the door">
+<img src="docs/shot.png" width="320" alt="Saws, the first room: the saw has grown and chases the runner to the door">
- **The 80 rooms of the game, in its order:** Pits, Spikes, Push, Coins, Controls, Platforms, Springs, Warps, Scale, Doors, Saws, Flappy, Gravity, Movement, Wraparound and the Boss, each in its own colours. Clear a world's five rooms to open the next one.
- **The game's traps, as it times them:** floors that drop or slide away, spikes that pop up in waves, walls that push you into pits, coins over fake ground, controls that turn round, platforms that sink under you, springs and warps that send you the wrong way, a runner that grows and shrinks, doors that run off or swap places with you, saws that chase you, gravity that flips, rooms where you fly, slide, float or wrap round the screen, and the Devil's giant saw.
- **Its feel:** the runner's speed, jump and gravity, its five-step grace after running off an edge, springs, ice and moving platforms that carry you.
-- **Its look:** the black runner and its running and jumping pictures, the doors, spikes, saws, springs, warps, buttons and coins, the five squares of the world's rooms at the top, the shards of the runner when it dies, and the retry button: press any key to try again.
+- **Its pictures, all of them the game's:** the runner running, jumping and flapping, its pieces flying apart when it dies and coming together when a room starts; the doors and their shutting, spikes, saws, springs, warps, buttons, coins and the arrow keys under the first room; the five squares of the world's rooms, its back button and its PRESS ANY KEY.
+- **Its screens:** the jaws with the Devil's eyes that shut between two rooms, the title with its 1 Player card, and the map of the worlds, with the game's sixteen portals on their paths: the one you pick lit up, the open ones in their world's colours, the locked ones dark. The pause is the shut jaws with the game's buttons on them.
- **Deaths counted,** for the world and in all, with your best (the fewest deaths) for each one. The game remembers the room you reached, so you can stop any time, and keeps a copy of its save in `leveldevil_saves.py`, so installing the app again doesn't erase it.
+<img src="docs/title.png" width="240" alt="The title: LEVEL DEVIL over the flames, and the 1 Player card"> <img src="docs/map.png" width="240" alt="The map: the portals on their paths, Springs picked"> <img src="docs/pause.png" width="240" alt="The pause: the shut jaws and the game's buttons">
+
## Controls
| Key | Action |
@@ -18,16 +21,24 @@ Run to the door. The level has other plans. Unept's troll platformer on the NumW
| Up, OK or EXE (or 8, 5) | Jump (in Gravity: turn gravity round; in Flappy: flap) |
| Down (or 2) | Jump, in the room that says so |
| Any key, once dead | Try again |
-| Arrows, OK | Pick a world on the map |
-| Back | Pause: Resume, Restart the room, Levels, Quit game |
-| Home | Quit |
+| Left, Right on the map | The world before, the world after |
+| Up, Down on the map | The nearest world up, down |
+| OK on the title, on the map | Play |
+| Back | Pause: Resume, Restart the room, Levels, Quit game (it asks first) |
+| Home | Save and 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 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.
+[Level Devil - NOT A Troll Game](https://store.steampowered.com/app/3242750/) is **Unept**'s game (Adam Corey, 2023). This version is written in C for the calculator, with no code of the original. What it shows and plays is the original's, taken from the game's web build (a Stencyl game):
+
+- its rooms: [tools/fetch.py](tools/fetch.py) takes each room's tiles and actors (where each one is, its type, size and turn) 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 and its two pixel fonts: [tools/pictures.py](tools/pictures.py) takes them from the game's packed library (its 1x pictures, each sprite's frames as the game's resources name them) and packs them into [src/pictures.h](src/pictures.h), with the game's way of painting its traps in each world's colour (their grey swapped for the ground's);
+- its screens: the title, the map and its portals where the game puts them, the jaws and when they shut, the door shutting and the room squares, timed as the game times them.
+
+Not affiliated with Unept. On the keypad, the game's mouse and desktop buttons (mute, settings, speedrun, ads, costumes) and its 2 Player mode are left out; the map shows the world you pick, where the game shows the one to play next, and scrolls, as the calculator's screen is narrower than the game's. The rooms are drawn at 3/4 of their size to fit the screen whole; the jaws, the title, the map and the writing are drawn as the game has them.
-`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.
+`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. `build/play screens DIR` and `build/play rooms DIR` draw the screens and the rooms.
It comes as its own app, `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).
+Build: `make` (needs `arm-none-eabi-gcc`, Python 3 and Node.js for nwlink). `python3 tools/pictures.py` packs the pictures again (it downloads the game's web build, or reads it with `--from DIR`).
diff --git a/games/leveldevil/docs/map.png b/games/leveldevil/docs/map.png
new file mode 100644
index 00000000..bc17dd03
Binary files /dev/null and b/games/leveldevil/docs/map.png differ
diff --git a/games/leveldevil/docs/pause.png b/games/leveldevil/docs/pause.png
new file mode 100644
index 00000000..2083c1c1
Binary files /dev/null and b/games/leveldevil/docs/pause.png differ
diff --git a/games/leveldevil/docs/shot.png b/games/leveldevil/docs/shot.png
index ae712260..b29f8e76 100644
Binary files a/games/leveldevil/docs/shot.png and b/games/leveldevil/docs/shot.png differ
diff --git a/games/leveldevil/docs/title.png b/games/leveldevil/docs/title.png
new file mode 100644
index 00000000..2af66815
Binary files /dev/null and b/games/leveldevil/docs/title.png differ
diff --git a/games/leveldevil/src/icon.png b/games/leveldevil/src/icon.png
index 952472a3..fb0c6ea6 100644
Binary files a/games/leveldevil/src/icon.png and b/games/leveldevil/src/icon.png differ
diff --git a/games/leveldevil/src/main.c b/games/leveldevil/src/main.c
index d6ae33f5..e8c2d461 100644
--- a/games/leveldevil/src/main.c
+++ b/games/leveldevil/src/main.c
@@ -772,7 +772,7 @@ static void play_hud(void) {
}
if (frame >= 30 && !ov && (jaw == J_OPEN || jaw == J_OPENING)) { /* the game's back button, the calculator's key */
blit(P_BACK, 8, 6);
- text(&font, 4, 22, T("back"), YELLOW);
+ text(&font, 4, 23, T("back"), BTN_EDGE), text(&font, 4, 22, T("back"), YELLOW); /* (shadowed, as its buttons) */
}
if (waiting && sv.open <= 3) text_c(&font, 160, 40, T("PRESS ANY KEY"), YELLOW); /* (the first worlds) */
}
@@ -831,7 +831,7 @@ static int pan_for(int i) { return clampi(portal_at[i][0] + (i == 15 ? 16 : 8) -
static void title_scene(void *ctx) {
blit_rows(P_TITLE, -56, 0, 0, 90, 0); /* (its top: LEVEL DEVIL, and the flames) */
gfx_fill(0, 90, SCREEN_W, SCREEN_H - 90, ORANGE);
- if (!ov) blit(P_CARD_ON, 122, 120), text_c(&font_small, 160, 206, T("press OK"), YELLOW);
+ if (!ov) blit(P_CARD_ON, 122, 120), text_c(&font, 160, 204, T("press OK"), DARK);
draw_jaws();
if (ov) overlay();
}