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
Donkey Kong: on the TI-84 Plus CE, what changed is compared with the screen
Mason363bab879926480
diff --git a/games/donkeykong/src/draw.c b/games/donkeykong/src/draw.cindex 19de51e1..37a1eb29 100644--- a/games/donkeykong/src/draw.c+++ b/games/donkeykong/src/draw.c@@ -457,6 +457,18 @@ void dk_draw(const dk_state *s, const dk_view *v) {gfx_y1 = gfx_y0 + STRIP_H;scene(0);int first = -1, last = -1;+#ifdef __TICE__ /* (the TI-84 Plus CE: what changed, against the screen itself, no 32-bit hash a pixel) */+ for (int seg = 0; seg < 10; seg++) {+ bool same = hashes_ok;+ for (int y = 0; y < STRIP_H && same; y++)+ same = !memcmp(gfx_buf + y * SCREEN_W + seg * 32, (const color_t *)0xD40000 + (gfx_y0 + y) * SCREEN_W + seg * 32, 64);+ if (!same) {+ if (first < 0) first = seg;+ last = seg;+ }+ }+ if (0)+#endiffor (int seg = 0; seg < 10; seg++) {uint32_t h = 2166136261u;for (int y = 0; y < STRIP_H; y++) {