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.

Imposter: wired into the build

Mason363d3b6161ec7a6
diff --git a/Makefile b/Makefile
index 53e329e6..3779edf6 100644
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ PY ?= python3
CARGO ?= cargo
B = 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 g2048 hillclimb hollowknight 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 clashroyale connectfour cookieclicker coreball deltarune dinorun donkeykong doodlejump doom dune famidash finalearth2 flappybird flappydunk fnaf fnaf2 fnaf3 fnaf4 fnafworld fnf 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_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 @@ 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
+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
# 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
+APP_SPACE_APPS = HillClimbRacing FridayNightFunkin AngryBirds PolyTrack UniversalPaperclips UniversalPaperclips-French BadTimeSimulator Mahjong SnowRider3D TempleRun Famidash CatNinja MrBullet NumPico MotoX3M AmongUs Imposter
# 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
@@ -345,6 +345,7 @@ APP_numpico = $(B)/games/numpico/numpico.nwa:NumPico.nwa
APP_deltarune = $(B)/games/deltarune/deltarune.nwa:Deltarune.nwa
APP_motox3m = $(B)/games/motox3m/motox3m.nwa:MotoX3M.nwa
APP_amongus = $(B)/games/amongus/amongus.nwa:AmongUs.nwa
+APP_imposter = $(B)/games/imposter/imposter.nwa:Imposter.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)
@@ -403,6 +404,7 @@ apps: | $(B)
$(MAKE) -C games/deltarune build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/deltarune
$(MAKE) -C games/motox3m build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/motox3m
$(MAKE) -C games/amongus build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/amongus
+ $(MAKE) -C games/imposter build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/imposter
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)))
@@ -458,6 +460,7 @@ apps: | $(B)
cp $(word 1,$(subst :, ,$(APP_deltarune))) $(B)/apps/$(word 2,$(subst :, ,$(APP_deltarune)))
cp $(word 1,$(subst :, ,$(APP_motox3m))) $(B)/apps/$(word 2,$(subst :, ,$(APP_motox3m)))
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)))
arm-none-eabi-strip --strip-unneeded $(B)/apps/Tetris.nwa
STD_APPS = $(foreach g,$(STD_GAMES),$(B)/apps/$(NWA_$(g)))
@@ -553,5 +556,6 @@ clean:
-$(MAKE) -C games/deltarune clean
-$(MAKE) -C games/motox3m clean
-$(MAKE) -C games/amongus clean
+ -$(MAKE) -C games/imposter clean
-cd games/tetris/tetris && $(CARGO) clean
-$(foreach g,$(STD_GAMES),$(MAKE) -C games/$(g) clean;)
diff --git a/docs/media/gallery/imposter.gif b/docs/media/gallery/imposter.gif
new file mode 100644
index 00000000..d0a94eef
Binary files /dev/null and b/docs/media/gallery/imposter.gif differ
diff --git a/docs/media/thumb_imposter.png b/docs/media/thumb_imposter.png
new file mode 100644
index 00000000..0f394116
Binary files /dev/null and b/docs/media/thumb_imposter.png differ
diff --git a/games/games.json b/games/games.json
index 7cf9030b..f9daea99 100644
--- a/games/games.json
+++ b/games/games.json
@@ -21,6 +21,12 @@
"repo": "https://github.com/Mason363/NumDash",
"reset": [
"numdash.nds"
+ ],
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
]
},
{
@@ -94,7 +100,13 @@
"docs/shot.png"
],
"app": "NumBlocks.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/numblocks"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/numblocks",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "numdrive",
@@ -111,7 +123,10 @@
"shots": [
"docs/shot1.png"
],
- "repo": "https://github.com/Mason363/NumDrive"
+ "repo": "https://github.com/Mason363/NumDrive",
+ "ports": [
+ "web"
+ ]
},
{
"id": "balatro",
@@ -128,7 +143,13 @@
"shots": [
"docs/shot.png"
],
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/balatro"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/balatro",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "buckshot",
@@ -145,7 +166,13 @@
"shots": [
"docs/shot.png"
],
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/buckshot"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/buckshot",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "blockblast",
@@ -164,7 +191,14 @@
"docs/shot.png"
],
"app": "BlockBlast.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/blockblast"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/blockblast",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "suika",
@@ -200,7 +234,13 @@
"shots": [
"docs/shot.png"
],
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/portal"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/portal",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "tetris",
@@ -236,7 +276,14 @@
"docs/shot.png"
],
"app": "ChromeDino.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/dinorun"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/dinorun",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "doodlejump",
@@ -255,7 +302,14 @@
"docs/shot.png"
],
"app": "DoodleJump.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/doodlejump"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/doodlejump",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "chess",
@@ -272,7 +326,13 @@
"shots": [
"docs/italian.png"
],
- "repo": "https://github.com/Mason363/NumChess"
+ "repo": "https://github.com/Mason363/NumChess",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "flappybird",
@@ -290,7 +350,13 @@
"docs/shot.png"
],
"app": "FlappyBird.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/flappybird"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/flappybird",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "flappydunk",
@@ -309,7 +375,14 @@
"docs/shot.png"
],
"app": "FlappyDunk.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/flappydunk"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/flappydunk",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "towerblock",
@@ -328,7 +401,14 @@
"docs/shot.png"
],
"app": "TowerBlocks.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/towerblock"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/towerblock",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "coreball",
@@ -347,7 +427,14 @@
"docs/shot.png"
],
"app": "CoreBall.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/coreball"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/coreball",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "pacman",
@@ -365,7 +452,14 @@
"docs/shot.png"
],
"app": "PacMan.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/pacman"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/pacman",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "snake",
@@ -383,7 +477,14 @@
"docs/shot.png"
],
"app": "Snake.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/snake"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/snake",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "connectfour",
@@ -401,7 +502,14 @@
"docs/shot.png"
],
"app": "ConnectFour.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/connectfour"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/connectfour",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "solitaire",
@@ -419,7 +527,14 @@
"docs/shot.png"
],
"app": "Solitaire.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/solitaire"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/solitaire",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "g2048",
@@ -437,7 +552,14 @@
"docs/shot.png"
],
"app": "2048.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/g2048"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/g2048",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "minesweeper",
@@ -455,7 +577,14 @@
"docs/shot.png"
],
"app": "Minesweeper.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/minesweeper"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/minesweeper",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "breakout",
@@ -473,7 +602,14 @@
"docs/shot.png"
],
"app": "BlockBreaker.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/breakout"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/breakout",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "twoplayer",
@@ -492,7 +628,13 @@
],
"colors": 16,
"app": "TwoPlayers.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/twoplayer"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/twoplayer",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "invaders",
@@ -511,7 +653,13 @@
"docs/card.png"
],
"app": "SpaceInvaders.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/invaders"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/invaders",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "sudoku",
@@ -530,7 +678,13 @@
"docs/card.png"
],
"app": "Sudoku.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/sudoku"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/sudoku",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "uttt",
@@ -549,7 +703,13 @@
"docs/card.png"
],
"app": "UltimateTicTacToe.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/uttt"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/uttt",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "sokoban",
@@ -568,7 +728,13 @@
"docs/shot.png"
],
"app": "Sokoban.nwa",
- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/sokoban"
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/sokoban",
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "meowdoku",
@@ -588,7 +754,14 @@
],
"app": "Meowdoku.nwa",
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/meowdoku",
- "default": false
+ "default": false,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "retrogo",
@@ -642,7 +815,12 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/celeste",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire"
+ ]
},
{
"id": "hollowknight",
@@ -667,7 +845,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/hollowknight",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "undertale",
@@ -695,7 +879,12 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/undertale",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "deltarune",
@@ -723,7 +912,12 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/deltarune",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "championisland",
@@ -745,7 +939,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/championisland",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "finalearth2",
@@ -767,7 +967,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/finalearth2",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "numpowder",
@@ -799,7 +1005,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/numpowder",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "subway",
@@ -821,7 +1033,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/subway",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "fnaf",
@@ -843,7 +1061,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/fnaf",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "doom",
@@ -904,7 +1128,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/isaac",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "hillclimb",
@@ -948,7 +1178,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/pvz",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "sonic",
@@ -969,7 +1205,11 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/sonic",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "cookieclicker",
@@ -990,7 +1230,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/cookieclicker",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "leveldevil",
@@ -1011,7 +1257,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/leveldevil",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "jetpackjoyride",
@@ -1032,7 +1284,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/jetpackjoyride",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "stickmanhook",
@@ -1053,7 +1311,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/stickmanhook",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "donkeykong",
@@ -1074,7 +1338,14 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/donkeykong",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "dune",
@@ -1095,7 +1366,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/dune",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "monkeymart",
@@ -1116,7 +1393,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/monkeymart",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "tombofthemask",
@@ -1137,7 +1420,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/tombofthemask",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "uno",
@@ -1158,7 +1447,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/uno",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "fnf",
@@ -1179,9 +1474,14 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/fnf",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
-
{
"id": "angrybirds",
"rank": 5,
@@ -1221,7 +1521,14 @@
"docs/shot.png"
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/numvisuals",
- "default": false
+ "default": false,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
},
{
"id": "polytrack",
@@ -1285,7 +1592,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/badtime",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "mahjong",
@@ -1306,7 +1619,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/mahjong",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "rider",
@@ -1348,7 +1667,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/snowrider",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "templerun",
@@ -1369,7 +1694,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/templerun",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "fnaf2",
@@ -1391,7 +1722,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/fnaf2",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "fnaf3",
@@ -1413,7 +1750,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/fnaf3",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "fnaf4",
@@ -1435,7 +1778,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/fnaf4",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "fnafworld",
@@ -1458,7 +1807,12 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/fnafworld",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire"
+ ]
},
{
"id": "famidash",
@@ -1479,8 +1833,14 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/famidash",
"default": false,
- "xl": true
- },
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
+ },
{
"id": "clashroyale",
"rank": 37,
@@ -1501,7 +1861,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/clashroyale",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "catninja",
@@ -1522,7 +1888,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/catninja",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "kingdomrush",
@@ -1543,7 +1915,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/kingdomrush",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "mrbullet",
@@ -1591,7 +1969,10 @@
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/numpico",
"default": false,
"xl": true,
- "carts": true
+ "carts": true,
+ "ports": [
+ "web"
+ ]
},
{
"id": "motox3m",
@@ -1612,7 +1993,13 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/motox3m",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
},
{
"id": "amongus",
@@ -1634,6 +2021,40 @@
],
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/amongus",
"default": false,
- "xl": true
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg"
+ ]
+ },
+ {
+ "id": "imposter",
+ "rank": 46,
+ "title": "Imposter",
+ "tagline": "One of you doesn't know the word",
+ "credit": null,
+ "top": "0x292C62",
+ "bottom": "0x080C20",
+ "accent": "0xFFC83A",
+ "colors": 16,
+ "records": [
+ "imposter.sav",
+ "imposter_saves.py"
+ ],
+ "shots": [
+ "docs/shot.png"
+ ],
+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/imposter",
+ "default": false,
+ "xl": true,
+ "ports": [
+ "sdl",
+ "web",
+ "nspire",
+ "casio-cg",
+ "ti84ce"
+ ]
}
]
diff --git a/games/imposter/src/ui.c b/games/imposter/src/ui.c
index 05ea150b..b2640227 100644
--- a/games/imposter/src/ui.c
+++ b/games/imposter/src/ui.c
@@ -12,10 +12,12 @@ extern int host_trace;
/* the launcher's drawing sends its strips here */
void np_push(int x, int y, int w, int h, const color_t *px) { plat_push(x, y, w, h, px); }
+#ifndef NP_PORT /* (the other targets bring their own: platform/common/np_alloc.c) */
void *np_alloc(uint32_t size) { /* (gfx_init's: never called, the strip is ours) */
(void)size;
return 0;
}
+#endif
static color_t strip[SCREEN_W * STRIP_H];
#define WHITE 0xFFFF
diff --git a/platform/README.md b/platform/README.md
index 9b260f54..d729f5d2 100644
--- a/platform/README.md
+++ b/platform/README.md
@@ -4,13 +4,15 @@ Every NumPlay game talks to its calculator through one interface: [EADK](include
| Target | Folder | Builds | Status |
| --- | --- | --- | --- |
-| NumWorks | (the calculator's own EADK) | `.nwa` | all games |
-| A computer, a Raspberry Pi | [sdl](sdl/) | a program | first games |
-| TI-84 Plus CE, TI-83 Premium CE | [ti84ce](ti84ce/) | `.8xp`, `.8xv` | first games build; to run in CEmu |
-| TI-Nspire CX, CX II | [nspire](nspire/) | `.tns` | first games build; to run in Firebird |
-| Casio fx-CG50, Graph 90+E | casio-cg | `.g3a` | next |
+| NumWorks | (the calculator's own EADK) | `.nwa` | every game |
+| A computer, a Raspberry Pi | [sdl](sdl/) | a program | every game |
+| A web browser | [sdl](sdl/) with Emscripten | a page | every game but Undertale and Deltarune |
+| TI-Nspire CX, CX II | [nspire](nspire/) | `.tns` | every game |
+| Casio fx-CG50, Graph 90+E | [casio-cg](casio-cg/) | `.g3a` | every game up to 2 MB |
+| TI-84 Plus CE, TI-83 Premium CE | [ti84ce](ti84ce/) | `.8xp` | the light games |
| Casio Graph 35+E II | casio-fx | `.g1a` | later |
-| A web browser | [sdl](sdl/) with Emscripten | WebAssembly | first games |
+
+`games/games.json` lists each game's targets (`"ports"`). `python3 tools/ports.py build <target>` builds them all, `python3 tools/ports.py run` plays each computer build for a few seconds without a window and saves its screens.
## A game on another target
@@ -36,6 +38,7 @@ Implement the functions of `include/eadk.h` and `include/np_port.h` in `platform
- **Time:** milliseconds since the start; sleep.
- **Files:** one buffer of records, kept when `np_storage_changed()` is called.
- **Heap:** `_heap_start` and `_heap_end` around the RAM a game may use beyond its own.
+- **Data:** a game's `.S` data files assemble as they are; for WebAssembly, `embed.py` turns them into C.
## Writing for every target
diff --git a/platform/casio-cg/README.md b/platform/casio-cg/README.md
new file mode 100644
index 00000000..6a0d643f
--- /dev/null
+++ b/platform/casio-cg/README.md
@@ -0,0 +1,30 @@
+# NumPlay on the Casio fx-CG50
+
+The fx-CG50, Graph 90+E, fx-CG10 and fx-CG20, as add-ins (`.g3a`), with [libfxcg](https://github.com/Jonimoose/libfxcg) and newlib on GCC for SuperH.
+
+```
+make port TARGET=casio-cg (in a game's folder): build/casio-cg/<game>.g3a
+```
+
+`FXCG` points to the folder `toolchain.sh` fills: GCC and binutils for `sh3eb-elf`, newlib built for the calculator's calling convention, libfxcg. No Planet Casio tools are needed.
+
+The game's 320 x 240 picture sits in the middle of the 384 x 216 screen, one row in ten left out. An add-in can be 2 MB at most: Celeste and FNAF World are bigger.
+
+| Key | NumWorks key |
+| --- | --- |
+| Arrows | Arrows |
+| EXE | OK |
+| F1 | EXE |
+| EXIT | Back |
+| MENU, AC/ON | Home (save and quit) |
+| DEL | ⌫ |
+| SHIFT | shift |
+| ALPHA | alpha |
+| OPTN | toolbox |
+| VARS | var |
+| X,θ,T | x,n,t |
+| 0 to 9, + − × ÷ . , ( ) ^ x² log ln sin cos tan EXP | the same |
+| (−) | Ans |
+| a b/c, F↔D, → , F2 | e^x, π, √, i |
+
+Saves: `<game>.sav` in the storage memory, written when the game saves (a few seconds apart at most) and when it ends.
diff --git a/tests/ci.py b/tests/ci.py
index 6c28360a..bc7e9c76 100644
--- a/tests/ci.py
+++ b/tests/ci.py
@@ -24,7 +24,7 @@ HOST = ["numblocks", "numdrive", "championisland", "undertale", "doom", "isaac",
"hillclimb", "leveldevil", "cookieclicker", "jetpackjoyride", "donkeykong", "dune", "monkeymart",
"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"]
+ "mahjong", "rider", "snowrider", "templerun", "fnaf2", "famidash", "catninja", "motox3m", "amongus", "imposter"]
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 380
WEIGHT = {"numblocks": 89, "numdrive": 20, "championisland": 69, "undertale": 445, "doom": 54, "isaac": 380,
@@ -33,7 +33,7 @@ WEIGHT = {"numblocks": 89, "numdrive": 20, "championisland": 69, "undertale": 44
"invaders": 7, "sudoku": 3, "uttt": 2, "sokoban": 2, "twoplayer": 114, "flappydunk": 2, "towerblock": 2,
"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}
+ "templerun": 384, "fnaf2": 654, "famidash": 7, "catninja": 60, "motox3m": 10, "amongus": 110, "imposter": 20}
EMULATOR = 2450
PYTHON = 380
diff --git a/tests/test_games.py b/tests/test_games.py
index c0e5ac04..3d147cd2 100644
--- a/tests/test_games.py
+++ b/tests/test_games.py
@@ -330,6 +330,9 @@ GAMES = {
"amongus": ("AmongUs.nwa", "amongus.sav",
presses((1500, "ok"), (2500, "ok"), (3500, "ok"), (4500, "ok"), (5500, "ok"), (7000, "right", 2000)),
10000, presses((1500, "down")), 3500),
+ # Start, the first "Pass to", the role; Home saves the round. Next time, from the copy, the settings, then On/Off
+ "imposter": ("Imposter.nwa", "imposter.sav",
+ presses((1500, "ok"), (2500, "ok"), (3500, "ok")), 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,
@@ -433,7 +436,7 @@ COPIES = {"championisland": "champion_saves.py", "numblocks": "numblocks_saves.p
"clashroyale": "clashroyale_saves.py",
"catninja": "catninja_saves.py",
"kingdomrush": "kingdomrush_saves.py",
- "mrbullet": "mrbullet_saves.py", "motox3m": "motox3m_saves.py", "amongus": "amongus_saves.py"}
+ "mrbullet": "mrbullet_saves.py", "motox3m": "motox3m_saves.py", "amongus": "amongus_saves.py", "imposter": "imposter_saves.py"}
def paperclips_ok(v):
@@ -736,6 +739,8 @@ CHECKS = {
"motox3m": (lambda v: len(v) == 264 and v[:4] == b"MX3S" and v[8] <= 3 and v[9] == 0xFF and v[260] == 1,) * 2,
# "AUSG", version 1: the round, kept; after the reinstall, from the copy, the same
"amongus": (lambda v: v[:4] == b"AUSG" and v[4] == 1,) * 2,
+ # "IMPS", version 1: the players and the round; after the reinstall, from the copy, the same
+ "imposter": (lambda v: v[:4] == b"IMPS" and v[4] == 1,) * 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 kept
diff --git a/tools/release.py b/tools/release.py
index 615e0c58..613399a7 100644
--- a/tools/release.py
+++ b/tools/release.py
@@ -71,6 +71,7 @@ ALONE = {
"mrbullet": ("Mr Bullet", "Lion Studios' spy puzzles: 596 levels of Classic, Grenades, Hostages and Friendly Fire, read from the game's own files"),
"motox3m": ("Moto X3M", "Madpuffers' stunt bike racing: all 50 levels, the flips, the stars and the six bikes, on the game's own physics"),
"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"),
"numpico": ("NumPico", "PICO-8 carts on the calculator: add your own .p8 and .p8.png carts in NumPlay Studio"),
}
VARIANTS = [