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
Deltarune: in NumPlay's builds, tests and pages
Mason363ba30edc27243
diff --git a/Makefile b/Makefileindex f59a887b..3da2459f 100644--- a/Makefile+++ b/Makefile@@ -18,7 +18,7 @@ PY ?= python3CARGO ?= cargoB = build/data# Conventional games honor a configurable output directory; special layouts are kept local.-GAMES_REDIRECT = angrybirds badtime balatro blockblast breakout buckshot celeste championisland chess connectfour cookieclicker coreball dinorun donkeykong doodlejump doom dune famidash finalearth2 flappybird flappydunk fnaf fnaf2 fnaf3 fnaf4 fnf g2048 hillclimb hollowknight invaders isaac jetpackjoyride leveldevil mahjong meowdoku minesweeper monkeymart numblocks numpowder numvisuals pacman paperclips polytrack portal pvz rider snake snowrider sokoban solitaire sonic stickmanhook subway sudoku suika templerun tombofthemask towerblock turborush twoplayer undertale uno uttt+GAMES_REDIRECT = angrybirds badtime balatro blockblast breakout buckshot celeste championisland chess connectfour cookieclicker coreball deltarune dinorun donkeykong doodlejump doom dune famidash finalearth2 flappybird flappydunk fnaf fnaf2 fnaf3 fnaf4 fnf g2048 hillclimb hollowknight invaders isaac jetpackjoyride leveldevil mahjong meowdoku minesweeper monkeymart numblocks numpowder numvisuals pacman paperclips polytrack portal pvz rider snake snowrider sokoban solitaire sonic stickmanhook subway sudoku suika templerun tombofthemask towerblock turborush twoplayer undertale uno utttGAMES_OUT = dinorunGAME_REDIRECT_ARG = $(if $(filter $(1),$(GAMES_OUT)),OUT=../../$(B)/games/$(1),BUILD_DIR=../../$(B)/games/$(1))# the RAM the oldest calculator software that runs apps gives them (23.2: 148928 bytes; 25.2 gives 153676).@@ -29,7 +29,7 @@ RAM_LIMIT = 148928# custom builds of Epsilon 25.2's source give apps less: 133652 bytes; every game fits there too, in NumPlay and on# its own (their big buffers are on the stack, 32 KB apart from that RAM, or in the RAM the software has left)CUSTOM_RAM = 133652-BIG_APPS = Celeste HollowKnight Undertale ChampionIsland FinalEarth2 NumPowder NumBlocks NumDrive SubwaySurfers FiveNightsAtFreddys Doom BindingOfIsaac HillClimbRacing PlantsVsZombies SonicTheHedgehog CookieClicker LevelDevil JetpackJoyride StickmanHook DonkeyKong Dune MonkeyMart TombOfTheMask UNO FridayNightFunkin TurboRush AngryBirds PolyTrack UniversalPaperclips BadTimeSimulator Mahjong Rider SnowRider3D TempleRun FiveNightsAtFreddys2 FiveNightsAtFreddys3 FiveNightsAtFreddys4 Famidash UniversalPaperclips-French+BIG_APPS = Celeste HollowKnight Undertale Deltarune ChampionIsland FinalEarth2 NumPowder NumBlocks NumDrive SubwaySurfers FiveNightsAtFreddys Doom BindingOfIsaac HillClimbRacing PlantsVsZombies SonicTheHedgehog CookieClicker LevelDevil JetpackJoyride StickmanHook DonkeyKong Dune MonkeyMart TombOfTheMask UNO FridayNightFunkin TurboRush AngryBirds PolyTrack UniversalPaperclips BadTimeSimulator Mahjong Rider SnowRider3D TempleRun FiveNightsAtFreddys2 FiveNightsAtFreddys3 FiveNightsAtFreddys4 Famidash UniversalPaperclips-French# the calculator's space for installed apps: from the end of its software (64 KiB aligned) to 64 KiB before the# end of its 4 MiB slot of flash, 0x903F0000. The software's size sets the start: 0x90200000 is the latest a# NumPlay counts on (1.94 MB, APP_SPACE); Epsilon 26.4 on an N0120 ends at 0x90180000 (2.44 MB, the@@ -305,6 +305,7 @@ APP_celeste = $(B)/games/celeste/celeste.nwa:Celeste.nwaAPP_championisland = $(B)/games/championisland/championisland.nwa:ChampionIsland.nwaAPP_hollowknight = $(B)/games/hollowknight/hollowknight.nwa:HollowKnight.nwaAPP_undertale = $(B)/games/undertale/undertale.nwa:Undertale.nwa+APP_deltarune = $(B)/games/deltarune/deltarune.nwa:Deltarune.nwaAPP_subway = $(B)/games/subway/subway.nwa:SubwaySurfers.nwaAPP_fnaf = $(B)/games/fnaf/fnaf.nwa:FiveNightsAtFreddys.nwaAPP_hillclimb = $(B)/games/hillclimb/hillclimb.nwa:HillClimbRacing.nwa@@ -353,6 +354,7 @@ apps: | $(B)$(MAKE) -C games/championisland build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/championisland$(MAKE) -C games/hollowknight build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/hollowknight$(MAKE) -C games/undertale build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/undertale+ $(MAKE) -C games/deltarune build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/deltarune$(MAKE) -C games/subway build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/subway$(MAKE) -C games/fnaf build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/fnaf$(MAKE) -C games/hillclimb build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/hillclimb@@ -399,6 +401,7 @@ apps: | $(B)cp $(word 1,$(subst :, ,$(APP_championisland))) $(B)/apps/$(word 2,$(subst :, ,$(APP_championisland)))cp $(word 1,$(subst :, ,$(APP_hollowknight))) $(B)/apps/$(word 2,$(subst :, ,$(APP_hollowknight)))cp $(word 1,$(subst :, ,$(APP_undertale))) $(B)/apps/$(word 2,$(subst :, ,$(APP_undertale)))+ cp $(word 1,$(subst :, ,$(APP_deltarune))) $(B)/apps/$(word 2,$(subst :, ,$(APP_deltarune)))cp $(word 1,$(subst :, ,$(APP_subway))) $(B)/apps/$(word 2,$(subst :, ,$(APP_subway)))cp $(word 1,$(subst :, ,$(APP_fnaf))) $(B)/apps/$(word 2,$(subst :, ,$(APP_fnaf)))cp $(word 1,$(subst :, ,$(APP_hillclimb))) $(B)/apps/$(word 2,$(subst :, ,$(APP_hillclimb)))@@ -487,6 +490,7 @@ clean:-$(MAKE) -C games/championisland clean-$(MAKE) -C games/hollowknight clean-$(MAKE) -C games/undertale clean+ -$(MAKE) -C games/deltarune clean-$(MAKE) -C games/subway clean-$(MAKE) -C games/fnaf clean-$(MAKE) -C games/hillclimb cleandiff --git a/docs/media/gallery/deltarune.gif b/docs/media/gallery/deltarune.gifnew file mode 100644index 00000000..41c8a847Binary files /dev/null and b/docs/media/gallery/deltarune.gif differdiff --git a/docs/media/thumb_deltarune.png b/docs/media/thumb_deltarune.pngnew file mode 100644index 00000000..5ea0fe36Binary files /dev/null and b/docs/media/thumb_deltarune.png differdiff --git a/docs/play.md b/docs/play.mdindex 5a02d196..7d6ec894 100644--- a/docs/play.md+++ b/docs/play.md@@ -290,6 +290,24 @@ Name the fallen human, then walk and talk your way through the Ruins, Snowdin, W<br clear="right">+## Deltarune++<img src="media/gallery/deltarune.gif" width="320" align="right" alt="Deltarune: Kris, Susie and Ralsei fight a Rudinn, its diamonds fly at the SOUL">++Deltarune comes as its own app, `Deltarune.nwa`: it is too big to share the calculator with NumPlay.++| Key | What it does |+| --- | --- |+| **Arrows** (or 4, 6, 8, 2) | Walk, move your SOUL, choose |+| **OK**, **EXE** or 5 | Talk, read, confirm (Z in the game) |+| **Back** or **⌫** | Cancel; hold it to run, or to show the whole text at once (X in the game) |+| **toolbox**, **shift** or **var** | The menu (C in the game) |+| **Home** | Keep the moment and quit |++Chapter 1: Kris wakes up, goes to school, and falls into the Dark World with Susie. In a battle each of your party picks in turn: FIGHT (press **OK** as each bar reaches the line), ACT (Kris) or MAGIC (Susie and Ralsei), ITEM, SPARE or DEFEND. Defending, hitting well and letting bullets pass close by your SOUL (grazing) fill the TP bar, which pays for ACTs and spells. An enemy whose name turns yellow can be spared; one that's TIRED can be put to sleep by Ralsei's Pacify. Walk up to a SAVE point and press **OK** to save. Home keeps the moment you were at, and your save is also copied into `deltarune_saves.py`, so installing the app again doesn't erase it.++<br clear="right">+## Doom<img src="media/doom.gif" width="320" align="right" alt="Doom: imps down a corridor of Phobos Lab, then zombiemen around the yellow key">diff --git a/games/deltarune/README.md b/games/deltarune/README.mdnew file mode 100644index 00000000..11171e2d--- /dev/null+++ b/games/deltarune/README.md@@ -0,0 +1,68 @@+> **Deltarune is a [NumPlay](../../README.md) game that comes on its own.** It is too big to fit next to NumPlay on the calculator. Get `Deltarune.nwa` from the [latest release](https://github.com/Mason363/NumPlay/releases/latest).++<p align="center">+ <img src="src/icon.png" width="84" alt="Deltarune icon">+</p>++<h1 align="center">Deltarune</h1>++<p align="center">+ <b>Chapter 1, on the NumWorks calculator.</b><br>+ From Kris's room to the school's supply closet, the Dark World, Castle Town and the Field.+</p>++<p align="center">+ <a href="https://github.com/Mason363/NumPlay/releases/latest/download/Deltarune.nwa"><b>Download Deltarune.nwa</b></a>+ · <a href="#controls">Controls</a>+</p>++<p align="center">+ <img src="../../docs/media/gallery/deltarune.gif" width="640" alt="Kris and Ralsei in Castle Town, then Kris, Susie and Ralsei fight two Rudinns">+</p>++## Highlights++* **The Light World:** Toriel wakes Kris up, drives Kris to school, Alphys's class, Susie in the hall and the supply closet, where the floor gives way. Every bed, shelf and sign says what it says in the game.+* **The Dark World:** the cliffs where Kris lands, Susie in the dust pile, the eye puzzle, the slopes, Lancer's chase, the castle, Lancer's first fight and Ralsei, Castle Town, the tutorial and the Great Door to the Field.+* **Battles like in the game:** each member of the party picks FIGHT, ACT or MAGIC, ITEM, SPARE or DEFEND. FIGHT's bars, TP from defending, hitting and grazing, Rude Buster, Pacify and Heal Prayer, the enemies' bubbles and their bullets in the box: Lancer, the Dummy, Rudinn and Hathy.+* **The original's own pictures, rooms and texts**, read from Chapter 1's game files, with its numbers: stats, items, spells, enemies and battles.+* **Saved like in the game:** SAVE at the SAVE points. Home keeps the moment you were at, and your save is also copied into `deltarune_saves.py`, so installing the app again doesn't erase it.++<table>+ <tr>+ <td align="center"><img src="docs/shot.png" width="390" alt="Castle Town"><br><sub>Castle Town, with Ralsei</sub></td>+ <td align="center"><img src="docs/battle.png" width="390" alt="A battle"><br><sub>Rudinn's diamonds</sub></td>+ </tr>+</table>++## How to play++Name the vessel, then walk and talk your way from Kris's room into the Dark World. In a battle each member of your party picks in turn. FIGHT: press **OK** as each bar reaches the line. ACT does something to an enemy, MAGIC casts a spell for TP, ITEM heals, SPARE spares an enemy whose name is yellow, and DEFEND takes less damage and gives TP. Then move your SOUL in the box to dodge; bullets that pass close by give TP too.++## Controls++| Key | What it does |+| --- | --- |+| **Arrows** (or 4, 6, 8, 2) | Walk, move your SOUL, choose |+| **OK**, **EXE** or 5 | Talk, read, confirm (Z in the game) |+| **Back** or **⌫** | Cancel; hold it to run, or to show the whole text at once (X in the game) |+| **toolbox**, **shift** or **var** | The menu (C in the game) |+| **Home** | Keep the moment and quit |++## Good to know++* The chapter goes as far as the Field so far: the Great Board, the Forest and the Card Castle come next.+* The battle's menus and numbers are drawn at half the original's size, as the Dark World is; the enemies' bubbles keep their size, so their words stay readable.+* No music or sound: the calculator has no speaker.++## Credits++Inspired by [Deltarune](https://deltarune.com) by Toby Fox, not affiliated with him. Go play the original: it's on Windows, Mac, Switch and PlayStation, with music, every chapter and more.++* The pictures, fonts, rooms and texts come from the game's own files (Chapter 1, 2018), and its rules and numbers follow the game's own code.++Made by Mason Chen as part of NumPlay.++## License++The game's code is licensed under the GNU General Public License v3.0: see the `LICENSE` file at the root of the repository. The game's pictures, fonts and texts keep their own terms (see Credits).diff --git a/games/deltarune/docs/battle.png b/games/deltarune/docs/battle.pngnew file mode 100644index 00000000..7965d782Binary files /dev/null and b/games/deltarune/docs/battle.png differdiff --git a/games/deltarune/docs/shot.png b/games/deltarune/docs/shot.pngnew file mode 100644index 00000000..b03f9abbBinary files /dev/null and b/games/deltarune/docs/shot.png differdiff --git a/games/deltarune/src/dw.c b/games/deltarune/src/dw.cindex 198bde67..98fd2a65 100644--- a/games/deltarune/src/dw.c+++ b/games/deltarune/src/dw.c@@ -119,6 +119,10 @@ void dw_step(void) {if (g_room == room_dark_chase1 && plot() < 16) room_queue_event(EV_CHASE1);if (g_room == room_dark_chase2 && plot() < 17) room_queue_event(EV_SLIDE);}+ if (g_room == room_dark_chase1 && plot() == 16) {+ Obj *l = obj_find(ACT_LANCER);+ if (l) obj_walk_to(l, pl.x + 40, pl.y - 120, 3);+ }/* the field's enemies come at Kris */for (int i = 0; i < MAX_OBJS; i++) {Obj *o = &objs[i];@@ -204,16 +208,7 @@ static int ev_chase1(Ev *c) {WAIT(30);TALKF(FC_SUSIE, 9, obj_lancerchaseevent_slash_Step_0_gml_137_0);set_plot(16);- /* (he follows, at Kris's own pace) */- FREE(true);- for (;;) {- {- Obj *l = obj_get(ACT_LANCER);- obj_walk_to(l, pl.x + 40, pl.y - 120, 3);- }- if (g_room != room_dark_chase1) break;- WAIT(1);- }+ /* (he follows, at Kris's own pace: dw_step) */EV_END;}diff --git a/games/deltarune/src/icon.png b/games/deltarune/src/icon.pngnew file mode 100644index 00000000..b929f459Binary files /dev/null and b/games/deltarune/src/icon.png differdiff --git a/games/games.json b/games/games.jsonindex b7116273..69447b6b 100644--- a/games/games.json+++ b/games/games.json@@ -697,6 +697,34 @@"default": false,"xl": true},+ {+ "id": "deltarune",+ "rank": 37,+ "title": "Deltarune",+ "tagline": "Chapter 1: into the Dark World",+ "credit": "Based on Deltarune by Toby Fox",+ "top": "0x2A1E46",+ "bottom": "0x050308",+ "accent": "0x2BD9F5",+ "colors": 16,+ "records": [+ "deltarune.sav",+ "drresume.sav",+ "drconfig.sav",+ "deltarune_saves.py"+ ],+ "reset": [+ "deltarune.sav",+ "drresume.sav",+ "deltarune_saves.py"+ ],+ "shots": [+ "docs/shot.png"+ ],+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/deltarune",+ "default": false,+ "xl": true+ },{"id": "championisland","rank": 24,diff --git a/tests/test_games.py b/tests/test_games.pyindex 749ec92d..8f7ba66a 100644--- a/tests/test_games.py+++ b/tests/test_games.py@@ -178,6 +178,12 @@ GAMES = {*[(5000 + 200 * i, "down") for i in range(8)], (6800, "right"), (7000, "right"),(7300, "ok"), (8300, "right"), (8600, "ok"), (10500, "right", 1500)), 13000,presses((1500, "left", 1000)), 4000),+ # New game, the name "A" and END: Toriel wakes Kris up and her texts go by; Home keeps the moment, and the+ # next start is back there+ "deltarune": ("Deltarune.nwa", "drresume.sav",+ presses((1500, "ok"), (2500, "ok"), (3000, "down"), (3200, "down"), (3400, "down"), (3600, "down"),+ (3800, "right"), (4100, "ok"), (6000, "ok"), (7000, "ok"), (8000, "ok")), 11000,+ presses((1500, "left", 1000)), 4000),# how to play, the title, a run up the middle track through the first coins; Home banks them. Next time# straight from the title into another run, quit with On/Off"subway": ("SubwaySurfers.nwa", "subway.sav", presses((1500, "ok"), (2500, "ok")), 8000,@@ -375,7 +381,8 @@ SEEDS = {# the app again, only the scripts are left, and the save must come backCOPIES = {"championisland": "champion_saves.py", "numblocks": "numblocks_saves.py", "celeste": "celeste_saves.py","hollowknight": "hollowknight_saves.py", "finalearth2": "finalearth2_saves.py",- "numpowder": "numpowder_saves.py", "undertale": "undertale_saves.py", "subway": "subway_saves.py",+ "numpowder": "numpowder_saves.py", "undertale": "undertale_saves.py", "deltarune": "deltarune_saves.py",+ "subway": "subway_saves.py","fnaf": "fnaf_saves.py", "doom": "doom_saves.py", "isaac": "isaac_saves.py","hillclimb": "hillclimb_saves.py", "pvz": "pvz_saves.py", "sonic": "sonic_saves.py","cookieclicker": "cookieclicker_saves.py", "leveldevil": "leveldevil_saves.py",@@ -477,6 +484,9 @@ CHECKS = {# the moment kept ("UT01", the frames played at 52); after the reinstall, from the copy, it goes on"undertale": (lambda v: v[:4] == b"UT01" and struct.unpack_from("<I", v, 52)[0] > 0,lambda v: v[:4] == b"UT01" and struct.unpack_from("<I", v, 52)[0] > 60),+ # the moment kept ("DR01", the frames played at 156); after the reinstall, from the copy, it goes on+ "deltarune": (lambda v: v[:4] == b"DR01" and struct.unpack_from("<I", v, 156)[0] > 0,+ lambda v: v[:4] == b"DR01" and struct.unpack_from("<I", v, 156)[0] > 60),# the progress ("SUB1"): a run played, its coins banked (offset 8), runs at 20; then a second run"subway": (lambda v: v[:4] == b"SUB1" and struct.unpack_from("<I", v, 8)[0] > 0 and struct.unpack_from("<I", v, 20)[0] == 1,lambda v: v[:4] == b"SUB1" and struct.unpack_from("<I", v, 20)[0] == 2),diff --git a/tools/release.py b/tools/release.pyindex c930fa8d..750fc0ef 100644--- a/tools/release.py+++ b/tools/release.py@@ -29,6 +29,7 @@ ALONE = {"celeste": ("Celeste", "the whole climb up Celeste Mountain"),"hollowknight": ("Hollow Knight", "from King's Pass to Hornet in Greenpath"),"undertale": ("Undertale", "the whole Underground, to the barrier and the neutral ending"),+ "deltarune": ("Deltarune", "Chapter 1, from Kris's room into the Dark World and its first battles"),"subway": ("Subway Surfers", "the endless run down the subway's tracks, in 3D"),"fnaf": ("Five Nights at Freddy's", "five nights at Freddy Fazbear's Pizza, the 6th and the Custom Night"),"hillclimb": ("Hill Climb Racing", "Newton Bill's ride up the hills: thirteen stages, thirteen vehicles"),