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
NumBlocks, NumDash, NumDrive: built small, with what they draw every frame built fast
Mason36314d5e4ee83c0
diff --git a/games/numblocks/src/gui.c b/games/numblocks/src/gui.cindex e50c41c2..ce6b6a17 100644--- a/games/numblocks/src/gui.c+++ b/games/numblocks/src/gui.c@@ -8,6 +8,7 @@* In a container a cursor jumps between slots with the arrows: OK is the* left click, EXE the right click, shift + OK the shift click, a digit swaps* with that hotbar slot; var or Back closes. */+#pragma GCC optimize ("O2") /* (drawn every frame: fast, while the rest of the game is built small) */#include <math.h>#include <stdlib.h>#include "nb.h"diff --git a/games/numblocks/src/render.c b/games/numblocks/src/render.cindex c913aee4..9357fd9a 100644--- a/games/numblocks/src/render.c+++ b/games/numblocks/src/render.c@@ -9,6 +9,7 @@* draws them; glass, plants and water let the ray go on through their* see-through texels. The sky has its gradient, the sun or the moon, and* Minecraft's flat clouds at y = 128. */+#pragma GCC optimize ("O2") /* (drawn every frame: fast, while the rest of the game is built small) */#include <math.h>#include "nb.h"diff --git a/games/numdash/src/gfx.c b/games/numdash/src/gfx.cindex ed070a7a..636c8703 100644--- a/games/numdash/src/gfx.c+++ b/games/numdash/src/gfx.c@@ -1,3 +1,4 @@+#pragma GCC optimize ("O2") /* (drawn every frame: fast, while the rest of the game is built small) */#include "gfx.h"#include <math.h>#include <string.h>diff --git a/games/numdash/src/scene.c b/games/numdash/src/scene.cindex 511af2a6..09180408 100644--- a/games/numdash/src/scene.c+++ b/games/numdash/src/scene.c@@ -1,3 +1,4 @@+#pragma GCC optimize ("O2") /* (drawn every frame: fast, while the rest of the game is built small) */#include "scene.h"#include "fx.h"#include <math.h>diff --git a/games/numdrive/src/gfx.c b/games/numdrive/src/gfx.cindex 167fa3dc..48ef2acb 100644--- a/games/numdrive/src/gfx.c+++ b/games/numdrive/src/gfx.c@@ -1,4 +1,5 @@/* Minimal anti-aliased 2D drawing into screen strips (UI, menus, HUD). */+#pragma GCC optimize ("O2") /* (drawn every frame: fast, while the rest of the game is built small) */#include <math.h>#include "gfx.h"#include "platform.h"diff --git a/games/numdrive/src/physics.c b/games/numdrive/src/physics.cindex b4075ffb..9a1ac954 100644--- a/games/numdrive/src/physics.c+++ b/games/numdrive/src/physics.c@@ -1,5 +1,6 @@/* 2D rigid body physics (motion in the xy plane, rotation about z) for Fancade objects.* Collision shapes keep their z extents so only overlapping depth ranges interact. */+#pragma GCC optimize ("O2") /* (drawn every frame: fast, while the rest of the game is built small) */#include <string.h>#ifdef HOST#include <stdlib.h>diff --git a/games/numdrive/src/render.c b/games/numdrive/src/render.cindex 9c5f2682..e1bb40d0 100644--- a/games/numdrive/src/render.c+++ b/games/numdrive/src/render.c@@ -1,4 +1,5 @@/* Strip-based z-buffered renderer for Fancade voxel objects (orthographic camera). */+#pragma GCC optimize ("O2") /* (drawn every frame: fast, while the rest of the game is built small) */#include <string.h>#include <math.h>#ifdef HOSTdiff --git a/games/numdrive/src/ui.c b/games/numdrive/src/ui.cindex 796eb324..de9e746c 100644--- a/games/numdrive/src/ui.c+++ b/games/numdrive/src/ui.c@@ -1,4 +1,5 @@/* In-game HUD, photo cards (pause / win / lose) and the level list, drawn like Fancade's UI. */+#pragma GCC optimize ("O2") /* (drawn every frame: fast, while the rest of the game is built small) */#include <math.h>#include <string.h>#include "ui.h"diff --git a/games/numdrive/src/vm.c b/games/numdrive/src/vm.cindex 0dd19c98..2f1df1c9 100644--- a/games/numdrive/src/vm.c+++ b/games/numdrive/src/vm.c@@ -1,4 +1,5 @@/* Fancade script interpreter. */+#pragma GCC optimize ("O2") /* (drawn every frame: fast, while the rest of the game is built small) */#include <string.h>#ifdef HOST#include <stdio.h>