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
Merge remote-tracking branch 'origin/main' into dk
Mason36354da8c6c4ad7
diff --cc Makefileindex bc6c60b7,9723b923..fae7eb95--- a/Makefile+++ b/Makefile@@@ -24,7 -24,7 +24,7 @@@ RAM_LIMIT = 14892# 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 DonkeyKong-BIG_APPS = Celeste HollowKnight Undertale ChampionIsland FinalEarth2 NumPowder NumBlocks NumDrive SubwaySurfers FiveNightsAtFreddys Doom BindingOfIsaac HillClimbRacing PlantsVsZombies SonicTheHedgehog CookieClicker LevelDevil JetpackJoyride StickmanHook++BIG_APPS = Celeste HollowKnight Undertale ChampionIsland FinalEarth2 NumPowder NumBlocks NumDrive SubwaySurfers FiveNightsAtFreddys Doom BindingOfIsaac HillClimbRacing PlantsVsZombies SonicTheHedgehog CookieClicker LevelDevil JetpackJoyride StickmanHook DonkeyKong# the calculator's space for installed apps (0x90200000 to 0x903F0000 in its flash)APP_SPACE = 2031616# Upsilon, the N0110 and N0115's custom software, gives .nwa apps less RAM: NumPlay-Upsilon.nwa has@@@ -222,7 -222,7 +222,8 @@@ APP_sonic = games/sonic/output/sonic.nwAPP_cookieclicker = games/cookieclicker/output/cookieclicker.nwa:CookieClicker.nwaAPP_leveldevil = games/leveldevil/output/leveldevil.nwa:LevelDevil.nwaAPP_jetpackjoyride = games/jetpackjoyride/output/jetpackjoyride.nwa:JetpackJoyride.nwa+ APP_stickmanhook = games/stickmanhook/output/stickmanhook.nwa:StickmanHook.nwa+APP_donkeykong = games/donkeykong/output/donkeykong.nwa:DonkeyKong.nwaapps: | $(B)$(MAKE) -C games/numdash build NWLINK="node node_modules/nwlink/bin/nwlink"@@@ -249,7 -249,7 +250,8 @@@$(MAKE) -C games/cookieclicker build NWLINK="$(NWLINK)"$(MAKE) -C games/leveldevil build NWLINK="$(NWLINK)"$(MAKE) -C games/jetpackjoyride build NWLINK="$(NWLINK)"+ $(MAKE) -C games/stickmanhook build NWLINK="$(NWLINK)"+ $(MAKE) -C games/donkeykong build NWLINK="$(NWLINK)"cd 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)))@@@ -276,7 -276,7 +278,8 @@@cp $(word 1,$(subst :, ,$(APP_cookieclicker))) $(B)/apps/$(word 2,$(subst :, ,$(APP_cookieclicker)))cp $(word 1,$(subst :, ,$(APP_leveldevil))) $(B)/apps/$(word 2,$(subst :, ,$(APP_leveldevil)))cp $(word 1,$(subst :, ,$(APP_jetpackjoyride))) $(B)/apps/$(word 2,$(subst :, ,$(APP_jetpackjoyride)))+ cp $(word 1,$(subst :, ,$(APP_stickmanhook))) $(B)/apps/$(word 2,$(subst :, ,$(APP_stickmanhook)))+ cp $(word 1,$(subst :, ,$(APP_donkeykong))) $(B)/apps/$(word 2,$(subst :, ,$(APP_donkeykong)))arm-none-eabi-strip --strip-unneeded $(B)/apps/Tetris.nwaSTD_APPS = $(foreach g,$(STD_GAMES),$(B)/apps/$(NWA_$(g)))@@@ -343,6 -343,6 +346,7 @@@ clean-$(MAKE) -C games/cookieclicker clean-$(MAKE) -C games/leveldevil clean-$(MAKE) -C games/jetpackjoyride clean+ -$(MAKE) -C games/stickmanhook clean+ -$(MAKE) -C games/donkeykong clean-cd games/tetris/tetris && $(CARGO) clean-$(foreach g,$(STD_GAMES),$(MAKE) -C games/$(g) clean;)diff --cc tests/test_games.pyindex fe7f9760,caf93e89..824e39c8--- a/tests/test_games.py+++ b/tests/test_games.py@@@ -217,10 -217,10 +217,14 @@@ GAMES =# copy, it opens paused: Back, another second, paused again, quit with On/Off"jetpackjoyride": ("JetpackJoyride.nwa", "jetpackjoyride.sav", presses((1500, "ok"), (2500, "ok"), (3600, "back")), 5000,presses((1500, "back"), (2700, "back")), 4000),+ # the title, how to play (the first time), then level 1: the stickman falls and swings; Home keeps the level.+ # Next time, from the copy, Play goes back to it, then Back pauses it; quit with On/Off+ "stickmanhook": ("StickmanHook.nwa", "stickmanhook.sav", presses((1500, "ok"), (2500, "ok"), (3300, "ok", 700)), 5000,+ presses((1500, "ok"), (2700, "back")), 4000),+ # the title, how to play, then the game: a second of Kong's climb, paused (that saves it); Home keeps it. Next+ # time, from the copy, it opens paused: Back, a second more, paused again, quit with On/Off+ "donkeykong": ("DonkeyKong.nwa", "donkeykong.sav", presses((1500, "ok"), (2500, "ok"), (3600, "back")), 5000,+ presses((1500, "back"), (2700, "back")), 4000),# 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,@@@ -253,24 -253,7 +257,25 @@@ COPIES = {"championisland": "champion_s"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",- "jetpackjoyride": "jetpackjoyride_saves.py", "donkeykong": "donkeykong_saves.py"}- "jetpackjoyride": "jetpackjoyride_saves.py", "stickmanhook": "stickmanhook_saves.py"}++ "jetpackjoyride": "jetpackjoyride_saves.py", "stickmanhook": "stickmanhook_saves.py",++ "donkeykong": "donkeykong_saves.py"}+++def dk_frames(v):+ """Donkey Kong's save: the frames since the game began (the arcade's difficulty clock, in the packed RAM)."""+ raw, i = bytearray(), 24+ while i < len(v) - 4 and len(raw) <= 0x384:+ c = v[i]+ i += 1+ if c < 128:+ raw += v[i:i + c + 1]+ i += c + 1+ else:+ raw += bytes([v[i]]) * (c - 126)+ i += 1+ return raw[0x381] * 256 + raw[0x384] if len(raw) > 0x384 else -1++CHECKS = {# the island remembers where Lucky was; after the reinstall, from the copy"championisland": (lambda v: v[:3] == b"CI1" and b"PLAYER_LOC" in v,) * 2,@@@ -377,9 -360,10 +382,13 @@@# a run kept ("JJR1", has_run at 23, its frames at 60); after the reinstall, from the copy, it goes on"jetpackjoyride": (lambda v: len(v) == 728 and v[:4] == b"JJR1" and v[23] == 1 and struct.unpack_from("<I", v, 60)[0] >= 30,lambda v: v[:4] == b"JJR1" and v[23] == 1 and struct.unpack_from("<I", v, 60)[0] >= 90),+ # how to play seen, level 1 being played ("SHK3", guide_seen at 17, has_course at 18, the course at 20); after the+ # reinstall, from the copy, the same level and course+ "stickmanhook": (lambda v: len(v) == 28 and v[:4] == b"SHK3" and v[17] == 1 and v[18] == 1 and v[20] == 0+ and v[21] == 255,) * 2,+ # a game kept ("DKG1", the game at 23, one game played) a second in; after the reinstall, from the copy, it goes on+ "donkeykong": (lambda v: v[:4] == b"DKG1" and v[23] == 1 and v[12] == 1 and dk_frames(v) >= 30,+ lambda v: v[:4] == b"DKG1" and v[23] == 1 and v[12] == 1 and dk_frames(v) >= 90),"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 keptdiff --cc tools/release.pyindex c4acd15b,2db30a7b..0939451f--- a/tools/release.py+++ b/tools/release.py@@@ -40,7 -40,7 +40,8 @@@ ALONE ="numvisuals": ("NumVisuals", "moving backgrounds with a clock, a stopwatch, a timer, a counter or your own words"),"cookieclicker": ("Cookie Clicker", "the whole game, to the grandmapocalypse, ascension and the dragon"),"jetpackjoyride": ("Jetpack Joyride", "Barry's run through the lab, with five vehicles and the Final Spin"),+ "stickmanhook": ("Stickman Hook", "swing from hook to hook: 39 levels made by hand, then endless ones"),+ "donkeykong": ("Donkey Kong", "the 1981 arcade game: barrels, pies, elevators and rivets, up to Pauline"),}VARIANTS = [("NumPlay-Invisible.nwa", "The same app, hidden: a blank icon with no name"),