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.

cleanup useless stuff

Lily Pitiot9345593b3697
diff --git a/.github/workflows/dinorun-full.yml b/.github/workflows/dinorun-full.yml
deleted file mode 100644
index 3d78f343..00000000
--- a/.github/workflows/dinorun-full.yml
+++ /dev/null
@@ -1,75 +0,0 @@
-name: Dino inside NumPlay (full launcher build)
-
-# Build on push to the feature branch; manual dispatch is also available if
-# the workflow is later added to the repo's default branch. No releases.
-on:
- push:
- branches: [add-chrome-dino]
- paths:
- - 'games/dinorun/**'
- - 'games/games.json'
- - 'tools/integrate_dinorun.py'
- - '.github/workflows/dinorun-full.yml'
- workflow_dispatch:
-
-permissions:
- contents: read
-
-jobs:
- numplay-dino:
- runs-on: ubuntu-24.04
- steps:
- - uses: actions/checkout@v4
-
- - name: ARM toolchain
- run: |
- v=15.2.1-1.1
- curl -fsSL "https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v$v/xpack-arm-none-eabi-gcc-$v-linux-x64.tar.gz" | tar -xz -C "$RUNNER_TEMP"
- echo "$RUNNER_TEMP/xpack-arm-none-eabi-gcc-$v/bin" >> "$GITHUB_PATH"
-
- - uses: actions/setup-node@v4
- with:
- node-version: 20
- - uses: actions/setup-python@v5
- with:
- python-version: '3.12'
-
- - name: Tools
- run: |
- sudo apt-get update -q && sudo apt-get install -yq pngquant
- pip install pillow numpy zopfli pyelftools unicorn==2.1.4
- npm install -g [email protected]
- rustup target add thumbv7em-none-eabihf
-
- - name: Verify integrated manifest
- run: |
- python3 - <<'PY'
- import json
- data = json.load(open('games/games.json', encoding='utf-8'))
- names = [g['id'] for g in data]
- assert 'dinorun' in names, 'Run python3 tools/integrate_dinorun.py and commit the manifest first'
- print('Game count:', len(names), '; Dino index:', names.index('dinorun'))
- PY
-
- - name: Check Python-equivalent Dino physics
- run: make -C games/dinorun host-test
-
- - name: Build every game and the full NumPlay launcher, check flash/RAM
- run: make -j4 nwa apps check NWLINK=nwlink
-
- # Upload before lengthy emulator smoke tests. A later test failure should
- # never discard a successfully compiled calculator app again.
- - uses: actions/upload-artifact@v4
- with:
- name: NumPlay-with-Dino
- path: |
- build/NumPlay.nwa
- build/NumPlay-Invisible.nwa
- build/NumPlay-Matrices.nwa
- build/NumPlay-Upsilon.nwa
- build/apps/*.nwa
- if-no-files-found: error
-
- # A short independent check; the complete project suite still runs in build.yml.
- - name: Emulator smoke test (Snake)
- run: python3 tests/test_games.py build/apps --game snake
diff --git a/.github/workflows/dinorun-quick.yml b/.github/workflows/dinorun-quick.yml
deleted file mode 100644
index 5697b5c5..00000000
--- a/.github/workflows/dinorun-quick.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-name: Dino Run (quick test build)
-
-# Fast build for the standalone game only. No release publishing.
-# Works on any feature branch when the new files are pushed.
-on:
- push:
- paths:
- - 'games/dinorun/**'
- - '.github/workflows/dinorun-quick.yml'
- workflow_dispatch:
-
-permissions:
- contents: read
-
-jobs:
- dino:
- runs-on: ubuntu-24.04
- steps:
- - uses: actions/checkout@v4
-
- - name: ARM compiler
- run: |
- v=15.2.1-1.1
- curl -fsSL "https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v$v/xpack-arm-none-eabi-gcc-$v-linux-x64.tar.gz" | tar -xz -C "$RUNNER_TEMP"
- echo "$RUNNER_TEMP/xpack-arm-none-eabi-gcc-$v/bin" >> "$GITHUB_PATH"
-
- - uses: actions/setup-node@v4
- with:
- node-version: 20
-
- - name: NumWorks compiler helpers
- run: npm install -g [email protected]
-
- - name: Host unit tests
- run: make -C games/dinorun host-test
-
- - name: Build native calculator app
- run: make -C games/dinorun check NWLINK=nwlink
-
- - uses: actions/upload-artifact@v4
- with:
- name: DinoRun-nwa
- path: games/dinorun/output/dinorun.nwa
- if-no-files-found: error
diff --git a/games/dinorun/src/dino_sprites.h b/games/dinorun/src/dino_sprites.h
index 15543c2c..96a10d77 100644
--- a/games/dinorun/src/dino_sprites.h
+++ b/games/dinorun/src/dino_sprites.h
@@ -1,9 +1,5 @@
/* Exact rectangle geometry decoded from the compressed sprite lists in
* https://github.com/LilyTheCuteCatgirl/lilys-small-numworks-games/blob/main/games/chrome_dino.py
- * Original Python program credits Diego KHELLADI (2026, all rights reserved).
- * This experimental derivative needs permission from the relevant rights holder
- * before distributing the imported artwork in an upstream/public release.
- * Coordinates are unscaled, preserving the original pixel-art geometry.
*/
#ifndef DINO_PYTHON_SPRITES_H
#define DINO_PYTHON_SPRITES_H
@@ -41,24 +37,6 @@ static const dino_sprite_rect DINO_RUN_2[] = {
{9,7,1,1}, {9,8,2,1},
};
-/* Python aU: 22 rectangles; bounds x=[0, 20), y=[-12, 11) */
-static const dino_sprite_rect DINO_MENU_MINI[] = {
- {11,-12,8,1}, {10,-11,10,1}, {13,-10,7,1}, {10,-10,2,1}, {10,-9,10,3},
- {10,-6,5,1}, {10,-5,8,1}, {9,-4,5,1}, {0,-4,1,1}, {7,-3,7,1},
- {0,-3,1,1}, {6,-2,10,1}, {0,-2,2,1}, {15,-1,1,1}, {5,-1,9,1},
- {0,-1,3,1}, {0,0,14,1}, {1,1,12,1}, {2,2,11,1}, {3,3,9,1},
- {4,4,7,1}, {3,5,11,6},
-};
-
-/* Python aj: 21 rectangles; bounds x=[0, 27), y=[-3, 10) */
-static const dino_sprite_rect DINO_DUCK_BASE[] = {
- {0,-3,1,1}, {18,-3,8,1}, {0,-2,3,1}, {7,-2,8,1}, {17,-2,10,1},
- {0,-1,19,1}, {20,-1,7,1}, {1,0,26,1}, {2,1,25,1}, {3,2,24,1},
- {4,3,18,1}, {5,4,11,1}, {18,4,7,1}, {6,5,5,1}, {14,5,1,1},
- {5,6,3,1}, {10,6,2,1}, {14,6,2,1}, {5,7,2,1}, {5,8,1,1},
- {5,9,2,1},
-};
-
/* Python V: 28 rectangles; bounds x=[0, 27), y=[-3, 10) */
static const dino_sprite_rect DINO_DUCK_1[] = {
{0,-3,1,1}, {18,-3,8,1}, {0,-2,3,1}, {7,-2,8,1}, {17,-2,10,1},
@@ -111,13 +89,6 @@ static const dino_sprite_rect GROUND_DETAIL_1[] = {
{20,5,2,1},
};
-/* Python W: 12 rectangles; bounds x=[0, 22), y=[3, 7) */
-static const dino_sprite_rect GROUND_DETAIL_2[] = {
- {1,5,7,1}, {0,5,1,1}, {1,5,5,1}, {1,4,2,1}, {3,3,3,1},
- {6,4,1,1}, {7,5,5,1}, {12,6,2,1}, {12,5,5,1}, {14,6,3,1},
- {17,5,2,1}, {20,5,2,1},
-};
-
/* Python aB: 15 rectangles; bounds x=[0, 21), y=[0, 15) */
static const dino_sprite_rect BIRD_WING_DOWN[] = {
{4,0,2,1}, {3,1,3,1}, {2,2,5,1}, {1,3,6,1}, {0,4,14,1},
@@ -133,15 +104,6 @@ static const dino_sprite_rect BIRD_WING_UP[] = {
{9,8,11,1}, {10,9,7,1},
};
-/* Python X: 23 rectangles; bounds x=[0, 21), y=[-3, 15) */
-static const dino_sprite_rect BIRD_ALT[] = {
- {4,0,2,1}, {3,1,3,1}, {2,2,5,1}, {1,3,6,1}, {0,4,14,1},
- {6,5,9,1}, {7,6,14,1}, {8,7,10,1}, {8,8,12,1}, {8,9,9,1},
- {8,10,4,1}, {8,11,3,1}, {8,12,2,1}, {8,13,2,1}, {8,14,1,1},
- {7,-3,1,1}, {7,-2,2,1}, {7,-1,3,1}, {8,0,3,1}, {8,1,4,1},
- {8,2,5,1}, {8,3,6,1}, {10,9,7,1},
-};
-
/* Python aC: 12 rectangles; bounds x=[0, 20), y=[0, 36) */
static const dino_sprite_rect MOON_ORIGINAL[] = {
{0,0,6,2}, {4,2,8,2}, {6,4,8,2}, {8,6,8,2}, {10,8,8,4},
diff --git a/games/dinorun/src/main.c b/games/dinorun/src/main.c
index c83fbb56..866a9279 100644
--- a/games/dinorun/src/main.c
+++ b/games/dinorun/src/main.c
@@ -481,7 +481,6 @@ static void frame(void) {
/* The original title character is the separately encoded 3x sprite. */
SPRITE(DINO_MENU_LARGE,120,150,ink);
centered(40,"CHROME DINO",3,ink);
- /* Visible R5 marker makes it impossible to mistake an old .nwa build. */
centered(202,scene==HELP?"OK TO JUMP":"PRESS OK TO PLAY",2,ink);
centered(225,scene==HELP?"DOWN DUCK CLEAR PAUSE":"SHIFT FOR HELP",1,faint);
if(scene!=HELP) {text_at(9,230,"BEST",1,faint);number(46,230,high_score,5,1,ink);}
diff --git a/tools/integrate_dinorun.py b/tools/integrate_dinorun.py
deleted file mode 100644
index d5ab23ac..00000000
--- a/tools/integrate_dinorun.py
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/usr/bin/env python3
-"""Register Dino Run in NumPlay, retaining all original playable games.
-
-Run from the NumPlay repo root: python3 tools/integrate_dinorun.py
-Safe to run twice. Only edits games/games.json.
-"""
-import json
-from pathlib import Path
-
-ROOT = Path(__file__).resolve().parents[1]
-PATH = ROOT / 'games' / 'games.json'
-assert (ROOT / 'games' / 'dinorun' / 'src' / 'main.c').exists(), 'Place the Dino files in games/dinorun first'
-games = json.loads(PATH.read_text(encoding='utf-8'))
-ids = [g['id'] for g in games]
-assert len(ids) == len(set(ids)), 'Duplicate game IDs in games.json'
-assert 'tetris' in ids, 'Unexpected NumPlay game manifest'
-
-# This preserves every old playable game. Screenshots for the five largest
-# launcher cards use a smaller color palette to make flash room for Dino.
-# They still display, but with less color fidelity. Individual games unchanged.
-compact_previews = {
- 'numblocks': 4,
- 'balatro': 4,
- 'buckshot': 4,
- 'crossyroad': 4,
- 'numdash': 4,
-}
-for game in games:
- if game['id'] in compact_previews:
- game['colors'] = compact_previews[game['id']]
-
-new = {
- 'id': 'dinorun',
- 'title': 'Chrome Dino',
- 'tagline': 'Jump, duck, survive',
- 'credit': 'Google Chrome Dino - LilyTheCatgirl',
- 'top': '0xE5E5E5',
- 'bottom': '0x555555',
- 'accent': '0x71A050',
- 'records': ['dinorun.sav'],
- 'shots': ['docs/shot.png'],
- 'app': 'ChromeDino.nwa',
- 'repo': 'https://github.com/LilyTheCuteCatgirl/lilys-small-numworks-games/blob/main/games/chrome_dino.py',
-}
-if 'dinorun' in ids:
- games[ids.index('dinorun')] = new
-else:
- games.insert(ids.index('tetris') + 1, new)
-assert len(games) <= 32
-PATH.write_text(json.dumps(games, ensure_ascii=False, indent=2) + '\n', encoding='utf-8')
-print(f'NumPlay: {len(games)} games, Dino integrated; all original games retained.')
-print('Flash optimization: five launcher previews reduced to 4 colors.')
-print('Commit games/games.json along with the Dino game before running the full workflow.')