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
Friday Night Funkin': docs and NumPlay's wiring
Mason363483bd240db8b
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex dc29f093..d8274720 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -87,6 +87,7 @@ jobs:make -C games/stickmanhook host testmake -C games/coreball host testmake -C games/uno host test+ make -C games/fnf host test BUILD_DIR=../../build/data/games/fnfdiff --git a/Makefile b/Makefileindex 8a91de02..eeaec82f 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 = balatro blockblast breakout buckshot celeste championisland chess connectfour cookieclicker coreball dinorun donkeykong doodlejump doom dune finalearth2 flappybird flappydunk fnaf 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 twoplayer undertale uno uttt+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 portal pvz snake sokoban solitaire sonic stickmanhook subway sudoku suika 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+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# 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+APP_SPACE_APPS = HillClimbRacing FridayNightFunkin# 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@@ -322,6 +322,7 @@ APP_dune = $(B)/games/dune/dune.nwa:Dune.nwaAPP_monkeymart = $(B)/games/monkeymart/monkeymart.nwa:MonkeyMart.nwaAPP_tombofthemask = $(B)/games/tombofthemask/tombofthemask.nwa:TombOfTheMask.nwaAPP_uno = $(B)/games/uno/uno.nwa:UNO.nwa+APP_fnf = $(B)/games/fnf/fnf.nwa:FridayNightFunkin.nwa# the big games' modules are made from these (the kit)$(foreach g,$(XL_GAMES),$(eval MOD_$(g) = $$(word 1,$$(subst :, ,$$(APP_$(g))))))@@ -356,6 +357,7 @@ apps: | $(B)$(MAKE) -C games/monkeymart build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/monkeymart$(MAKE) -C games/tombofthemask build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/tombofthemask$(MAKE) -C games/uno build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/uno+ $(MAKE) -C games/fnf build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/fnfcd 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)))@@ -388,6 +390,7 @@ apps: | $(B)cp $(word 1,$(subst :, ,$(APP_monkeymart))) $(B)/apps/$(word 2,$(subst :, ,$(APP_monkeymart)))cp $(word 1,$(subst :, ,$(APP_tombofthemask))) $(B)/apps/$(word 2,$(subst :, ,$(APP_tombofthemask)))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)))arm-none-eabi-strip --strip-unneeded $(B)/apps/Tetris.nwaSTD_APPS = $(foreach g,$(STD_GAMES),$(B)/apps/$(NWA_$(g)))@@ -460,5 +463,6 @@ clean:-$(MAKE) -C games/monkeymart clean-$(MAKE) -C games/tombofthemask clean-$(MAKE) -C games/uno clean+ -$(MAKE) -C games/fnf clean-cd games/tetris/tetris && $(CARGO) clean-$(foreach g,$(STD_GAMES),$(MAKE) -C games/$(g) clean;)diff --git a/docs/media/fnf.gif b/docs/media/fnf.gifnew file mode 100644index 00000000..117820ffBinary files /dev/null and b/docs/media/fnf.gif differdiff --git a/docs/media/thumb_fnf.png b/docs/media/thumb_fnf.pngnew file mode 100644index 00000000..a35c1bbbBinary files /dev/null and b/docs/media/thumb_fnf.png differdiff --git a/games/fnf/README.md b/games/fnf/README.mdindex c7104191..6b1ed9e5 100644--- a/games/fnf/README.md+++ b/games/fnf/README.md@@ -1,64 +1,91 @@-# Friday Night Funkin' — calculator adaptation--Native, silent adaptation by **Bobydeluxe** for the NumWorks N0110, N0115 and N0120. Standalone large-game download, outside the NumPlay launcher and customizer kit. English interface.-- --From the repository root, build it with `make build/data/apps/FridayNightFunkin.nwa` or `python tools/build.py --game fnf`. The release catalogue lists it among the individual big games. This fan adaptation is not affiliated with The Funkin' Crew.--The pinned official content contains **27 songs and 166 playable charts**: Tutorial, Weeks 1–7, Weekend 1 and the LE SSERAFIM collaboration. Freeplay includes the original, Erect/Nightmare, Pico and Boyfriend variations wherever present in those source files. Story Mode runs each week's songs in sequence. All weeks and charts are selectable from the start.--There is **no music, voice, sound effect, encoded silent audio or video** in the installed app. A clock, visual countdown and beat cue drive play. The app ends a song 1.2 seconds after its final charted note/hold or event; an audio file's uncharted tail is not included.+> **Friday Night Funkin' is a [NumPlay](../../README.md) game that comes on its own.** It is too big to fit next to NumPlay on the calculator. Get `FridayNightFunkin.nwa` from the [latest release](https://github.com/Mason363/NumPlay/releases/latest).++<p align="center">+ <img src="src/icon.png" width="84" alt="Friday Night Funkin' icon">+</p>++<h1 align="center">Friday Night Funkin'</h1>++<p align="center">+ <b>Win the rap battles, note by note, on the NumWorks calculator.</b><br>+ Every week of the game, from the Tutorial to Weekend 1, with its charts, characters and stages.+</p>++<p align="center">+ <a href="https://github.com/Mason363/NumPlay/releases/latest/download/FridayNightFunkin.nwa"><b>Download FridayNightFunkin.nwa</b></a>+ · <a href="#controls">Controls</a>+</p>++<p align="center">+ <img src="../../docs/media/fnf.gif" width="640" alt="Friday Night Funkin': Ready, Set, Go, then Daddy Dearest sings and Boyfriend hits the notes back on the beat">+</p>++## Highlights++* **Every song and chart:** the Tutorial, Weeks 1 to 7, Weekend 1 and LE SSERAFIM: 27 songs with their Erect and Pico remixes, 166 charts with every note, at the game's own timing.+* **Story mode and freeplay:** a week's songs one after the other, for the week's score, or any song at any difficulty, from Boyfriend's songs or Pico's.+* **The game's own scoring:** points for how close each hit is, Sick, Good, Bad and Shit, the health bar, combos, long notes, misses, and the ranks from Loss to Perfect.+* **The beat, without the music:** the characters bop and sing, the camera and the health icons bump on the beat, and Ready, Set, Go counts you in.+* **The game's look:** its own characters, stages, notes, ratings and letters, with Week 6 in pixels.+* **Saved as you go:** Home saves and quits. Your scores are also copied into `fnf_saves.py`, so installing the app again doesn't erase them.++<table>+ <tr>+ <td align="center"><img src="docs/shot.png" width="390" alt="Bopeebo: Boyfriend against Daddy Dearest"><br><sub>Week 1: Daddy Dearest</sub></td>+ <td align="center"><img src="docs/school.png" width="390" alt="Senpai at the school"><br><sub>Week 6, in pixels</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/mall.png" width="390" alt="Cocoa at the mall"><br><sub>Week 5: the mall at Christmas</sub></td>+ <td align="center"><img src="docs/tankman.png" width="390" alt="Ugh against Tankman"><br><sub>Week 7: Tankman</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/pico.png" width="390" alt="Philly Nice, Pico's remix"><br><sub>Pico's remixes, in freeplay</sub></td>+ <td align="center"><img src="docs/freeplay.png" width="390" alt="Freeplay"><br><sub>Freeplay: your best score and rank</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/story.png" width="390" alt="Story mode"><br><sub>Story mode, week by week</sub></td>+ <td align="center"><img src="docs/results.png" width="390" alt="The results"><br><sub>The results</sub></td>+ </tr>+ <tr>+ <td align="center"><img src="docs/pause.png" width="390" alt="The pause menu"><br><sub>The pause menu</sub></td>+ <td align="center"><img src="docs/title.png" width="390" alt="The title screen"><br><sub>The title screen</sub></td>+ </tr>+</table>++## How to play++The notes scroll up to the arrows at the top of the screen. Press each note's key as it reaches its arrow: **Left**, **Down**, **Up** or **Right**, or **7**, **8**, **(** and **)**. Keep the key down to the end of a long note. The closer to the beat, the better: Sick, Good, Bad or Shit, and Sick and Good keep your combo going.++A missed note, or a key pressed with no note to hit, costs health: when the green side of the bar runs out, it's game over. The singer on the left sings first, then it's your turn: watch them, and the characters bopping, to keep the beat.## Controls-| Action | Keys |+| Key | What it does || --- | --- |-| Left / Down / Up / Right notes | Left / Down / Up / Right arrows **or 7 / 8 / ( / )**, respectively |-| Chords and holds | Press lanes together; keep the key down for a long note |-| Select / Confirm | OK or EXE |-| Pause / Back | Back |-| Week or song | Up / Down |-| Difficulty | Left / Right |-| Freeplay variation | 1 |-| Credits on title | 0 |-| Save and leave | Home or Power |--Arrow and number aliases are combined before detecting presses. Pressing both aliases for a lane produces one hit; releasing one while keeping the other pressed preserves the hold. Menus use the arrow keys. Options provide downscroll, ghost tapping (off by default) and beat animation.--## Gameplay and fidelity--The native engine retains **all 90,437 notes from the 166 player charts**, including opponent notes, chords, long notes, note kinds, difficulty, scroll speeds and BPM changes. Time and duration are quantized to 1/16 millisecond (at most 0.03125 ms error each). Notes are read from flash, with a bounded 64-note working queue. The PBOT1 scoring curve, 45/90/135/160 ms judgements, health, combo rules, hold rewards and drop penalties follow the pinned source. The source's two `picospeaker` charts are auxiliary NPC animation tracks, not additional player levels; their original data is retained in the source model but they are not playable chart entries.--This is a C adaptation for a 320×240 calculator, **not the Haxe/Flixel runtime**. Original artwork is reduced to native display sizes and a 15-colour palette per sprite, with up to four selected frames per animation. All 21 referenced stages and 46 character configurations are converted. Stage backgrounds use one composited frame; framing, camera effects, character placement, scripted fights and collaboration lighting are simplified. Complex desktop cinematics, shaders, background actors' choreography, editor, online functions and video are not reproduced. It is not a pixel-for-pixel reproduction of the desktop game.--Saved records contain each chart's best score, best completion and best combo, completed weeks and options. Completion follows the source's `(Sick + Good - Missed) / player notes`, clamped to 0–100%. Best records are updated on a successful clear. A failed run or retry does not erase them.--## Storage and RAM--The final build sizes and hash are written to `output/build-report.json`. Both released and debug packages must produce identical installed bytes and fit the shared **2,031,616-byte flash budget**; compilation/install checks use the smaller **107,674-byte RAM allocation** too.--Artwork and note streams remain in flash. RAM contains one 9,600-byte half-resolution background cache, one 5,120-byte LCD strip, the bounded note/input queues and small game/save state. There is no full framebuffer, dynamic allocation, whole-song note array, decoded atlas or on-device JSON parser. Keyboard transitions are sampled between LCD strips and judged using their wall-clock timestamps, independent of rendering frequency. Pausing freezes the chart clock; retry resets the stream and all per-run state.--The `fnf.sav` record is versioned and CRC checked. An inert Python script `fnf_save.py` carries a comment-only hexadecimal backup so records can be recovered after reinstalling an app; its contents are parsed as data, never executed. Both files use about 4.1 KB including record names. Keep the backup if reinstalling. If storage is full, the app shows Retry / Return to menu / Exit without saving. It preserves unrelated calculator records.+| Left, Down, Up, Right | Hit the notes (7, 8, ( and ) too) |+| Up and Down | Choose a week or a song |+| Left and Right | Choose the difficulty |+| shift | In freeplay, Boyfriend's songs or Pico's |+| OK | Choose |+| Back | Pause (Resume, Restart song, Exit to menu, Options, How to play, Quit game) |+| Home | Save and quit |-## Build and validation+## Good to know-With ARM GCC, Python 3 (Pillow for importing art), Node and nwlink available:+* **On its own:** Friday Night Funkin' is too big to fit next to NumPlay. Installing it from the NumWorks website swaps out NumPlay and the other apps, and installing NumPlay again swaps it back out.+* **Without sound:** the calculator has no speaker. The notes still come at the songs' exact times, and the countdown, the characters and the camera keep the beat. If your hits come out early or late, change the note offset in Options.+* **Made to fit:** the camera shows the whole stage instead of following the singer, the stages are still pictures, the characters have fewer frames, and the cutscenes, the dialogue and the freeplay DJ are left out.-```sh-python build.py --arm-bin /path/to/arm/bin --nwlink /path/to/nwlink-make test HOST_CC=cc-python tests/test_assets.py-python tests/test_arm.py --nwlink /path/to/nwlink-```+## Credits-The build needs only the checked-in packed inputs and original-art icon. To reimport the large reference assets, use `tools/import_reference.py --reference PATH`; the reference directory must contain the exact pinned repositories under `original/` and their license files. `tools/assets.py` builds deterministic C ROM tables from `assets/model.json.zlib`, `assets/art.json` and `assets/art.bin`. Generated `src/data.c` and `src/ids.h` are ignored build outputs; the Makefile generates them before parallel compilation. `assets/chart-manifest.json` is checked in for review. All three reproduce from the packed inputs.+Inspired by [Friday Night Funkin'](https://github.com/FunkinCrew/Funkin) by the Funkin' Crew (ninjamuffin99, PhantomArcade, evilsk8r and Kawai Sprite), not affiliated with them. Go play the original: it's free on itch.io and Newgrounds, with the music.-The artifact is `output/fnf.nwa`, also copied to the workspace's `build/apps/FridayNightFunkin.nwa`. See [VALIDATION.md](VALIDATION.md) for the measured checks and their limits.+* The charts, characters, stages, notes, ratings and letters come from the game's own files ([funkin.assets](https://github.com/FunkinCrew/funkin.assets)), which keep the Funkin' Crew's terms: they are not in this repository, and are fetched when the game is built. The rules and numbers follow the game's own code, under the Apache License 2.0.+* The calculator adaptation is by **[Bobydeluxe](https://github.com/Bobydeluxe)**, who brought it to NumPlay.+* The text uses NumPlay's **Nunito** font (SIL Open Font License).-## Credits and rights+Made by Mason Chen as part of NumPlay.-Original game, characters, charts, logo and art: **The Funkin' Crew and the original contributors**, credited in the pinned projects. Native calculator adaptation: **Bobydeluxe**. The interface uses NumPlay's Nunito font (SIL OFL 1.1).+## License-See [ASSETS.md](ASSETS.md) for source revisions and conversion details. The upstream code is Apache 2.0; the separate art/assets license reserves copyright and explicitly restricts public redistribution. This local build does not grant redistribution rights. Original content is not relicensed under NumPlay's license. The PR records this upstream licensing limitation for maintainer review; no additional art redistribution permission is asserted.+The game's code is licensed under the GNU General Public License v3.0: see the `LICENSE` file at the root of the repository. The game's charts and pictures keep the Funkin' Crew's own terms (see Credits). "Friday Night Funkin'" is a trademark of The Funkin' Crew Inc.diff --git a/games/fnf/docs/freeplay.png b/games/fnf/docs/freeplay.pngnew file mode 100644index 00000000..8376c7e3Binary files /dev/null and b/games/fnf/docs/freeplay.png differdiff --git a/games/fnf/docs/mall.png b/games/fnf/docs/mall.pngnew file mode 100644index 00000000..2be708f3Binary files /dev/null and b/games/fnf/docs/mall.png differdiff --git a/games/fnf/docs/pause.png b/games/fnf/docs/pause.pngnew file mode 100644index 00000000..6b2afd75Binary files /dev/null and b/games/fnf/docs/pause.png differdiff --git a/games/fnf/docs/pico.png b/games/fnf/docs/pico.pngnew file mode 100644index 00000000..d7ae3d5dBinary files /dev/null and b/games/fnf/docs/pico.png differdiff --git a/games/fnf/docs/results.png b/games/fnf/docs/results.pngnew file mode 100644index 00000000..c8b66c5cBinary files /dev/null and b/games/fnf/docs/results.png differdiff --git a/games/fnf/docs/school.png b/games/fnf/docs/school.pngnew file mode 100644index 00000000..b44c580aBinary files /dev/null and b/games/fnf/docs/school.png differdiff --git a/games/fnf/docs/shot.png b/games/fnf/docs/shot.pngnew file mode 100644index 00000000..b2885e16Binary files /dev/null and b/games/fnf/docs/shot.png differdiff --git a/games/fnf/docs/story.png b/games/fnf/docs/story.pngnew file mode 100644index 00000000..c70185a8Binary files /dev/null and b/games/fnf/docs/story.png differdiff --git a/games/fnf/docs/tankman.png b/games/fnf/docs/tankman.pngnew file mode 100644index 00000000..f2316f43Binary files /dev/null and b/games/fnf/docs/tankman.png differdiff --git a/games/fnf/docs/title.png b/games/fnf/docs/title.pngnew file mode 100644index 00000000..93c4662cBinary files /dev/null and b/games/fnf/docs/title.png differdiff --git a/games/games.json b/games/games.jsonindex 75ccd0e6..ab7afb1d 100644--- a/games/games.json+++ b/games/games.json@@ -677,7 +677,7 @@},{"id": "championisland",- "rank": 19,+ "rank": 20,"title": "Champion Island","tagline": "Seven sports, one island","credit": "Based on Google's Champion Island Games",@@ -699,7 +699,7 @@},{"id": "finalearth2",- "rank": 20,+ "rank": 21,"title": "The Final Earth 2","tagline": "Build a city in space","credit": "Based on the game by Florian van Strien",@@ -721,7 +721,7 @@},{"id": "numpowder",- "rank": 15,+ "rank": 16,"title": "NumPowder","tagline": "Sand, water, fire and more","credit": "Inspired by The Powder Toy",@@ -753,7 +753,7 @@},{"id": "subway",- "rank": 4,+ "rank": 5,"title": "Subway Surfers","tagline": "Dodge the trains","credit": "Based on Subway Surfers by SYBO and Kiloo",@@ -775,7 +775,7 @@},{"id": "fnaf",- "rank": 13,+ "rank": 14,"title": "Five Nights at Freddy's","tagline": "Survive five nights","credit": "Based on the game by Scott Cawthon",@@ -797,7 +797,7 @@},{"id": "doom",- "rank": 11,+ "rank": 12,"title": "Doom","tagline": "Rip and tear","credit": "Based on Doom by id Software",@@ -836,7 +836,7 @@},{"id": "isaac",- "rank": 17,+ "rank": 18,"title": "The Binding of Isaac","tagline": "Cry through the basement","credit": "Based on the game by Edmund McMillen",@@ -858,7 +858,7 @@},{"id": "hillclimb",- "rank": 18,+ "rank": 19,"title": "Hill Climb Racing","tagline": "Drive up, don't flip","credit": "Based on Hill Climb Racing by Fingersoft",@@ -880,7 +880,7 @@},{"id": "pvz",- "rank": 7,+ "rank": 8,"title": "Plants vs. Zombies","tagline": "Plant your lawn","credit": "Based on the game by PopCap Games",@@ -902,7 +902,7 @@},{"id": "sonic",- "rank": 16,+ "rank": 17,"title": "Sonic the Hedgehog","tagline": "Run through six zones","credit": "Based on the game by Sonic Team",@@ -923,7 +923,7 @@},{"id": "cookieclicker",- "rank": 22,+ "rank": 23,"title": "Cookie Clicker","tagline": "Bake billions of cookies","credit": "Based on Cookie Clicker by Orteil",@@ -944,7 +944,7 @@},{"id": "leveldevil",- "rank": 21,+ "rank": 22,"title": "Level Devil","tagline": "Run to the door","credit": "Based on Level Devil by Unept",@@ -965,7 +965,7 @@},{"id": "jetpackjoyride",- "rank": 5,+ "rank": 6,"title": "Jetpack Joyride","tagline": "Fly Barry through the lab","credit": "Based on Jetpack Joyride by Halfbrick",@@ -986,7 +986,7 @@},{"id": "stickmanhook",- "rank": 9,+ "rank": 10,"title": "Stickman Hook","tagline": "Swing from hook to hook","credit": "Based on Stickman Hook by Madbox",@@ -1007,7 +1007,7 @@},{"id": "donkeykong",- "rank": 14,+ "rank": 15,"title": "Donkey Kong","tagline": "Climb the girders and save Pauline","credit": "Based on Donkey Kong by Nintendo",@@ -1028,7 +1028,7 @@},{"id": "dune",- "rank": 10,+ "rank": 11,"title": "Dune","tagline": "Roll down the dunes and fly over the line","credit": "Based on Dune! by Team Lava",@@ -1049,7 +1049,7 @@},{"id": "monkeymart",- "rank": 6,+ "rank": 7,"title": "Monkey Mart","tagline": "Run a grocery mart as a monkey","credit": "Based on Monkey Mart by TinyDobbins",@@ -1070,7 +1070,7 @@},{"id": "tombofthemask",- "rank": 8,+ "rank": 9,"title": "Tomb of the Mask","tagline": "Dash through the tomb ahead of the lava","credit": "Based on Tomb of the Mask by Playgendary",@@ -1091,7 +1091,7 @@},{"id": "uno",- "rank": 12,+ "rank": 13,"title": "UNO","tagline": "Match the cards, shout UNO","credit": "Based on UNO by Mattel",@@ -1109,5 +1109,26 @@"repo": "https://github.com/Mason363/NumPlay/tree/main/games/uno","default": false,"xl": true+ },+ {+ "id": "fnf",+ "rank": 4,+ "title": "Friday Night Funkin'",+ "tagline": "Win the rap battles, note by note",+ "credit": "Based on Friday Night Funkin' by the Funkin' Crew",+ "top": "0x3A1F5D",+ "bottom": "0x140A24",+ "accent": "0xF9393F",+ "colors": 16,+ "records": [+ "fnf.sav",+ "fnf_saves.py"+ ],+ "shots": [+ "docs/shot.png"+ ],+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/fnf",+ "default": false,+ "xl": true}]diff --git a/tests/test_games.py b/tests/test_games.pyindex 79ff3e9d..dca21d0b 100644--- a/tests/test_games.py+++ b/tests/test_games.py@@ -250,6 +250,10 @@ GAMES = {# keeps the game. Next time, from the copy, Continue: back at the table, quit with On/Off"uno": ("UNO.nwa", "uno.sav", presses((1500, "ok"), (2200, "ok"), (2900, "back")), 6000,presses((1500, "ok")), 4000),+ # the title, Story Mode, Week 1, how to play (the first time: Back skips it), then Bopeebo plays; Home keeps the+ # guide read. Next time, from the copy: Options, downscroll on (Back saves it), quit with On/Off+ "fnf": ("FridayNightFunkin.nwa", "fnf.sav", presses((1500, "ok"), (2200, "ok"), (2900, "ok"), (3600, "back")), 7000,+ presses((1500, "ok"), (2200, "down"), (2700, "down"), (3200, "ok"), (3900, "ok"), (4600, "back")), 6000),# 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,@@ -315,7 +319,8 @@ COPIES = {"championisland": "champion_saves.py", "numblocks": "numblocks_saves.p"cookieclicker": "cookieclicker_saves.py", "leveldevil": "leveldevil_saves.py","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"}+ "tombofthemask": "tombofthemask_saves.py", "uno": "uno_saves.py",+ "fnf": "fnf_saves.py"}def dk_frames(v):@@ -464,6 +469,10 @@ CHECKS = {# the table (16) in its first hand (hands at 682); after the reinstall, from the copy, the same game goes on"uno": (lambda v: len(v) == 728 and v[:4] == b"UNO1" and v[12] == 1 and v[13] == 1 and v[16] == 4and struct.unpack_from("<H", v, 682)[0] == 1,) * 2,+ # "FNFS", version 1, its size (1552): how to play read (guide at 9); after the reinstall, from the copy, downscroll+ # on (at 8), the guide still read+ "fnf": (lambda v: len(v) == 1552 and v[:4] == b"FNFS" and v[4] == 1 and v[9] == 1 and v[8] == 0,+ lambda v: len(v) == 1552 and v[:4] == b"FNFS" and v[9] == 1 and v[8] == 1),"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 --git a/tools/release.py b/tools/release.pyindex e3a24ad6..b118d0ac 100644--- a/tools/release.py+++ b/tools/release.py@@ -26,7 +26,6 @@ REPO = "https://github.com/Mason363/NumPlay"EXTRAS = set()# games too big to fit next to NumPlay on the calculator: only on their own, in a section of their ownALONE = {- "fnf": ("Friday Night Funkin'", "silent native adaptation: 27 songs and 166 charts; by Bobydeluxe"),"celeste": ("Celeste", "the whole climb up Celeste Mountain"),"hollowknight": ("Hollow Knight", "from King's Pass to Hornet in Greenpath"),"undertale": ("Undertale", "the whole Underground, to the barrier and the neutral ending"),@@ -50,6 +49,7 @@ ALONE = {"monkeymart": ("Monkey Mart", "run a grocery mart as a monkey, both marts: crops, animals, machines and workers"),"tombofthemask": ("Tomb of the Mask", "dash through the tomb: the endless arcade climb and all 200 stages, with the 16 masks"),"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"),}VARIANTS = [("NumPlay-Invisible.nwa", "The same app, hidden: a blank icon with no name"),