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.

NumBlocks CE: the computer build's counters named as they are

Mason3634b4018766692
diff --git a/games/numblocks/ce/host/plat_host.c b/games/numblocks/ce/host/plat_host.c
index 5ffafa43..90308002 100644
--- a/games/numblocks/ce/host/plat_host.c
+++ b/games/numblocks/ce/host/plat_host.c
@@ -112,7 +112,7 @@ void plat_frame(void) {
rs_visited = rs_drawn = rs_rows = rs_edges = rs_polys = 0;
extern unsigned long st_cols, st_list, st_frus, st_cov, st_culled;
extern unsigned long st_rl, st_ru, st_h[8], st_c2, st_c3;
- fprintf(stderr, "clip2 %lu clip3 %lu\n", st_c2, st_c3);
+ fprintf(stderr, "cut to the screen %lu\n", st_c2);
st_c2 = st_c3 = 0;
fprintf(stderr, "rows locked %lu unlocked %lu; polys by rows %lu %lu %lu %lu %lu %lu %lu+\n", st_rl, st_ru, st_h[1], st_h[2], st_h[3], st_h[4], st_h[5], st_h[6], st_h[7]);
st_rl = st_ru = 0; memset(st_h, 0, sizeof st_h);
diff --git a/games/numblocks/ce/src/render.c b/games/numblocks/ce/src/render.c
index 3b841961..3c5bcd1c 100644
--- a/games/numblocks/ce/src/render.c
+++ b/games/numblocks/ce/src/render.c
@@ -304,9 +304,6 @@ static int clip3(CV *in, int n, CV *out, int k) {
}
if (da >= 0) out[m++] = *a;
if ((da >= 0) != (db >= 0)) {
-#ifdef HOST
- { extern unsigned long st_c3; st_c3++; }
-#endif
int32_t dd = (int32_t)da - db, aa = da;
while (dd > 262143 || dd < -262143) dd >>= 1, aa >>= 1;
int t = (int)((aa << 12) / dd);