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
circloO: built and tested with NumPlay
Mason36339d4ffdd7842
diff --git a/Makefile b/Makefileindex e06521c9..e156296e 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 = amongus angrybirds badtime balatro blockblast breakout buckshot catninja celeste championisland chess clashroyale connectfour cookieclicker coreball deltarune dinorun donkeykong doodlejump doom dune famidash finalearth2 flappybird flappydunk fnaf fnaf2 fnaf3 fnaf4 fnafworld fnf fourplayer g2048 hillclimb hollowknight imposter invaders isaac jetpackjoyride kingdomrush leveldevil mahjong meowdoku minesweeper monkeymart motox3m mrbullet numblocks numpico numpowder numvisuals pacman paperclips polytrack portal pvz rider snake snowrider sokoban solitaire sonic stickmanhook subway sudoku suika templerun tombofthemask towerblock twoplayer undertale uno uttt+GAMES_REDIRECT = amongus angrybirds badtime balatro blockblast breakout buckshot catninja celeste championisland chess circloo clashroyale connectfour cookieclicker coreball deltarune dinorun donkeykong doodlejump doom dune famidash finalearth2 flappybird flappydunk fnaf fnaf2 fnaf3 fnaf4 fnafworld fnf fourplayer g2048 hillclimb hollowknight imposter invaders isaac jetpackjoyride kingdomrush leveldevil mahjong meowdoku minesweeper monkeymart motox3m mrbullet numblocks numpico numpowder numvisuals pacman paperclips polytrack portal pvz rider snake snowrider sokoban solitaire sonic stickmanhook subway sudoku suika templerun tombofthemask towerblock 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 AngryBirds PolyTrack UniversalPaperclips BadTimeSimulator Mahjong Rider SnowRider3D TempleRun FiveNightsAtFreddys2 FiveNightsAtFreddys3 FiveNightsAtFreddys4 Famidash ClashRoyale UniversalPaperclips-French CatNinja KingdomRush Deltarune FiveNightsAtFreddysWorld MrBullet NumPico MotoX3M AmongUs Imposter FourPlayers+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 AngryBirds PolyTrack UniversalPaperclips BadTimeSimulator Mahjong Rider SnowRider3D TempleRun FiveNightsAtFreddys2 FiveNightsAtFreddys3 FiveNightsAtFreddys4 Famidash ClashRoyale UniversalPaperclips-French CatNinja KingdomRush Deltarune FiveNightsAtFreddysWorld MrBullet NumPico MotoX3M AmongUs Imposter FourPlayers CircloO# 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@@ -47,7 +47,7 @@ XL_APP_SPACE = 6291456# the spaces the customizer website offers (kit.json "spaces"; tools/kit.py links a NumPlay at each)SPACES = std:$(APP_START):$(APP_END) e26:$(APP_START_26):$(APP_END) xl:$(APP_START):$(XL_END) xl26:$(APP_START_26):$(XL_END)# big games that must install on their own without Enlarged Extra Apps: make check holds them to APP_SPACE-APP_SPACE_APPS = HillClimbRacing FridayNightFunkin AngryBirds PolyTrack UniversalPaperclips UniversalPaperclips-French BadTimeSimulator Mahjong SnowRider3D TempleRun Famidash CatNinja MrBullet NumPico MotoX3M AmongUs Imposter FourPlayers Deltarune+APP_SPACE_APPS = HillClimbRacing FridayNightFunkin AngryBirds PolyTrack UniversalPaperclips UniversalPaperclips-French BadTimeSimulator Mahjong SnowRider3D TempleRun Famidash CatNinja MrBullet NumPico MotoX3M AmongUs Imposter FourPlayers Deltarune CircloO# Upsilon, the N0110 and N0115's custom software, gives .nwa apps less RAM: NumPlay-Upsilon.nwa has# the games that fit it (NumPlay draws their text there: see launcher/src/compat.c)UPSILON_RAM = 107674@@ -347,6 +347,7 @@ APP_motox3m = $(B)/games/motox3m/motox3m.nwa:MotoX3M.nwaAPP_amongus = $(B)/games/amongus/amongus.nwa:AmongUs.nwaAPP_imposter = $(B)/games/imposter/imposter.nwa:Imposter.nwaAPP_fourplayer = $(B)/games/fourplayer/fourplayer.nwa:FourPlayers.nwa+APP_circloo = $(B)/games/circloo/circloo.nwa:CircloO.nwa# the big games' modules are made from these (the kit)$(foreach g,$(XL_GAMES),$(eval MOD_$(g) = $$(word 1,$$(subst :, ,$$(APP_$(g))))))# (NumPico's leaves its table of carts to NumPlay Studio, which links the carts dropped on it in its block)@@ -407,6 +408,7 @@ apps: | $(B)$(MAKE) -C games/amongus build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/amongus$(MAKE) -C games/imposter build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/imposter$(MAKE) -C games/fourplayer build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/fourplayer+ $(MAKE) -C games/circloo build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/circloocd 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)))@@ -464,6 +466,7 @@ apps: | $(B)cp $(word 1,$(subst :, ,$(APP_amongus))) $(B)/apps/$(word 2,$(subst :, ,$(APP_amongus)))cp $(word 1,$(subst :, ,$(APP_imposter))) $(B)/apps/$(word 2,$(subst :, ,$(APP_imposter)))cp $(word 1,$(subst :, ,$(APP_fourplayer))) $(B)/apps/$(word 2,$(subst :, ,$(APP_fourplayer)))+ cp $(word 1,$(subst :, ,$(APP_circloo))) $(B)/apps/$(word 2,$(subst :, ,$(APP_circloo)))arm-none-eabi-strip --strip-unneeded $(B)/apps/Tetris.nwaSTD_APPS = $(foreach g,$(STD_GAMES),$(B)/apps/$(NWA_$(g)))@@ -561,5 +564,6 @@ clean:-$(MAKE) -C games/amongus clean-$(MAKE) -C games/imposter clean-$(MAKE) -C games/fourplayer clean+ -$(MAKE) -C games/circloo clean-cd games/tetris/tetris && $(CARGO) clean-$(foreach g,$(STD_GAMES),$(MAKE) -C games/$(g) clean;)diff --git a/games/games.json b/games/games.jsonindex c0c85711..71c2366c 100644--- a/games/games.json+++ b/games/games.json@@ -2143,5 +2143,31 @@"nspire","casio-cg"]+ },+ {+ "id": "circloo",+ "rank": 48,+ "title": "circloO",+ "tagline": "Roll the ball, grow the circle",+ "credit": "Based on circloO by Florian van Strien",+ "top": "0xD89645",+ "bottom": "0x563C1B",+ "accent": "0xD89645",+ "colors": 16,+ "records": [+ "circloo.sav",+ "circloo_saves.py"+ ],+ "shots": [+ "docs/shot.png"+ ],+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/circloo",+ "default": false,+ "xl": true,+ "ports": [+ "sdl",+ "web",+ "nspire"+ ]}]diff --git a/tests/ci.py b/tests/ci.pyindex 2ca866f2..579eee56 100644--- a/tests/ci.py+++ b/tests/ci.py@@ -25,7 +25,7 @@ HOST = ["numblocks", "numdrive", "championisland", "undertale", "doom", "isaac","tombofthemask", "invaders", "sudoku", "uttt", "sokoban", "twoplayer", "flappydunk", "towerblock", "suika","doodlejump", "stickmanhook", "coreball", "uno", "fnf", "angrybirds", "polytrack", "paperclips", "badtime","mahjong", "rider", "snowrider", "templerun", "fnaf2", "famidash", "catninja", "motox3m", "amongus", "imposter",- "fourplayer"]+ "fourplayer", "circloo"]HOST_ARGS = {"fnf": " BUILD_DIR=../../build/data/games/fnf"}# seconds on CI (v1.24.3's run); the emulator's 71 apps took 2450 in all, the Python tests about 380WEIGHT = {"numblocks": 89, "numdrive": 20, "championisland": 69, "undertale": 445, "doom": 54, "isaac": 380,@@ -35,7 +35,7 @@ WEIGHT = {"numblocks": 89, "numdrive": 20, "championisland": 69, "undertale": 44"suika": 112, "doodlejump": 5, "stickmanhook": 103, "coreball": 26, "uno": 36, "fnf": 80, "angrybirds": 627,"polytrack": 116, "paperclips": 164, "badtime": 59, "mahjong": 25, "rider": 137, "snowrider": 30,"templerun": 384, "fnaf2": 654, "famidash": 7, "catninja": 60, "motox3m": 10, "amongus": 110, "imposter": 20,- "fourplayer": 40}+ "fourplayer": 40, "circloo": 15}EMULATOR = 2450PYTHON = 380diff --git a/tests/test_games.py b/tests/test_games.pyindex 119ccd66..5741000d 100644--- a/tests/test_games.py+++ b/tests/test_games.py@@ -338,6 +338,10 @@ GAMES = {"fourplayer": ("FourPlayers.nwa", "fourplayer.sav",presses((1500, "ok"), (2200, "ok"), (2900, "ok"), (5300, "shift"), (5600, "exe")), 6500,presses((1500, "down")), 3500),+ # level 1 from the main menu, the ball rolled right a while; Home saves. Next time, from the copy, the menu, then+ # On/Off+ "circloo": ("CircloO.nwa", "circloo.sav",+ presses((1500, "ok"), (2500, "right", 2000)), 6000, presses((1500, "down")), 3500),# Play, the first level, the gas held a while; Home saves. Next time, from the copy, the map, then On/Off"motox3m": ("MotoX3M.nwa", "motox3m.sav",presses((1500, "ok"), (2200, "ok"), (3000, "up", 4000)), 9000,@@ -442,7 +446,7 @@ COPIES = {"championisland": "champion_saves.py", "numblocks": "numblocks_saves.p"catninja": "catninja_saves.py","kingdomrush": "kingdomrush_saves.py","mrbullet": "mrbullet_saves.py", "motox3m": "motox3m_saves.py", "amongus": "amongus_saves.py", "imposter": "imposter_saves.py",- "fourplayer": "fourplayer_saves.py"}+ "fourplayer": "fourplayer_saves.py", "circloo": "circloo_saves.py"}def paperclips_ok(v):@@ -751,6 +755,8 @@ CHECKS = {# Down chose 2 v 2"fourplayer": (lambda v: len(v) == 188 and v[:4] == b"FOUR" and v[4:8] == bytes([1, 2, 0, 3]),lambda v: len(v) == 188 and v[:4] == b"FOUR" and v[4:8] == bytes([1, 3, 0, 3])),+ # "COOS", version 1, its size (104): levels 1 and 2 open in both modes; after the reinstall, from the copy, the same+ "circloo": (lambda v: len(v) == 112 and v[:8] == b"COOS\x01\x00\x68\x00" and v[8:10] == bytes([2, 2]),) * 2,"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 8c877fa2..97b43d8a 100644--- a/tools/release.py+++ b/tools/release.py@@ -73,6 +73,7 @@ ALONE = {"amongus": ("Among Us", "Innersloth's game on the Skeld against up to 9 bots: every task, sabotages, vents, kills, meetings and votes"),"imposter": ("Imposter", "the party game: pass the calculator, everyone sees the secret word but the imposter, 30 categories"),"fourplayer": ("2 3 4 Players", "one-key party games for 2, 3 or 4 players on one calculator, and teams: 14 minigames"),+ "circloo": ("circloO", "Florian van Strien's physics game: its 14 levels and 6 hard mode levels, read from the game's own files"),"numpico": ("NumPico", "PICO-8 carts on the calculator: add your own .p8 and .p8.png carts in NumPlay Studio"),}VARIANTS = [