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
NumPlay Studio: a big game that only fits 6 MB
Mason3635489f1afe2c2
diff --git a/customize/app.js b/customize/app.jsindex dffb12c3..e39a5b69 100644--- a/customize/app.js+++ b/customize/app.js@@ -84,6 +84,8 @@// a big game too big to go beside the launcher in this space (kit.json "alone") goes on its own there,// as its own app: as if you installed just that gameconst alone = (id) => !!game(id).alone && own([id], []) + flash(id) > capacity();+ // (one too big for this space even on its own, as FNAF World is but for Nwagra's 6 MB)+ const bigger = (id) => alone(id) && game(id).alone.size > capacity();const solo = () => ordered().find(alone) || null;let before = null; // your games while one of those is picked, back when it's taken outfunction items() {@@ -223,7 +225,7 @@const s0 = solo(), picks = ordered();for (const [id, b] of buttons) {const g = byId[id], on = st.picked.has(id);- const fits = alone(id) || (!s0 && total(picks.concat([id])) <= cap);+ const fits = alone(id) ? !bigger(id) : !s0 && total(picks.concat([id])) <= cap;b.classList.toggle('on', on);b.classList.toggle('off', !on && fits);b.classList.toggle('nofit', !on && !fits);@@ -333,6 +335,9 @@st.picked.delete(id);bump(b, 'pop-off');if (alone(id) && before) { st.picked = new Set(before); before = null; }+ } else if (bigger(id)) {+ if (!quiet) { bump(b, 'shake'); toast(byId[id].title + ' is ' + mb(game(id).alone.size) + ': it needs Nwagra'); }+ return;} else if (alone(id)) {if (!s) before = ordered();st.picked = new Set([id]);diff --git a/tests/test_kit.py b/tests/test_kit.pyindex 5c0bfd67..7ba7850e 100644--- a/tests/test_kit.py+++ b/tests/test_kit.py@@ -203,7 +203,9 @@ def main():mine = os.path.join(tmp, f"own-{i}.nwa")open(mine, "wb").write(data)n, msg3 = installed(mine, k["appSpace"])- if n is None or n > k["appSpace"] or n != own["size"]:+ if n is None: # (one that only fits Nwagra's 6 MB: the Studio offers it there only)+ n, msg3 = installed(mine, k["xlAppSpace"])+ if n is None or n > k["xlAppSpace"] or n != own["size"]:problems.append(f"on its own: {n} bytes, kit.json says {own['size']} ({msg3})")failed |= report(f"alone {i}", problems, f"{big} bytes, {big - k['appSpace']} over the app space: "f"in NumPlay with more space (Epsilon 26, Nwagra), else {own.get('file')} on its own" if big else "")diff --git a/tools/kit.py b/tools/kit.pyindex 9ff6b03e..efb11e4f 100644--- a/tools/kit.py+++ b/tools/kit.py@@ -260,7 +260,7 @@ def main():src, name = apps[g["id"]].split(":")b = os.path.join(tmp, "alone.bin")subprocess.run([a.nwlink, "nwa-bin", "--ram-length", str(ram), src, b], check=True, stdout=subprocess.DEVNULL)- if os.path.getsize(b) > a.app_space:+ if os.path.getsize(b) > max(a.app_space, a.xl_app_space): # (one that only fits Nwagra's 6 MB: there)sys.exit(f"kit: {name} doesn't fit the app area even on its own")gz(src, os.path.join(O, "apps", g["id"] + ".nwa.gz"))g["alone"] = {"file": name, "size": os.path.getsize(b)}@@ -303,7 +303,7 @@ def main():sys.exit(f"kit: in {sid}, NumPlay installs as {n} bytes, but its games' sizes add up to {used}")# a big game that doesn't go beside the launcher there must have its own app that fitsfor g in games:- if g["xl"] and base_alone + g["flash"] > size and (not g.get("alone") or g["alone"]["size"] > size):+ if g["xl"] and base_alone + g["flash"] > size and not g.get("alone"):sys.exit(f"kit: {g['id']} fits neither beside the launcher nor on its own in {sid}")big = [i for i in ids if i not in default]print(f"kit: {sid}, {size} bytes from {sp['start']:#x}: NumPlay with {len(ids)} games ({', '.join(big) or 'no big ones'}) "