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
Kingdom Rush: in the builds, the release, the tests and the gallery
Mason3633964854ad5e3
diff --git a/Makefile b/Makefileindex f59a887b..f3a93143 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 dinorun donkeykong doodlejump doom dune famidash finalearth2 flappybird flappydunk fnaf fnaf2 fnaf3 fnaf4 fnf g2048 hillclimb hollowknight invaders isaac jetpackjoyride kingdomrush 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 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 KingdomRush 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@@ -337,6 +337,7 @@ APP_fnaf2 = $(B)/games/fnaf2/fnaf2.nwa:FiveNightsAtFreddys2.nwaAPP_fnaf3 = $(B)/games/fnaf3/fnaf3.nwa:FiveNightsAtFreddys3.nwaAPP_fnaf4 = $(B)/games/fnaf4/fnaf4.nwa:FiveNightsAtFreddys4.nwaAPP_famidash = $(B)/games/famidash/famidash.nwa:Famidash.nwa+APP_kingdomrush = $(B)/games/kingdomrush/kingdomrush.nwa:KingdomRush.nwa# the big games' modules are made from these (the kit)$(foreach g,$(XL_GAMES),$(eval MOD_$(g) = $$(word 1,$$(subst :, ,$$(APP_$(g))))))@@ -385,6 +386,7 @@ apps: | $(B)$(MAKE) -C games/fnaf3 build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/fnaf3$(MAKE) -C games/fnaf4 build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/fnaf4$(MAKE) -C games/famidash build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/famidash+ $(MAKE) -C games/kingdomrush build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/kingdomrushcd games/tetris/tetris && NWLINK="$(NWLINK)" $(CARGO) build --release --quietcp $(word 1,$(subst :, ,$(APP_numdash))) $(B)/apps/$(word 2,$(subst :, ,$(APP_numdash)))cp $(word 1,$(subst :, ,$(APP_crossyroad))) $(B)/apps/$(word 2,$(subst :, ,$(APP_crossyroad)))@@ -432,6 +434,7 @@ apps: | $(B)cp $(word 1,$(subst :, ,$(APP_fnaf3))) $(B)/apps/$(word 2,$(subst :, ,$(APP_fnaf3)))cp $(word 1,$(subst :, ,$(APP_fnaf4))) $(B)/apps/$(word 2,$(subst :, ,$(APP_fnaf4)))cp $(word 1,$(subst :, ,$(APP_famidash))) $(B)/apps/$(word 2,$(subst :, ,$(APP_famidash)))+ cp $(word 1,$(subst :, ,$(APP_kingdomrush))) $(B)/apps/$(word 2,$(subst :, ,$(APP_kingdomrush)))arm-none-eabi-strip --strip-unneeded $(B)/apps/Tetris.nwaSTD_APPS = $(foreach g,$(STD_GAMES),$(B)/apps/$(NWA_$(g)))@@ -519,5 +522,6 @@ clean:-$(MAKE) -C games/fnaf3 clean-$(MAKE) -C games/fnaf4 clean-$(MAKE) -C games/famidash clean+ -$(MAKE) -C games/kingdomrush clean-cd games/tetris/tetris && $(CARGO) clean-$(foreach g,$(STD_GAMES),$(MAKE) -C games/$(g) clean;)diff --git a/docs/media/gallery/kingdomrush.gif b/docs/media/gallery/kingdomrush.gifnew file mode 100644index 00000000..03ec168fBinary files /dev/null and b/docs/media/gallery/kingdomrush.gif differdiff --git a/docs/media/thumb_kingdomrush.png b/docs/media/thumb_kingdomrush.pngnew file mode 100644index 00000000..9d19a00bBinary files /dev/null and b/docs/media/thumb_kingdomrush.png differdiff --git a/games/games.json b/games/games.jsonindex b7116273..37a7bb13 100644--- a/games/games.json+++ b/games/games.json@@ -1449,5 +1449,26 @@"repo": "https://github.com/Mason363/NumPlay/tree/main/games/famidash","default": false,"xl": true+ },+ {+ "id": "kingdomrush",+ "rank": 37,+ "title": "Kingdom Rush",+ "tagline": "Defend the realm with towers",+ "credit": "Based on the game by Ironhide Game Studio",+ "top": "0x4E7A22",+ "bottom": "0x1A2A0A",+ "accent": "0xF0B428",+ "colors": 16,+ "records": [+ "kingdomrush.sav",+ "kingdomrush_saves.py"+ ],+ "shots": [+ "docs/shot.png"+ ],+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/kingdomrush",+ "default": false,+ "xl": true}]diff --git a/tests/test_games.py b/tests/test_games.pyindex 749ec92d..64461149 100644--- a/tests/test_games.py+++ b/tests/test_games.py@@ -316,6 +316,12 @@ GAMES = {presses((1500, "ok"), (2200, "ok"), (3000, "ok"), (4000, "ok"), (8000, "back"))+ [(5000, 7000, K["ok"])], 9000,presses((1500, "ok"), (2500, "ok")) + [(3500, 5500, K["ok"])], 6500),+ # the title, the map, Southport's Campaign, an archer tower, the first wave and its goblin's notification, Back to+ # pause; Home keeps it read. Next time, from the copy, the map, quit with On/Off+ "kingdomrush": ("KingdomRush.nwa", "kingdomrush.sav",+ presses((1000, "ok"), (1800, "ok"), (2600, "ok"), (3600, "ok"), (4300, "ok"), (5000, "3"),+ (8000, "ok"), (8800, "back")), 9500,+ presses((1500, "ok"), (2200, "back")), 3500),# a level, its message, then play; then back to the level select"portal": ("PortalReturns.nwa", "portal.sav",presses((1500, "ok"), (2500, "ok"), (3500, "ok")) + every(4000, 7000, 400, "right", 300), 8000,@@ -386,7 +392,8 @@ COPIES = {"championisland": "champion_saves.py", "numblocks": "numblocks_saves.p"angrybirds": "angrybirds_saves.py", "polytrack": "polytrack_saves.py", "paperclips": "paperclips_saves.py","badtime": "badtime_saves.py", "mahjong": "mahjong_saves.py","rider": "rider_saves.py", "snowrider": "snowrider_saves.py", "templerun": "templerun_saves.py",- "fnaf2": "fnaf2_saves.py", "fnaf3": "fnaf3_saves.py", "fnaf4": "fnaf4_saves.py", "famidash": "famidash_saves.py"}+ "fnaf2": "fnaf2_saves.py", "fnaf3": "fnaf3_saves.py", "fnaf4": "fnaf4_saves.py", "famidash": "famidash_saves.py",+ "kingdomrush": "kingdomrush_saves.py"}def paperclips_ok(v):@@ -653,6 +660,10 @@ CHECKS = {# "FMD1", version 1: how to play read (flags at 5), time played (564); after the reinstall, from the copy, more"famidash": (lambda v: famidash_ok(v) and v[5] & 1 and struct.unpack_from("<I", v, 2100)[0] >= 7000,lambda v: famidash_ok(v) and v[5] & 1 and struct.unpack_from("<I", v, 2100)[0] >= 12000),+ # "KRS", version 1, the check byte last: the goblin's notification read (seen_note at 48); after the reinstall,+ # from the copy, still read+ "kingdomrush": (lambda v: len(v) == 57 and v[:4] == b"KRS\1" and v[48] & 8,+ lambda v: len(v) == 57 and v[:4] == b"KRS\1" and v[48] & 8),"breakout": (lambda v: len(v) == 12 and v[:2] == b"B\2" and v[4] == 1 and struct.unpack_from("<I", v, 8)[0] >= 10,lambda v: v[4] == 0 and struct.unpack_from("<I", v, 8)[0] >= 1), # best kept, shake off# Air Hockey and the easy computer chosen; then the normal computer and Tanks, the tallies of the six games keptdiff --git a/tools/release.py b/tools/release.pyindex c930fa8d..c3627003 100644--- a/tools/release.py+++ b/tools/release.py@@ -64,6 +64,7 @@ ALONE = {"fnaf3": ("Five Nights at Freddy's 3", "Fazbear's Fright's six nights with Springtrap and the phantoms: the lure, the vents, the maintenance panel"),"fnaf4": ("Five Nights at Freddy's 4", "the bedroom's nights with the Nightmares: listen at the doors, the closet, the bed, Fun with Plushtrap"),"famidash": ("Famidash", "TFDSoft's Geometry Dash for the NES, made for the calculator: the 173 levels of Famidash HUGE, every mode, practice mode"),+ "kingdomrush": ("Kingdom Rush", "Ironhide's 2011 tower defense: its 12 stages with Heroic and Iron challenges, every tower, spell and boss"),}VARIANTS = [("NumPlay-Invisible.nwa", "The same app, hidden: a blank icon with no name"),