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
README: Core Ball, the 29th game in NumPlay
Mason3639b369b7abbeb
diff --git a/README.md b/README.mdindex 0f55a7c1..e69a19ca 100644--- a/README.md+++ b/README.md@@ -5,7 +5,7 @@<h1 align="center">NumPlay</h1><p align="center">- <b>28 free games for your NumWorks calculator, in one app.</b><br>+ <b>29 free games for your NumWorks calculator, in one app.</b><br>Plus 18 big games that install on their own. For the N0110, N0115 and N0120, in English, French and Chinese.</p>@@ -58,19 +58,20 @@ All of these come in one app, **NumPlay.nwa**.</tr><tr><td align="center"><a href="games/towerblock/README.md"><img src="docs/media/thumb_towerblock.png" width="120" alt="Tower Blocks"><br><b>Tower Blocks</b></a></td>+ <td align="center"><a href="games/coreball/README.md"><img src="docs/media/thumb_coreball.png" width="120" alt="Core Ball"><br><b>Core Ball</b></a></td><td align="center"><a href="games/pacman/README.md"><img src="docs/media/thumb_pacman.png" width="120" alt="Pac-Man"><br><b>Pac-Man</b></a></td><td align="center"><a href="games/snake/README.md"><img src="docs/media/thumb_snake.png" width="120" alt="Snake"><br><b>Snake</b></a></td><td align="center"><a href="games/connectfour/README.md"><img src="docs/media/thumb_connectfour.png" width="120" alt="Connect Four"><br><b>Connect Four</b></a></td>- <td align="center"><a href="games/solitaire/README.md"><img src="docs/media/thumb_solitaire.png" width="120" alt="Solitaire"><br><b>Solitaire</b></a></td></tr><tr>+ <td align="center"><a href="games/solitaire/README.md"><img src="docs/media/thumb_solitaire.png" width="120" alt="Solitaire"><br><b>Solitaire</b></a></td><td align="center"><a href="games/g2048/README.md"><img src="docs/media/thumb_g2048.png" width="120" alt="2048"><br><b>2048</b></a></td><td align="center"><a href="games/minesweeper/README.md"><img src="docs/media/thumb_minesweeper.png" width="120" alt="Minesweeper"><br><b>Minesweeper</b></a></td><td align="center"><a href="games/breakout/README.md"><img src="docs/media/thumb_breakout.png" width="120" alt="Block Breaker"><br><b>Block Breaker</b></a></td><td align="center"><a href="games/twoplayer/README.md"><img src="docs/media/thumb_twoplayer.png" width="120" alt="2 Players"><br><b>2 Players</b></a></td>- <td align="center"><a href="games/invaders/README.md"><img src="docs/media/thumb_invaders.png" width="120" alt="Space Invaders"><br><b>Space Invaders</b></a></td></tr><tr>+ <td align="center"><a href="games/invaders/README.md"><img src="docs/media/thumb_invaders.png" width="120" alt="Space Invaders"><br><b>Space Invaders</b></a></td><td align="center"><a href="games/sudoku/README.md"><img src="docs/media/thumb_sudoku.png" width="120" alt="Sudoku"><br><b>Sudoku</b></a></td><td align="center"><a href="games/uttt/README.md"><img src="docs/media/thumb_uttt.png" width="120" alt="Ultimate Tic-Tac-Toe"><br><b>Ultimate Tic-Tac-Toe</b></a></td><td align="center"><a href="games/sokoban/README.md"><img src="docs/media/thumb_sokoban.png" width="120" alt="Sokoban"><br><b>Sokoban</b></a></td>@@ -143,7 +144,7 @@ You need your calculator, its USB cable, and a computer with **Google Chrome** o| --- | --- | --- || N0120 | Epsilon 23.2 or newer (the calculator's own software) | Everything || N0110, N0115 | Epsilon 23.2 or newer | Everything. These models are about 2.5 times slower, so the big games show fewer frames per second, but they keep their speed. |-| N0110, N0115 | Upsilon | NumPlay-Upsilon.nwa: 23 games (see Other versions) |+| N0110, N0115 | Upsilon | NumPlay-Upsilon.nwa: 24 games (see Other versions) || Any | Custom software built from Epsilon 25.2's source | Everything. These builds can give apps less memory (133 KB): on one that gives even less, a game that needs more says how much on its card. |To see your calculator's model and software, open **Settings**, then **About**. To update the software, go to [my.numworks.com](https://my.numworks.com) with the calculator plugged in.@@ -159,7 +160,7 @@ To see your calculator's model and software, open **Settings**, then **About**.| [NumPlay-Matrices.nwa](https://github.com/Mason363/NumPlay/releases/latest/download/NumPlay-Matrices.nwa) | The same app, in disguise: it looks like a math app called **Matrices**. || [NumPlay-French.nwa](https://github.com/Mason363/NumPlay/releases/latest/download/NumPlay-French.nwa) | NumPlay en français : tous les jeux, en français. || [NumPlay-Chinese.nwa](https://github.com/Mason363/NumPlay/releases/latest/download/NumPlay-Chinese.nwa) | NumPlay 中文版:所有游戏,简体中文。 |-| [NumPlay-Upsilon.nwa](https://github.com/Mason363/NumPlay/releases/latest/download/NumPlay-Upsilon.nwa) | For calculators running **Upsilon**: the 23 games that fit in the memory it gives apps. |+| [NumPlay-Upsilon.nwa](https://github.com/Mason363/NumPlay/releases/latest/download/NumPlay-Upsilon.nwa) | For calculators running **Upsilon**: the 24 games that fit in the memory it gives apps. |<img src="docs/media/home_invisible.png" width="240" alt="The home screen with NumPlay-Invisible: the spot after Settings looks empty"> <img src="docs/media/home_matrices.png" width="240" alt="The home screen with NumPlay-Matrices among the calculator's own apps">@@ -244,6 +245,7 @@ Read **[Make your own NumWorks game](docs/make-a-game.md)** to go from there, an- [x] Suika Game- [x] Stickman Hook- [x] Donkey Kong+- [x] Core Ball- [ ] Full Minecraft 1.18.2 as a standalone app- [ ] A customizer website: pick the games you want in your launcher, with Enlarged Extra Apps support to fit several big games, or big and small ones together- [ ] [Retro-Go](https://github.com/ducalex/retro-go) for Game Boy, NES and more: upload your own ROMs on the website and get a .nwa app that plays them@@ -274,6 +276,7 @@ NumPlay is a fan project, made out of love for these games and for the NumWorks- **Tower Blocks** by [Steve Gardner](https://codepen.io/ste-vg/pen/ppLQNW) (MIT License) is ported to C for NumPlay from its source: its sizes, speeds, colours, light and camera are the original's. **[Bobydeluxe](https://github.com/Bobydeluxe)** brought it to NumPlay.- **Doodle Jump** by Lima Sky inspired NumPlay's Doodle Jump, written in C for NumPlay with no code or art from it, drawn in its style on its own page size. **[Bobydeluxe](https://github.com/Bobydeluxe)** brought it to NumPlay. Not affiliated with Lima Sky.- **Suika Game** by Aladdin X inspired NumPlay's Suika Game, written in C for NumPlay with no code or art from it. Its fruit sizes, colours, speeds and timings were measured on the Switch version, with the sizes checked against [kairess/suika-game](https://github.com/kairess/suika-game). **[Bobydeluxe](https://github.com/Bobydeluxe)** brought it to NumPlay. Not affiliated with Aladdin X.+- **[Core Ball](https://github.com/randomyang/core-ball)** by Random (Yang Hao, MIT License) is ported to C for NumPlay from its own build: its 60 levels, turns, speeds and timing are the original's. **[Bobydeluxe](https://github.com/Bobydeluxe)** brought it to NumPlay.- Snake, Solitaire and Block Breaker look and play like **Google's games** in Search. They are drawn from scratch; nothing is taken from Google.- **Chrome's dinosaur game** by Google inspired Chrome Dino, which ports its rules, numbers and pictures from [Chromium's source](https://chromium.googlesource.com/chromium/src/+/main/components/neterror/resources/dino_game/) (BSD license). **[LilyTheCatgirl](https://github.com/LilyTheCuteCatgirl)** brought it to NumPlay, and also made the live emulator (`tools/emulator.py`) and the builder (`tools/build.py`). Not affiliated with Google.- **[gd3ds](https://github.com/AleFunky/gd3ds)** by AleFunky and friends, whose research into Geometry Dash made NumDash possible. Clubstep, Deadlocked and Dash also rely on [gdsolver](https://github.com/gdsolver/gdsolver)'s measurements of Geometry Dash 2.2, level data from [gmdkit](https://github.com/UHDanke/gmdkit) by HDanke and checks against [GDRWeb](https://github.com/iliasHDZ/GDRWeb) by IliasHDZ.@@ -391,11 +394,14 @@ NumPlay is licensed under the [GNU General Public License v3.0](LICENSE). Copyri<tr><td align="center"><img src="docs/media/gallery/flappydunk.gif" alt="Flappy Dunk: swishes in a row, the ball on fire"><br><a href="games/flappydunk/README.md"><b>Flappy Dunk</b></a></td><td align="center"><img src="docs/media/gallery/towerblock.gif" alt="Tower Blocks: blocks dropped on the tower, the overhangs falling away"><br><a href="games/towerblock/README.md"><b>Tower Blocks</b></a></td>- <td align="center"><img src="docs/media/gallery/doodlejump.gif" alt="Doodle Jump: the doodler climbs past blue platforms and a monster"><br><a href="games/doodlejump/README.md"><b>Doodle Jump</b></a></td>+ <td align="center"><img src="docs/media/gallery/coreball.gif" alt="Core Ball: every ball shot onto the spinning core, level 3 and level 4 cleared"><br><a href="games/coreball/README.md"><b>Core Ball</b></a></td></tr><tr>+ <td align="center"><img src="docs/media/gallery/doodlejump.gif" alt="Doodle Jump: the doodler climbs past blue platforms and a monster"><br><a href="games/doodlejump/README.md"><b>Doodle Jump</b></a></td><td align="center"><img src="docs/media/jetpackjoyride.gif" alt="Jetpack Joyride: lasers, a missile, then the Lil' Stomper"><br><a href="games/jetpackjoyride/README.md"><b>Jetpack Joyride</b></a></td><td align="center"><img src="docs/media/stickmanhook.gif" alt="Stickman Hook: two levels swung from hook to hook, each over the finish line"><br><a href="games/stickmanhook/README.md"><b>Stickman Hook</b></a></td>+ </tr>+ <tr><td align="center"><img src="docs/media/donkeykong.gif" alt="Donkey Kong: Mario climbs the 25m girders past rolling barrels to Pauline"><br><a href="games/donkeykong/README.md"><b>Donkey Kong</b></a></td></tr></table>diff --git a/_config.yml b/_config.ymlindex e6679dfc..49e0feb6 100644--- a/_config.yml+++ b/_config.yml@@ -1,5 +1,5 @@title: NumPlay-description: "28 games for the NumWorks calculator in one app: NumDash, Crossy Road, NumBlocks, NumDrive, Balatro, Buckshot Roulette, Block Blast, Suika Game, Portal Returns, Tetris, Chrome Dino, Chess, Space Invaders, Sudoku and more. And Doom, Sonic, Plants vs. Zombies, Cookie Clicker and more on their own. Free and open source, with a kit to make your own NumWorks games in C."+description: "29 games for the NumWorks calculator in one app: NumDash, Crossy Road, NumBlocks, NumDrive, Balatro, Buckshot Roulette, Block Blast, Suika Game, Portal Returns, Tetris, Chrome Dino, Chess, Space Invaders, Sudoku and more. And Doom, Sonic, Plants vs. Zombies, Cookie Clicker and more on their own. Free and open source, with a kit to make your own NumWorks games in C."url: https://mason363.github.iobaseurl: /NumPlaytheme: jekyll-theme-caymandiff --git a/docs/media/gallery/coreball.gif b/docs/media/gallery/coreball.gifnew file mode 100644index 00000000..48c5e6a9Binary files /dev/null and b/docs/media/gallery/coreball.gif differdiff --git a/docs/media/thumb_coreball.png b/docs/media/thumb_coreball.pngnew file mode 100644index 00000000..98849ffaBinary files /dev/null and b/docs/media/thumb_coreball.png differdiff --git a/docs/play.md b/docs/play.mdindex cfecb6a5..1673ab5b 100644--- a/docs/play.md+++ b/docs/play.md@@ -639,6 +639,19 @@ Each block slides in from one side, along one edge of the tower and then the oth<br clear="right">+## Core Ball++<img src="../games/coreball/docs/shot.png" width="320" align="right" alt="Core Ball">++| Key | What it does |+| --- | --- |+| **OK** (or **EXE**) | Shoot a ball |+| **Back** | Menu (with Restart, Levels, How to play and Quit) |++Shoot every ball onto the spinning core without touching the balls already on it. The core turns faster, slower and back the other way as the levels go on, through 60 levels. The screen turns green when the level is cleared and red when two balls touch. Your level is saved.++<br clear="right">+## Pac-Man<img src="../games/pacman/docs/shot.png" width="320" align="right" alt="Pac-Man">diff --git a/games/coreball/tests/play.c b/games/coreball/tests/play.cindex e49a5a6f..9b4d634d 100644--- a/games/coreball/tests/play.c+++ b/games/coreball/tests/play.c@@ -5,7 +5,8 @@* clear with a ball still flying, the miss, the screens' timings; a bot clears all 60* levels; 300 random sessions through the menus and play (quitting and opening again)* never break a rule; saves come back, damaged ones reset- * play shot DIR pictures (DIR/NAME.ppm): start, play, clear, miss, levels, menu, help, end */+ * play shot DIR pictures (DIR/NAME.ppm): start, play, clear, miss, levels, menu, help, end+ * play film DIR N N pictures of the bot playing on from level 3, one every 2 frames (DIR/f_NNNN.ppm) */#define NP_MODULE 1 /* (its drawing pushed to fb, its saves kept in disk, below) */#define main cb_main#include "../src/main.c"@@ -317,7 +318,26 @@ static void shots(const char *dir) {picture(dir, "end");}+static void film(const char *dir, int n) {+ char name[32];+ sv = (typeof(sv)){0}, sv.level = sv.best = 3, sv.flags = SEEN;+ seed = 5;+ start(3);+ for (int f = 0, k = 0, wait = 0; k < n; f++) {+ if (g.state == ST_RUN && g.landed == g.popped && rnd() % 6 == 0 && safe_now()) g.pending++;+ if (g.state == ST_START && ++wait == 30) wait = 0, start(sv.level);+ tick();+ if (f % 2) continue;+ snprintf(name, sizeof name, "f_%04d", k++);+ picture(dir, name);+ }+}+int main(int argc, char **argv) {+ if (argc >= 4 && !strcmp(argv[1], "film")) {+ film(argv[2], atoi(argv[3]));+ return 0;+ }if (argc >= 3 && !strcmp(argv[1], "shot")) {shots(argv[2]);return 0;