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.

Angry Birds: docs and NumPlay's wiring

Mason3631284f93b0837
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b06d2573..89425052 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -89,6 +89,7 @@ jobs:
make -C games/coreball host test
make -C games/uno host test
make -C games/fnf host test BUILD_DIR=../../build/data/games/fnf
+ make -C games/angrybirds host test
diff --git a/Makefile b/Makefile
index eeaec82f..6a1b8437 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 = 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 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 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
+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
# 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
+APP_SPACE_APPS = HillClimbRacing FridayNightFunkin AngryBirds
# 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
@@ -323,6 +323,7 @@ APP_monkeymart = $(B)/games/monkeymart/monkeymart.nwa:MonkeyMart.nwa
APP_tombofthemask = $(B)/games/tombofthemask/tombofthemask.nwa:TombOfTheMask.nwa
APP_uno = $(B)/games/uno/uno.nwa:UNO.nwa
APP_fnf = $(B)/games/fnf/fnf.nwa:FridayNightFunkin.nwa
+APP_angrybirds = $(B)/games/angrybirds/angrybirds.nwa:AngryBirds.nwa
# the big games' modules are made from these (the kit)
$(foreach g,$(XL_GAMES),$(eval MOD_$(g) = $$(word 1,$$(subst :, ,$$(APP_$(g))))))
@@ -358,6 +359,7 @@ apps: | $(B)
$(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/fnf
+ $(MAKE) -C games/angrybirds build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/angrybirds
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)))
@@ -391,6 +393,7 @@ apps: | $(B)
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)))
+ cp $(word 1,$(subst :, ,$(APP_angrybirds))) $(B)/apps/$(word 2,$(subst :, ,$(APP_angrybirds)))
arm-none-eabi-strip --strip-unneeded $(B)/apps/Tetris.nwa
STD_APPS = $(foreach g,$(STD_GAMES),$(B)/apps/$(NWA_$(g)))
@@ -464,5 +467,6 @@ clean:
-$(MAKE) -C games/tombofthemask clean
-$(MAKE) -C games/uno clean
-$(MAKE) -C games/fnf clean
+ -$(MAKE) -C games/angrybirds clean
-cd games/tetris/tetris && $(CARGO) clean
-$(foreach g,$(STD_GAMES),$(MAKE) -C games/$(g) clean;)
diff --git a/docs/media/angrybirds.gif b/docs/media/angrybirds.gif
new file mode 100644
index 00000000..b0980c6b
Binary files /dev/null and b/docs/media/angrybirds.gif differ
diff --git a/docs/media/thumb_angrybirds.png b/docs/media/thumb_angrybirds.png
new file mode 100644
index 00000000..ee8c3903
Binary files /dev/null and b/docs/media/thumb_angrybirds.png differ
diff --git a/games/angrybirds/README.md b/games/angrybirds/README.md
index a84f03d8..7980daed 100644
--- a/games/angrybirds/README.md
+++ b/games/angrybirds/README.md
@@ -1,67 +1,89 @@
-# Angry Birds
-
-Native standalone NumWorks adaptation by **Bobydeluxe**, based on the supplied Angry Birds Chrome/Seasons reference. English interface, offline play, seven bird types, Mighty Eagle, destructible structures, TNT, stars and persistent progression.
-
-The reference contains **429 campaign stages and 14 additional maps**. All 443 are included; the separate benchmark is excluded. This is the content of this web reference, not every episode released for the mobile games.
-
-![Gameplay](docs/gameplay.png)
-
-## Known bugs
-
-**This game still has bugs and is experimental.** Freezes or unexpected closure when selecting a level have been reported on a physical calculator. Loading has been split into interruptible steps and passes emulator tests, but the reported hardware issue still needs confirmation on a real device. Crowded scenes may slow down on older models, and the native physics differs from the original engine. Not every stage has been played through to completion.
-
-## Play
-
-Install `build/apps/AngryBirds.nwa` through the usual NumWorks external-app workflow. It is a standalone large game, excluded from the NumPlay launcher and `games/games.json`. From the repository root, build it with `make build/data/apps/AngryBirds.nwa` or `python tools/build.py --game angrybirds`. The release catalogue lists it among the individual large games. This fan adaptation is not affiliated with Rovio.
-
-| Key | Action |
+> **Angry Birds is a [NumPlay](../../README.md) game that comes on its own.** It is too big to fit next to NumPlay on the calculator. Get `AngryBirds.nwa` from the [latest release](https://github.com/Mason363/NumPlay/releases/latest).
+
+<p align="center">
+ <img src="src/icon.png" width="84" alt="Angry Birds icon">
+</p>
+
+<h1 align="center">Angry Birds</h1>
+
+<p align="center">
+ <b>Fling the birds at the pigs' castles, on the NumWorks calculator.</b><br>
+ The 429 levels of the Chrome edition, its seven birds and the Mighty Eagle.
+</p>
+
+<p align="center">
+ <a href="https://github.com/Mason363/NumPlay/releases/latest/download/AngryBirds.nwa"><b>Download AngryBirds.nwa</b></a>
+ &nbsp;·&nbsp; <a href="#controls">Controls</a>
+</p>
+
+<p align="center">
+ <img src="../../docs/media/angrybirds.gif" width="640" alt="Angry Birds: the first level, aimed, fired and knocked down with one bird">
+</p>
+
+## Highlights
+
+* **Every level of the Chrome edition:** 429 of them in twelve episodes, Poached Eggs, Mighty Hoax, Danger Above, The Big Setup, Ham 'Em High, the Chrome Dimension, Trick or Treat, Season's Greedings, Easter Eggs, Moon Festival, Cherry Blossom and Summer Pignic.
+* **The real physics:** Box2D, the engine the original runs on, set up as the original sets it up: the same gravity, time step, materials, damage, explosions and joints. Towers lean, topple and break the way they do there.
+* **The seven birds:** the red bird and his big brother, the yellow bird that speeds up, the blue bird that splits in three, the black bird that explodes, the white bird that drops an egg bomb, and the green bird that turns back like a boomerang.
+* **The Mighty Eagle:** throw the sardine can and the eagle sweeps through the level. Destroy it all for the level's feather. The eagle comes back after an hour of play, and stays ready on the level you used it on.
+* **Secrets:** the golden eggs hidden in the classic levels open the Chrome Dimension, and the eggs hidden in Easter Eggs open its special levels.
+* **The game's look:** its own birds, pigs, blocks, slingshot, backgrounds, episode pictures and story comics.
+* **Saved as you go:** stars, best scores, feathers and the levels you opened. Home saves and quits. Your progress is also copied into `angrybirds_saves.py`, so installing the app again doesn't erase it.
+
+<table>
+ <tr>
+ <td align="center"><img src="docs/shot.png" width="390" alt="The blue birds hitting an ice tower"><br><sub>The blue bird, split in three, through the ice</sub></td>
+ <td align="center"><img src="docs/eagle.png" width="390" alt="The Mighty Eagle swooping on a castle"><br><sub>The Mighty Eagle on its way</sub></td>
+ </tr>
+ <tr>
+ <td align="center"><img src="docs/collapse.png" width="390" alt="A tower falling"><br><sub>The first level's tower coming down</sub></td>
+ <td align="center"><img src="docs/cleared.png" width="390" alt="Level cleared"><br><sub>Level cleared, with the birds left over</sub></td>
+ </tr>
+ <tr>
+ <td align="center"><img src="docs/levels.png" width="390" alt="The levels of Poached Eggs"><br><sub>The levels and their stars</sub></td>
+ <td align="center"><img src="docs/episodes.png" width="390" alt="The episodes"><br><sub>The episodes</sub></td>
+ </tr>
+ <tr>
+ <td align="center"><img src="docs/story.png" width="390" alt="The story comic before Poached Eggs"><br><sub>The pigs take the eggs</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
+
+Knock out every pig in the level with the birds you're given. Aim with the arrows: the corner shows how high you aim and how far back the slingshot is pulled. Press **OK** to fire, and **OK** again while the bird flies to use its power. The dotted line is your last shot. Every bird you don't need is worth 10,000 points when the level is cleared, and enough points earn the second and third stars.
+
+Clearing a level opens the next one. Mighty Hoax opens once Poached Eggs is done, and Danger Above after Mighty Hoax; the other episodes are open from the start.
+
+## Controls
+
+| Key | What it does |
| --- | --- |
-| Arrows in menus | Select episode, page or stage |
-| Up / Down in play | Adjust launch angle; hold to repeat |
-| Left / Right in play | Adjust launch power |
-| OK / EXE | Launch; press again in flight to activate a bird's power |
-| 1 in play | Aim a sardine for Mighty Eagle, once per attempt |
-| 2 in play | Toggle overview and following camera |
-| Back | Pause, resume or return |
-| Home / Power | Save progression and exit |
-| 1 on title | Restart the last selected stage |
-| 0 on title | Open controls |
-
-Each episode starts with its first stage unlocked. Clearing a stage opens the next. The 2,336-byte `angrybirds.sav` record stores best scores, stars, Eagle destruction percentages, feathers and unlocked stages. A 100% Eagle attempt earns a feather without overwriting the normal score or stars. An interrupted attempt restarts; moving bodies are not saved. Full storage offers retry, return to menu, or explicit exit without saving.
-
-## Content and fidelity
-
-The level placements, bird order, object geometry, materials and star thresholds come from the reference data. Original sprites, classic logo, episode artwork, backgrounds and 19 story images are converted for the 320×240 screen. UI text uses NumPlay's native-size Nunito glyphs with measured wrapping and contrasting colors; the Chrome/Beta title badges are excluded.
-
-The physics engine is a native bounded rigid-body solver, rather than the original Java/GWT Box2D runtime. Collision responses, destruction outcomes, joints, bird abilities and Eagle percentages can therefore differ. Controls and menu layouts are adapted to the keypad. Backgrounds are composited, sprites use reduced palettes, stories are static images, and there is no audio, web editor, online service or external web comic. This adaptation does not promise identical physics or verified solutions for every stage.
-
-## Storage and RAM
-
-Current release: **1,391,696 bytes** as `.nwa`, **1,377,744 bytes** installed, **87,068 bytes** static RAM. Maximum stack observed in ARM tests: **2,504 bytes**. See [validation](VALIDATION.md) for the exact build and limits of these measurements.
-
-Levels use independent lossless DEFLATE streams and keep float32 placements. Immutable geometry and 4-bit sprite palettes stay in flash. Rendering uses an eight-line strip rather than a framebuffer; cached fixed-point sprite transforms avoid repeated floating-point work per pixel. Loading scratch shares memory with the contact buffer. Simulation has fixed body/contact/joint limits, sleeping objects and a sweep broad phase, with no gameplay heap allocation. Fast projectiles use two substeps; crowded moving scenes use fewer solver iterations.
-
-Level preparation is split across keypad polls with a visible loading screen. Back cancels preparation and Home saves and exits. The twelve original preparation steps remain in the same order, preserving the resulting starting state. Catch-up simulation work and off-screen line rendering are bounded so expensive frames cannot build an unlimited input backlog.
+| Up and Down | Aim the slingshot (hold to aim faster) |
+| Left and Right | Pull it back less or more |
+| OK | Fire the bird; press again while it flies to use its power |
+| 1 | Call the Mighty Eagle: the sardine can goes in the slingshot |
+| shift (hold) | Look at the pigs |
+| Back | Pause (Resume, Restart, Levels, How to play, Quit game) |
+| Home | Save and quit |
-## Build and validate
+## Good to know
-Requirements: ARM GNU toolchain, Node.js with `nwlink`, Python 3 and Pillow. The checked-in inputs build offline. The recorded build used ARM GCC 15.2.1, nwlink 1.0.0 and Pillow 11.3.0.
+* **On its own:** Angry Birds 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. Your progress in each one is kept.
+* **The Chrome edition's content:** its 429 levels, not the levels of the phone versions. The few levels left unfinished in its files, which the original never shows, aren't here either. There is no music or sound (the calculator has no speaker).
+* **The Mighty Eagle's hour:** the calculator has no clock, so the hour counts while the game is open.
+* **On Upsilon:** Upsilon gives apps less memory, and seven of the most crowded levels need more than it has. They say so instead of being played.
-```sh
-python build.py --arm-bin /path/to/arm/bin --nwlink /path/to/nwlink
-```
+## Credits
-Run from this directory, or use the repository-relative path to `build.py`. The script exports the release to `build/apps/AngryBirds.nwa` and writes `output/build-report.json`. It checks installation against the smallest supported RAM budget and compares release/debug installed bytes.
+Inspired by Angry Birds by [Rovio Entertainment](https://www.rovio.com), not affiliated with Rovio. Go play Rovio's own Angry Birds games.
-With the tools on `PATH`, Make also supports:
+* The pictures (the birds, pigs and blocks, the slingshot, the backgrounds, the episode pictures, the story comics and the logo) and the levels come from the Chrome edition's web build, read by [tools/art.py](tools/art.py) and [tools/pack.py](tools/pack.py) into `src/data.bin`. Its rules and numbers follow the game's own code.
+* The physics is [Box2D](https://box2d.org) 2.2.1 by Erin Catto (zlib license, see [src/box2d/License.txt](src/box2d/License.txt)), altered to fit the calculator's memory. The text uses NumPlay's **Nunito** font (SIL Open Font License).
+* The calculator adaptation is by **[Bobydeluxe](https://github.com/Bobydeluxe)**, who brought it to NumPlay.
-```sh
-make check test test-assets
-cd output && ./test solve && cd ..
-python tests/test_arm.py --nwlink /path/to/nwlink
-python tests/test_arm.py --nwlink /path/to/nwlink --selection-only
-```
+Made by Mason Chen as part of NumPlay.
-Host tests need a C11 compiler. ARM tests additionally need Unicorn and pyelftools and use the repository's `tools/emu.py`. `test solve` writes the launch-angle fixture required by the complete ARM playthrough test. Generated reports, test storage and binaries remain in ignored `output/`.
+## License
-Original game, characters and artwork: **Rovio**. Native adaptation: **Bobydeluxe**. See [asset provenance](ASSETS.md).
+The game's code is licensed under the GNU General Public License v3.0: see the `LICENSE` file at the root of the repository. Box2D keeps its zlib license. The game's pictures and levels keep their own terms (see Credits). Angry Birds is a trademark of Rovio Entertainment.
diff --git a/games/angrybirds/docs/cleared.png b/games/angrybirds/docs/cleared.png
new file mode 100644
index 00000000..a32889c6
Binary files /dev/null and b/games/angrybirds/docs/cleared.png differ
diff --git a/games/angrybirds/docs/collapse.png b/games/angrybirds/docs/collapse.png
new file mode 100644
index 00000000..6e2498c3
Binary files /dev/null and b/games/angrybirds/docs/collapse.png differ
diff --git a/games/angrybirds/docs/eagle.png b/games/angrybirds/docs/eagle.png
new file mode 100644
index 00000000..1ba6a804
Binary files /dev/null and b/games/angrybirds/docs/eagle.png differ
diff --git a/games/angrybirds/docs/episodes.png b/games/angrybirds/docs/episodes.png
index 446a074a..5b97df83 100644
Binary files a/games/angrybirds/docs/episodes.png and b/games/angrybirds/docs/episodes.png differ
diff --git a/games/angrybirds/docs/gameplay.png b/games/angrybirds/docs/gameplay.png
deleted file mode 100644
index eff68d1a..00000000
Binary files a/games/angrybirds/docs/gameplay.png and /dev/null differ
diff --git a/games/angrybirds/docs/help.png b/games/angrybirds/docs/help.png
deleted file mode 100644
index 2927d595..00000000
Binary files a/games/angrybirds/docs/help.png and /dev/null differ
diff --git a/games/angrybirds/docs/large-stage.png b/games/angrybirds/docs/large-stage.png
deleted file mode 100644
index f8610286..00000000
Binary files a/games/angrybirds/docs/large-stage.png and /dev/null differ
diff --git a/games/angrybirds/docs/levels.png b/games/angrybirds/docs/levels.png
new file mode 100644
index 00000000..a3c1fc89
Binary files /dev/null and b/games/angrybirds/docs/levels.png differ
diff --git a/games/angrybirds/docs/shot.png b/games/angrybirds/docs/shot.png
new file mode 100644
index 00000000..0cbae6c5
Binary files /dev/null and b/games/angrybirds/docs/shot.png differ
diff --git a/games/angrybirds/docs/stage-clear.png b/games/angrybirds/docs/stage-clear.png
deleted file mode 100644
index ec46b634..00000000
Binary files a/games/angrybirds/docs/stage-clear.png and /dev/null differ
diff --git a/games/angrybirds/docs/story.png b/games/angrybirds/docs/story.png
new file mode 100644
index 00000000..4729e5a3
Binary files /dev/null and b/games/angrybirds/docs/story.png differ
diff --git a/games/angrybirds/docs/title.png b/games/angrybirds/docs/title.png
index 22050247..de3c5b1d 100644
Binary files a/games/angrybirds/docs/title.png and b/games/angrybirds/docs/title.png differ
diff --git a/games/games.json b/games/games.json
index ab7afb1d..3fe3f8a3 100644
--- a/games/games.json
+++ b/games/games.json
@@ -677,7 +677,7 @@
},
{
"id": "championisland",
- "rank": 20,
+ "rank": 21,
"title": "Champion Island",
"tagline": "Seven sports, one island",
"credit": "Based on Google's Champion Island Games",
@@ -699,7 +699,7 @@
},
{
"id": "finalearth2",
- "rank": 21,
+ "rank": 22,
"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": 16,
+ "rank": 17,
"title": "NumPowder",
"tagline": "Sand, water, fire and more",
"credit": "Inspired by The Powder Toy",
@@ -753,7 +753,7 @@
},
{
"id": "subway",
- "rank": 5,
+ "rank": 6,
"title": "Subway Surfers",
"tagline": "Dodge the trains",
"credit": "Based on Subway Surfers by SYBO and Kiloo",
@@ -775,7 +775,7 @@
},
{
"id": "fnaf",
- "rank": 14,
+ "rank": 15,
"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": 12,
+ "rank": 13,
"title": "Doom",
"tagline": "Rip and tear",
"credit": "Based on Doom by id Software",
@@ -836,7 +836,7 @@
},
{
"id": "isaac",
- "rank": 18,
+ "rank": 19,
"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": 19,
+ "rank": 20,
"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": 8,
+ "rank": 9,
"title": "Plants vs. Zombies",
"tagline": "Plant your lawn",
"credit": "Based on the game by PopCap Games",
@@ -902,7 +902,7 @@
},
{
"id": "sonic",
- "rank": 17,
+ "rank": 18,
"title": "Sonic the Hedgehog",
"tagline": "Run through six zones",
"credit": "Based on the game by Sonic Team",
@@ -923,7 +923,7 @@
},
{
"id": "cookieclicker",
- "rank": 23,
+ "rank": 24,
"title": "Cookie Clicker",
"tagline": "Bake billions of cookies",
"credit": "Based on Cookie Clicker by Orteil",
@@ -944,7 +944,7 @@
},
{
"id": "leveldevil",
- "rank": 22,
+ "rank": 23,
"title": "Level Devil",
"tagline": "Run to the door",
"credit": "Based on Level Devil by Unept",
@@ -965,7 +965,7 @@
},
{
"id": "jetpackjoyride",
- "rank": 6,
+ "rank": 7,
"title": "Jetpack Joyride",
"tagline": "Fly Barry through the lab",
"credit": "Based on Jetpack Joyride by Halfbrick",
@@ -986,7 +986,7 @@
},
{
"id": "stickmanhook",
- "rank": 10,
+ "rank": 11,
"title": "Stickman Hook",
"tagline": "Swing from hook to hook",
"credit": "Based on Stickman Hook by Madbox",
@@ -1007,7 +1007,7 @@
},
{
"id": "donkeykong",
- "rank": 15,
+ "rank": 16,
"title": "Donkey Kong",
"tagline": "Climb the girders and save Pauline",
"credit": "Based on Donkey Kong by Nintendo",
@@ -1028,7 +1028,7 @@
},
{
"id": "dune",
- "rank": 11,
+ "rank": 12,
"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": 7,
+ "rank": 8,
"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": 9,
+ "rank": 10,
"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": 13,
+ "rank": 14,
"title": "UNO",
"tagline": "Match the cards, shout UNO",
"credit": "Based on UNO by Mattel",
@@ -1130,5 +1130,27 @@
"repo": "https://github.com/Mason363/NumPlay/tree/main/games/fnf",
"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
}
]
diff --git a/tests/test_games.py b/tests/test_games.py
index c3ddf8e3..01ea487a 100644
--- a/tests/test_games.py
+++ b/tests/test_games.py
@@ -254,6 +254,11 @@ GAMES = {
# 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),
+ # 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),
# 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,
@@ -320,7 +325,8 @@ COPIES = {"championisland": "champion_saves.py", "numblocks": "numblocks_saves.p
"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"}
+ "fnf": "fnf_saves.py",
+ "angrybirds": "angrybirds_saves.py"}
def dk_frames(v):
@@ -473,6 +479,12 @@ CHECKS = {
# 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),
+ # "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),
"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 250037a6..ddf17e56 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 own
ALONE = {
- "angrybirds": ("Angry Birds", "experimental native adaptation with 429 campaign stages and 14 bonus maps; known bugs remain; 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"),
@@ -51,6 +50,7 @@ ALONE = {
"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"),
+ "angrybirds": ("Angry Birds", "the 429 levels of the Chrome edition, its seven birds and the Mighty Eagle"),
}
VARIANTS = [
("NumPlay-Invisible.nwa", "The same app, hidden: a blank icon with no name"),