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.

Merge branch 'angrybirds' into polygt

Mason363739ecf5b6c15
diff --cc .github/workflows/build.yml
index 89f11a09,0b5fbd0c..b4419160
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@@ -90,7 -90,7 +90,8 @@@ jobs
make -C games/uno host test
make -C games/fnf host test BUILD_DIR=../../build/data/games/fnf
make -C games/turborush host test BUILD_DIR=../../build/data/games/turborush
+ make -C games/angrybirds host test
+ make -C games/polygt3d host test BUILD_DIR=../../build/data/games/polygt3d
diff --cc Makefile
index 3706d816,ef4fc25e..84be4d36
--- a/Makefile
+++ b/Makefile
@@@ -18,7 -18,7 +18,7 @@@ PY ?= python
CARGO ?= cargo
B = build/data
# Conventional games honor a configurable output directory; special layouts are kept local.
- GAMES_REDIRECT = balatro blockblast breakout buckshot celeste championisland chess connectfour cookieclicker coreball dinorun donkeykong doodlejump doom dune finalearth2 flappybird flappydunk fnaf fnf g2048 hillclimb hollowknight invaders isaac jetpackjoyride leveldevil minesweeper monkeymart numblocks numpowder numvisuals pacman polygt3d portal pvz snake sokoban solitaire sonic stickmanhook subway sudoku suika tombofthemask towerblock turborush twoplayer undertale uno uttt
-GAMES_REDIRECT = angrybirds balatro blockblast breakout buckshot celeste championisland chess connectfour cookieclicker coreball dinorun donkeykong doodlejump doom dune finalearth2 flappybird flappydunk fnaf fnf g2048 hillclimb hollowknight invaders isaac jetpackjoyride leveldevil minesweeper monkeymart numblocks numpowder numvisuals pacman portal pvz snake sokoban solitaire sonic stickmanhook subway sudoku suika tombofthemask towerblock turborush twoplayer undertale uno uttt
++GAMES_REDIRECT = angrybirds balatro blockblast breakout buckshot celeste championisland chess connectfour cookieclicker coreball dinorun donkeykong doodlejump doom dune finalearth2 flappybird flappydunk fnaf fnf g2048 hillclimb hollowknight invaders isaac jetpackjoyride leveldevil minesweeper monkeymart numblocks numpowder numvisuals pacman polygt3d portal pvz snake sokoban solitaire sonic stickmanhook subway sudoku suika tombofthemask towerblock turborush twoplayer undertale uno uttt
GAMES_OUT = dinorun
GAME_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 +29,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 StickmanHook DonkeyKong Dune MonkeyMart TombOfTheMask UNO FridayNightFunkin TurboRush PolyGT3D
-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
++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 PolyGT3D
# 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 +47,7 @@@ XL_APP_SPACE = 629145
# 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 TurboRush PolyGT3D
-APP_SPACE_APPS = HillClimbRacing FridayNightFunkin TurboRush AngryBirds
++APP_SPACE_APPS = HillClimbRacing FridayNightFunkin TurboRush AngryBirds PolyGT3D
# 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
@@@ -324,7 -324,7 +324,8 @@@ APP_tombofthemask = $(B)/games/tombofth
APP_uno = $(B)/games/uno/uno.nwa:UNO.nwa
APP_fnf = $(B)/games/fnf/fnf.nwa:FridayNightFunkin.nwa
APP_turborush = $(B)/games/turborush/turborush.nwa:TurboRush.nwa
+ APP_angrybirds = $(B)/games/angrybirds/angrybirds.nwa:AngryBirds.nwa
+APP_polygt3d = $(B)/games/polygt3d/polygt3d.nwa:PolyGT3D.nwa
# the big games' modules are made from these (the kit)
$(foreach g,$(XL_GAMES),$(eval MOD_$(g) = $$(word 1,$$(subst :, ,$$(APP_$(g))))))
@@@ -361,7 -361,7 +362,8 @@@ apps: | $(B
$(MAKE) -C games/uno build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/uno
$(MAKE) -C games/fnf build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/fnf
$(MAKE) -C games/turborush build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/turborush
+ $(MAKE) -C games/angrybirds build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/angrybirds
+ $(MAKE) -C games/polygt3d build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/polygt3d
cd games/tetris/tetris && NWLINK="$(NWLINK)" $(CARGO) build --release --quiet
cp $(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)))
@@@ -396,7 -396,7 +398,8 @@@
cp $(word 1,$(subst :, ,$(APP_uno))) $(B)/apps/$(word 2,$(subst :, ,$(APP_uno)))
cp $(word 1,$(subst :, ,$(APP_fnf))) $(B)/apps/$(word 2,$(subst :, ,$(APP_fnf)))
cp $(word 1,$(subst :, ,$(APP_turborush))) $(B)/apps/$(word 2,$(subst :, ,$(APP_turborush)))
+ cp $(word 1,$(subst :, ,$(APP_angrybirds))) $(B)/apps/$(word 2,$(subst :, ,$(APP_angrybirds)))
+ cp $(word 1,$(subst :, ,$(APP_polygt3d))) $(B)/apps/$(word 2,$(subst :, ,$(APP_polygt3d)))
arm-none-eabi-strip --strip-unneeded $(B)/apps/Tetris.nwa
STD_APPS = $(foreach g,$(STD_GAMES),$(B)/apps/$(NWA_$(g)))
@@@ -471,6 -471,6 +474,7 @@@ clean
-$(MAKE) -C games/uno clean
-$(MAKE) -C games/fnf clean
-$(MAKE) -C games/turborush clean
+ -$(MAKE) -C games/angrybirds clean
+ -$(MAKE) -C games/polygt3d clean
-cd games/tetris/tetris && $(CARGO) clean
-$(foreach g,$(STD_GAMES),$(MAKE) -C games/$(g) clean;)
diff --cc games/games.json
index 452cd1a5,4f8ab288..193c8b47
--- a/games/games.json
+++ b/games/games.json
@@@ -677,7 -677,7 +677,7 @@@
},
{
"id": "championisland",
-- "rank": 22,
++ "rank": 23,
"title": "Champion Island",
"tagline": "Seven sports, one island",
"credit": "Based on Google's Champion Island Games",
@@@ -699,7 -699,7 +699,7 @@@
},
{
"id": "finalearth2",
-- "rank": 23,
++ "rank": 24,
"title": "The Final Earth 2",
"tagline": "Build a city in space",
"credit": "Based on the game by Florian van Strien",
@@@ -923,7 -923,7 +923,7 @@@
},
{
"id": "cookieclicker",
-- "rank": 25,
++ "rank": 26,
"title": "Cookie Clicker",
"tagline": "Bake billions of cookies",
"credit": "Based on Cookie Clicker by Orteil",
@@@ -944,7 -944,7 +944,7 @@@
},
{
"id": "leveldevil",
-- "rank": 24,
++ "rank": 25,
"title": "Level Devil",
"tagline": "Run to the door",
"credit": "Based on Level Devil by Unept",
@@@ -1152,25 -1152,26 +1152,47 @@@
"default": false,
"xl": true
},
+ {
+ "id": "angrybirds",
+ "rank": 5,
+ "title": "Angry Birds",
+ "tagline": "Fling the birds at the pigs",
+ "credit": "Based on Angry Birds by Rovio",
+ "top": "0x8FD3F4",
+ "bottom": "0x3D7A24",
+ "accent": "0xE0262B",
+ "colors": 16,
+ "heap": 65536,
+ "records": [
+ "angrybirds.sav",
+ "angrybirds_saves.py"
+ ],
+ "shots": [
+ "docs/shot.png"
+ ],
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/angrybirds",
+ "default": false,
+ "xl": true
++ },
+ {
+ "id": "polygt3d",
- "rank": 21,
++ "rank": 22,
+ "title": "PolyGT 3D",
+ "tagline": "3D racing on three circuits",
+ "credit": "A game by Boris-TH",
+ "top": "0x231955",
+ "bottom": "0xEB6E50",
+ "accent": "0x00C3EB",
+ "colors": 16,
+ "records": [
+ "polygt3d.sav",
+ "polygt3d_saves.py"
+ ],
+ "shots": [
+ "docs/shot.png"
+ ],
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/polygt3d",
+ "default": false,
+ "xl": true
}
]
diff --cc tests/test_games.py
index a0c9e1a7,00e4b232..782f44e6
--- a/tests/test_games.py
+++ b/tests/test_games.py
@@@ -258,10 -258,11 +258,15 @@@ GAMES =
# from the copy, Continue: the race again (after a 3, 2, 1), quit with On/Off
"turborush": ("TurboRush.nwa", "turborush.sav", presses((1500, "ok"), (2200, "ok"), (2900, "ok"), (9500, "back"))
+ [(3500, 9000, K["up"])], 11000, presses((1500, "ok")) + [(3500, 6500, K["up"])], 7500),
+ # the title, Poached Eggs, its first level, the story, how to play (the first time), then a bird launched; Home
+ # keeps the play time. Next time, from the copy, the same level without the guide, quit with On/Off
+ "angrybirds": ("AngryBirds.nwa", "angrybirds.sav",
+ presses((1500, "ok"), (2200, "ok"), (2900, "ok"), (3600, "ok"), (4300, "ok"), (5500, "ok")), 9000,
+ presses((1500, "ok"), (2200, "ok"), (2900, "ok"), (3600, "ok")), 6000),
+ # the title's Play, Start race, the first-run guide's OK, then the race: flat out, Back to pause, Home. Next time,
+ # from the copy, Continue: the race again (after a 3, 2, 1), quit with On/Off
+ "polygt3d": ("PolyGT3D.nwa", "polygt3d.sav", presses((1500, "ok"), (2200, "ok"), (2900, "ok"), (9500, "back"))
+ + [(3500, 9000, K["up"])], 11000, presses((1500, "ok")) + [(3500, 6500, K["up"])], 7500),
# 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,
@@@ -328,7 -329,8 +333,8 @@@ COPIES = {"championisland": "champion_s
"jetpackjoyride": "jetpackjoyride_saves.py", "stickmanhook": "stickmanhook_saves.py",
"donkeykong": "donkeykong_saves.py", "dune": "dune_saves.py", "monkeymart": "monkeymart_saves.py",
"tombofthemask": "tombofthemask_saves.py", "uno": "uno_saves.py",
- "fnf": "fnf_saves.py", "turborush": "turborush_saves.py", "polygt3d": "polygt3d_saves.py"}
+ "fnf": "fnf_saves.py", "turborush": "turborush_saves.py",
- "angrybirds": "angrybirds_saves.py"}
++ "angrybirds": "angrybirds_saves.py", "polygt3d": "polygt3d_saves.py"}
def dk_frames(v):
@@@ -487,12 -489,12 +493,18 @@@ CHECKS =
and struct.unpack_from("<I", v, 164)[0] >= 1000,
lambda v: len(v) == 492 and v[:4] == b"TRU1" and v[114] == 1 and v[127] == 1
and struct.unpack_from("<I", v, 164)[0] >= 4000),
+ # "ABS1", version 1, its size (3032): how to play shown (guide at 3014), the first level last played (3012), some
+ # seconds of play (3024); after the reinstall, from the copy, more of them
+ "angrybirds": (lambda v: len(v) == 3032 and v[:4] == b"ABS1" and v[3014] == 1
+ and struct.unpack_from("<H", v, 3012)[0] == 0 and struct.unpack_from("<I", v, 3024)[0] >= 2,
+ lambda v: len(v) == 3032 and v[:4] == b"ABS1" and v[3014] == 1
+ and struct.unpack_from("<I", v, 3024)[0] >= 4),
+ # "PGT1", version 1, its size (496): the guide read (58), a race kept (64) and going (phase at 75), its clock (96)
+ # running; after the reinstall, from the copy, the same race goes on
+ "polygt3d": (lambda v: len(v) == 496 and v[:4] == b"PGT1" and v[4] == 1 and v[58] == 1 and v[64] == 1 and v[75] == 1
+ and struct.unpack_from("<I", v, 96)[0] >= 1000,
+ lambda v: len(v) == 496 and v[:4] == b"PGT1" and v[64] == 1 and v[75] == 1
+ and struct.unpack_from("<I", v, 96)[0] >= 5000),
"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 kept
diff --cc tools/release.py
index cd20be9c,28438e65..75b9f177
--- a/tools/release.py
+++ b/tools/release.py
@@@ -51,7 -51,7 +51,8 @@@ ALONE =
"uno": ("UNO", "the card game against one to three bots, with the official rules and scoring to 500"),
"fnf": ("Friday Night Funkin'", "the Tutorial, Weeks 1 to 7, Weekend 1 and LE SSERAFIM, in story mode and freeplay"),
"turborush": ("Turbo Rush", "an arcade racer by Bobydeluxe: six circuits, a Grand Prix, single races and Free Ride"),
+ "angrybirds": ("Angry Birds", "the 429 levels of the Chrome edition, its seven birds and the Mighty Eagle"),
+ "polygt3d": ("PolyGT 3D", "a low-poly 3D racer by Boris-TH: three circuits against seven rivals, and the endless road"),
}
VARIANTS = [
("NumPlay-Invisible.nwa", "The same app, hidden: a blank icon with no name"),