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
PolyTrack: in NumPlay's place for PolyGT 3D, its logo and icon, cars drawn first, an ARM check of the runs
Mason363b1e55f512b43
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex b4419160..a78ff161 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -91,7 +91,7 @@ jobs:make -C games/fnf host test BUILD_DIR=../../build/data/games/fnfmake -C games/turborush host test BUILD_DIR=../../build/data/games/turborushmake -C games/angrybirds host test- make -C games/polygt3d host test BUILD_DIR=../../build/data/games/polygt3d+ make -C games/polytrack host testdiff --git a/Makefile b/Makefileindex 84be4d36..5555cbfa 100644--- a/Makefile+++ b/Makefile@@ -18,7 +18,7 @@ PY ?= python3CARGO ?= cargoB = build/data# Conventional games honor a configurable output directory; special layouts are kept local.-GAMES_REDIRECT = angrybirds balatro blockblast breakout buckshot celeste championisland chess connectfour cookieclicker coreball dinorun donkeykong doodlejump doom dune finalearth2 flappybird flappydunk fnaf fnf g2048 hillclimb hollowknight invaders isaac jetpackjoyride leveldevil minesweeper monkeymart numblocks numpowder numvisuals pacman polygt3d portal pvz snake sokoban solitaire sonic stickmanhook subway sudoku suika tombofthemask towerblock turborush twoplayer undertale uno uttt+GAMES_REDIRECT = angrybirds balatro blockblast breakout buckshot celeste championisland chess connectfour cookieclicker coreball dinorun donkeykong doodlejump doom dune finalearth2 flappybird flappydunk fnaf fnf g2048 hillclimb hollowknight invaders isaac jetpackjoyride leveldevil minesweeper monkeymart numblocks numpowder numvisuals pacman polytrack portal pvz snake sokoban solitaire sonic stickmanhook subway sudoku suika tombofthemask towerblock turborush twoplayer undertale uno utttGAMES_OUT = dinorunGAME_REDIRECT_ARG = $(if $(filter $(1),$(GAMES_OUT)),OUT=../../$(B)/games/$(1),BUILD_DIR=../../$(B)/games/$(1))# the RAM the oldest calculator software that runs apps gives them (23.2: 148928 bytes; 25.2 gives 153676).@@ -29,7 +29,7 @@ RAM_LIMIT = 148928# custom builds of Epsilon 25.2's source give apps less: 133652 bytes; every game fits there too, in NumPlay and on# its own (their big buffers are on the stack, 32 KB apart from that RAM, or in the RAM the software has left)CUSTOM_RAM = 133652-BIG_APPS = Celeste HollowKnight Undertale ChampionIsland FinalEarth2 NumPowder NumBlocks NumDrive SubwaySurfers FiveNightsAtFreddys Doom BindingOfIsaac HillClimbRacing PlantsVsZombies SonicTheHedgehog CookieClicker LevelDevil JetpackJoyride StickmanHook DonkeyKong Dune MonkeyMart TombOfTheMask UNO FridayNightFunkin TurboRush AngryBirds PolyGT3D+BIG_APPS = Celeste HollowKnight Undertale ChampionIsland FinalEarth2 NumPowder NumBlocks NumDrive SubwaySurfers FiveNightsAtFreddys Doom BindingOfIsaac HillClimbRacing PlantsVsZombies SonicTheHedgehog CookieClicker LevelDevil JetpackJoyride StickmanHook DonkeyKong Dune MonkeyMart TombOfTheMask UNO FridayNightFunkin TurboRush AngryBirds PolyTrack# the calculator's space for installed apps: from the end of its software (64 KiB aligned) to 64 KiB before the# end of its 4 MiB slot of flash, 0x903F0000. The software's size sets the start: 0x90200000 is the latest a# NumPlay counts on (1.94 MB, APP_SPACE); Epsilon 26.4 on an N0120 ends at 0x90180000 (2.44 MB, the@@ -47,7 +47,7 @@ XL_APP_SPACE = 6291456# the spaces the customizer website offers (kit.json "spaces"; tools/kit.py links a NumPlay at each)SPACES = std:$(APP_START):$(APP_END) e26:$(APP_START_26):$(APP_END) xl:$(APP_START):$(XL_END) xl26:$(APP_START_26):$(XL_END)# big games that must install on their own without Enlarged Extra Apps: make check holds them to APP_SPACE-APP_SPACE_APPS = HillClimbRacing FridayNightFunkin TurboRush AngryBirds PolyGT3D+APP_SPACE_APPS = HillClimbRacing FridayNightFunkin TurboRush AngryBirds PolyTrack# Upsilon, the N0110 and N0115's custom software, gives .nwa apps less RAM: NumPlay-Upsilon.nwa has# the games that fit it (NumPlay draws their text there: see launcher/src/compat.c)UPSILON_RAM = 107674@@ -325,7 +325,7 @@ APP_uno = $(B)/games/uno/uno.nwa:UNO.nwaAPP_fnf = $(B)/games/fnf/fnf.nwa:FridayNightFunkin.nwaAPP_turborush = $(B)/games/turborush/turborush.nwa:TurboRush.nwaAPP_angrybirds = $(B)/games/angrybirds/angrybirds.nwa:AngryBirds.nwa-APP_polygt3d = $(B)/games/polygt3d/polygt3d.nwa:PolyGT3D.nwa+APP_polytrack = $(B)/games/polytrack/polytrack.nwa:PolyTrack.nwa# the big games' modules are made from these (the kit)$(foreach g,$(XL_GAMES),$(eval MOD_$(g) = $$(word 1,$$(subst :, ,$$(APP_$(g))))))@@ -363,7 +363,7 @@ apps: | $(B)$(MAKE) -C games/fnf build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/fnf$(MAKE) -C games/turborush build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/turborush$(MAKE) -C games/angrybirds build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/angrybirds- $(MAKE) -C games/polygt3d build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/polygt3d+ $(MAKE) -C games/polytrack build NWLINK="$(NWLINK)" BUILD_DIR=../../$(B)/games/polytrackcd games/tetris/tetris && NWLINK="$(NWLINK)" $(CARGO) build --release --quietcp $(word 1,$(subst :, ,$(APP_numdash))) $(B)/apps/$(word 2,$(subst :, ,$(APP_numdash)))cp $(word 1,$(subst :, ,$(APP_crossyroad))) $(B)/apps/$(word 2,$(subst :, ,$(APP_crossyroad)))@@ -399,7 +399,7 @@ apps: | $(B)cp $(word 1,$(subst :, ,$(APP_fnf))) $(B)/apps/$(word 2,$(subst :, ,$(APP_fnf)))cp $(word 1,$(subst :, ,$(APP_turborush))) $(B)/apps/$(word 2,$(subst :, ,$(APP_turborush)))cp $(word 1,$(subst :, ,$(APP_angrybirds))) $(B)/apps/$(word 2,$(subst :, ,$(APP_angrybirds)))- cp $(word 1,$(subst :, ,$(APP_polygt3d))) $(B)/apps/$(word 2,$(subst :, ,$(APP_polygt3d)))+ cp $(word 1,$(subst :, ,$(APP_polytrack))) $(B)/apps/$(word 2,$(subst :, ,$(APP_polytrack)))arm-none-eabi-strip --strip-unneeded $(B)/apps/Tetris.nwaSTD_APPS = $(foreach g,$(STD_GAMES),$(B)/apps/$(NWA_$(g)))@@ -475,6 +475,6 @@ clean:-$(MAKE) -C games/fnf clean-$(MAKE) -C games/turborush clean-$(MAKE) -C games/angrybirds clean- -$(MAKE) -C games/polygt3d clean+ -$(MAKE) -C games/polytrack clean-cd games/tetris/tetris && $(CARGO) clean-$(foreach g,$(STD_GAMES),$(MAKE) -C games/$(g) clean;)diff --git a/games/games.json b/games/games.jsonindex 193c8b47..23267837 100644--- a/games/games.json+++ b/games/games.json@@ -1175,23 +1175,24 @@"xl": true},{- "id": "polygt3d",+ "id": "polytrack","rank": 22,- "title": "PolyGT 3D",- "tagline": "3D racing on three circuits",- "credit": "A game by Boris-TH",- "top": "0x231955",- "bottom": "0xEB6E50",- "accent": "0x00C3EB",+ "title": "PolyTrack",+ "tagline": "Time trials on 17 low-poly tracks",+ "credit": "Based on PolyTrack by Kodub",+ "top": "0x28346A",+ "bottom": "0x112052",+ "accent": "0xB3C1FF","colors": 16,"records": [- "polygt3d.sav",- "polygt3d_saves.py"+ "polytrack.sav",+ "polytrack_saves.py",+ "polytrack_ghosts.sav"],"shots": ["docs/shot.png"],- "repo": "https://github.com/Mason363/NumPlay/tree/main/games/polygt3d",+ "repo": "https://github.com/Mason363/NumPlay/tree/main/games/polytrack","default": false,"xl": true}diff --git a/games/polytrack/Makefile b/games/polytrack/Makefileindex e76533b4..c3a553b1 100644--- a/games/polytrack/Makefile+++ b/games/polytrack/Makefile@@ -5,7 +5,8 @@# make test every official track driven to the finish, the checkpoints, respawns and restarts, the physics,# saves (kept, damaged, storage full), random keys and the same runs to the same hashes on every# computer (with the sanitizers)-# make data src/data.bin, src/data.c and src/data.h from PolyTrack's web build+# make armcheck the same runs on the calculator's processor (in tools/emu.py), to the same hashes+# make data src/data.bin, src/data.c, src/data.h, src/logo.h and src/icon.png from PolyTrack's web build# (POLYTRACK_WEB=its folder; Python with numpy, DracoPy and Pillow)Q ?= @# the ARM toolchain on the PATH, or in TOOLCHAIN=<its bin folder>@@ -38,7 +39,7 @@ LDFLAGS += -Wl,--gc-sections -flinker-output=nolto-relRAM = 133652APP_SPACE = 2031616-.PHONY: build check clean host test data+.PHONY: build check clean host test data armcheckbuild: $(BUILD_DIR)/polytrack.nwacheck: $(BUILD_DIR)/polytrack.nwa@@ -63,6 +64,14 @@ $(BUILD_DIR)/polytrack.nwa: $(HOT) src/plat_eadk.c $(COLD_OBJ) $(HEADERS) $(BUIL-lm -o $@$(Q) $(STRIP) $@+# (the physics on its own, flags as the game's)+$(BUILD_DIR)/armcheck.nwa: tests/armcheck.c tests/routes.h src/car.c src/world.c src/ptmath.c src/data.c $(HEADERS) \+ $(BUILD_DIR)/icon.o $(BUILD_DIR)/data.o+ $(Q) $(CC) $(CFLAGS) -O2 $(LDFLAGS) tests/armcheck.c src/car.c src/world.c src/ptmath.c src/data.c \+ $(BUILD_DIR)/data.o $(BUILD_DIR)/icon.o -lm -o $@+armcheck: $(BUILD_DIR)/armcheck.nwa+ $(PYTHON) tools/armcheck.py $<+$(BUILD_DIR)/icon.o: src/icon.png | $(BUILD_DIR)@echo "ICON $<"$(Q) $(NWLINK) png-icon-o $< $@@@ -72,6 +81,7 @@ $(BUILD_DIR):data:$(PYTHON) tools/pack.py $(POLYTRACK_WEB)+ $(PYTHON) tools/logo.py $(POLYTRACK_WEB)# on a computer: tests/play.c drives the tracks and the whole app, and saves picturesHOST_SRC = tests/play.c src/car.c src/world.c src/ptmath.c src/render.c src/draw.c src/save.c src/ghost.c src/data.c \diff --git a/games/polytrack/output_prof/cold/data.o b/games/polytrack/output_prof/cold/data.odeleted file mode 100644index acec28e6..00000000Binary files a/games/polytrack/output_prof/cold/data.o and /dev/null differdiff --git a/games/polytrack/output_prof/cold/draw.o b/games/polytrack/output_prof/cold/draw.odeleted file mode 100644index 81accc1f..00000000Binary files a/games/polytrack/output_prof/cold/draw.o and /dev/null differdiff --git a/games/polytrack/output_prof/cold/font_data.o b/games/polytrack/output_prof/cold/font_data.odeleted file mode 100644index 4afcb258..00000000Binary files a/games/polytrack/output_prof/cold/font_data.o and /dev/null differdiff --git a/games/polytrack/output_prof/cold/gfx.o b/games/polytrack/output_prof/cold/gfx.odeleted file mode 100644index 008f0a34..00000000Binary files a/games/polytrack/output_prof/cold/gfx.o and /dev/null differdiff --git a/games/polytrack/output_prof/cold/ghost.o b/games/polytrack/output_prof/cold/ghost.odeleted file mode 100644index 2655cb64..00000000Binary files a/games/polytrack/output_prof/cold/ghost.o and /dev/null differdiff --git a/games/polytrack/output_prof/cold/main.o b/games/polytrack/output_prof/cold/main.odeleted file mode 100644index ad471919..00000000Binary files a/games/polytrack/output_prof/cold/main.o and /dev/null differdiff --git a/games/polytrack/output_prof/cold/save.o b/games/polytrack/output_prof/cold/save.odeleted file mode 100644index fd0b8025..00000000Binary files a/games/polytrack/output_prof/cold/save.o and /dev/null differdiff --git a/games/polytrack/output_prof/cold/xfont.o b/games/polytrack/output_prof/cold/xfont.odeleted file mode 100644index 97958e34..00000000Binary files a/games/polytrack/output_prof/cold/xfont.o and /dev/null differdiff --git a/games/polytrack/output_prof/data.o b/games/polytrack/output_prof/data.odeleted file mode 100644index 367b2196..00000000Binary files a/games/polytrack/output_prof/data.o and /dev/null differdiff --git a/games/polytrack/output_prof/icon.o b/games/polytrack/output_prof/icon.odeleted file mode 100644index 6d5dfe94..00000000Binary files a/games/polytrack/output_prof/icon.o and /dev/null differdiff --git a/games/polytrack/output_prof/polytrack.nwa b/games/polytrack/output_prof/polytrack.nwadeleted file mode 100644index 589041e5..00000000Binary files a/games/polytrack/output_prof/polytrack.nwa and /dev/null differdiff --git a/games/polytrack/src/draw.c b/games/polytrack/src/draw.cindex ebef8fd5..6b379d72 100644--- a/games/polytrack/src/draw.c+++ b/games/polytrack/src/draw.c@@ -4,6 +4,7 @@#include "../../../launcher/src/gfx.h"#include "data.h"#include "draw.h"+#include "logo.h"#include "plat.h"#include "world.h"@@ -106,12 +107,16 @@ static void keys(const char *s) {key_line(236, s);}-static void page(const char *title) {- gfx_vgrad(0, 0, 320, 240, 0x28346A, 0x151B3C);+static void header(const char *title) {slant(-8, 10, 200, 28, 8, SURFACE3, 256);text(&np_font_title, 12, 31, title, WHITE);}+static void page(const char *title) {+ gfx_vgrad(0, 0, 320, 240, 0x28346A, 0x151B3C);+ header(title);+}+/* a button: PolyTrack's dark slanted box, the chosen one lighter with a lavender edge */static void button(int x, int y, int w, const char *s, bool on) {if (on) slant(x - 2, y - 2, w + 4, 28, 8, LAVENDER, 256);@@ -127,28 +132,17 @@ static void not_saved(int y) {center(&np_font_small, 162, y + 12, "Storage full: progress not saved", WHITE);}-/* PolyTrack's name: its logo's letters (pale lavender, a dark blue edge), leaning like the logo */-static void logo(int x0, int y, int scale) {- const np_font_t *f = &np_font_title;- const char *s = "PolyTrack";- for (int pass = 0; pass < 2; pass++) {- int x = x0;- for (const char *q = s; *q; q++) {- const np_glyph_t *g = &f->glyphs[(uint8_t)*q - f->first];- const uint8_t *m = f->data + g->offset;- for (int gy = 0; gy < g->h; gy++) {- int yy = y + (g->y + gy) * scale;- if (yy + scale + 2 <= gfx_y0 || yy - 2 >= gfx_y1) continue;- int lean = (g->h - gy) * scale / 5;- for (int gx = 0; gx < g->w; gx++) {- int k = gy * g->w + gx, cov = (m[k / 2] >> ((k & 1) * 4)) & 15;- if (cov < 6) continue;- int px = x + (g->x + gx) * scale + lean;- if (pass == 0) gfx_fill(px - 2, yy - 2, scale + 4, scale + 4, BUTTON);- else gfx_fill(px, yy, scale, scale, LAVENDER);- }- }- x += g->advance * scale;+/* PolyTrack's logo (logo.h): lavender letters edged in dark blue, blended over the picture */+static void logo(int x0, int y0) {+ for (int y = 0; y < PT_LOGO_H; y++) {+ int yy = y0 + y;+ if (yy < gfx_y0 || yy >= gfx_y1) continue;+ for (int x = 0; x < PT_LOGO_W; x++) {+ int k = y * PT_LOGO_W + x, v = (pt_logo[k >> 1] >> ((k & 1) * 4)) & 15;+ if (!(v & 7)) continue;+ color_t c = v & 8 ? BUTTON : LAVENDER;+ if ((v & 7) == 7) gfx_fill(x0 + x, yy, 1, 1, c);+ else gfx_fill_alpha(x0 + x, yy, 1, 1, c, (v & 7) * 256 / 7);}}}@@ -261,7 +255,7 @@ int track_of_tab(int tab, int row) {static void title(void) {for (int y = 0; y < 80; y += 4) gfx_fill_alpha(0, y, 320, 4, HEX(0x0A0F2A), 150 - y * 150 / 80);- logo(18, 40, 2);+ logo(14, 18);static const char *const NAMES[MENU_ROWS] = {"Play", "Car", "How to play"};for (int i = 0; i < MENU_ROWS; i++) button(18, 96 + i * 34, 136, NAMES[i], U->sel == i);text(&np_font_small, 18, 214, "Kodub's PolyTrack, made for NumPlay", WHITE);@@ -308,14 +302,14 @@ static void tracks(void) {}static void car_screen(void) {- page("CAR");- slant(30, 182, 260, 26, 8, SURFACE3, 230);+ header("CAR");+ slant(30, 174, 260, 46, 8, SURFACE3, 235);char s[24];char *p = cat(s, "< ");p = cat(p, PAINT_NAMES[F->p.paint % PT_PAINTS]);cat(p, " >");- center(&np_font_body, 162, 200, s, WHITE);- center(&np_font_small, 162, 222, F->p.view ? "View: from the cockpit" : "View: behind the car", MUTED);+ center(&np_font_body, 162, 194, s, WHITE);+ center(&np_font_small, 162, 212, F->p.view ? "View: from the cockpit" : "View: behind the car", MUTED);keys("Left Right=colour|Up Down=view|OK=done");}@@ -425,13 +419,14 @@ void pt_render(const pt_file *f, const car_t *car, const camera_t *cam, const caF = f, CAR = car, U = ui;int s = ui->screen;if (s == V_RACE || s == V_PAUSE || s == V_LEAVE || s == V_RESULT) {+ /* (the cars first: they always have room) */rd_begin(cam, W.t->env, W.t->sun, false);- rd_track();- if (ghost) rd_car(ghost);if (!f->p.view) {- rd_shadow(look, car);rd_car(look);+ rd_shadow(look, car);}+ if (ghost) rd_car(ghost);+ rd_track();} else if (s == V_TITLE || s == V_QUIT || s == V_CAR) {/* the track's start from a camera going round the car */camera_t c;@@ -443,9 +438,9 @@ void pt_render(const pt_file *f, const car_t *car, const camera_t *cam, const cav3 x = vnorm(vcross(V3(0.0f, 1.0f, 0.0f), z));c.pos = eye, c.right = x, c.up = vcross(z, x), c.fwd = vneg(z), c.fov = 60.0f;rd_begin(&c, W.t->env, W.t->sun, false);- rd_track();- rd_shadow(look, car);rd_car(look);+ rd_shadow(look, car);+ rd_track();}color_t *old = gfx_buf;gfx_buf = strip;diff --git a/games/polytrack/src/icon.png b/games/polytrack/src/icon.pngindex ea408dfd..d44c817a 100644Binary files a/games/polytrack/src/icon.png and b/games/polytrack/src/icon.png differdiff --git a/games/polytrack/src/logo.h b/games/polytrack/src/logo.hnew file mode 100644index 00000000..1154a2f4--- /dev/null+++ b/games/polytrack/src/logo.h@@ -0,0 +1,234 @@+/* PolyTrack's logo, from images/logo.svg of Kodub's web build (tools/logo.py). 4 bits a pixel, two to a+ * byte (the first in the low half): bit 3 the dark blue outline (else the lavender), bits 0-2 how much it+ * covers (0 none, 7 all). Do not edit. */+#ifndef PT_LOGO_HEADER+#define PT_LOGO_HEADER+#include <stdint.h>+#define PT_LOGO_W 232+#define PT_LOGO_H 46+static const uint8_t pt_logo[] = {+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 176, 221, 221, 221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 218, 221, 221, 157, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 144, 170, 170, 170, 170,+ 170, 170, 170, 170, 170, 170, 170, 170, 170, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 208, 127, 119, 239, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 160, 170, 170, 170,+ 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170,+ 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 42, 1, 0, 0, 0, 0, 0,+ 252, 119, 119, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 255, 255, 255, 255, 255, 255, 255, 255,+ 255, 255, 255, 255, 255, 207, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 119, 119,+ 215, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 249, 255, 255, 255, 255, 255, 255, 255,+ 255, 255, 255, 255, 255, 255, 207, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204,+ 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 204, 76, 66, 85, 20, 54, 0, 0, 125, 119, 119, 15,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 249, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,+ 119, 175, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 119, 119, 207, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,+ 119, 119, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 97, 118, 119, 87, 37, 0, 0, 126, 119, 119, 13, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 250, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 15, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 119, 119, 191, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 252, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 13, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 65, 117, 119, 70, 20, 0, 0, 127, 119, 247, 12, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 252, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 15, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 119, 119, 175, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 125, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 247, 222, 221, 221, 221, 221, 221,+ 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221,+ 221, 93, 51, 68, 18, 53, 0, 160, 127, 119, 247, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125,+ 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 252, 119, 119, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 126, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 247, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 176, 127, 119, 247, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 126, 119, 119, 119, 119,+ 119, 119, 119, 119, 119, 119, 119, 119, 247, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 125, 119, 119, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 119, 119, 119,+ 119, 119, 119, 119, 119, 119, 119, 119, 119, 247, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 9, 0, 192,+ 127, 119, 247, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 119, 247, 255, 255, 255, 255, 255, 255,+ 255, 255, 127, 119, 247, 11, 0, 250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 223, 0, 0, 127, 119, 247,+ 13, 0, 250, 255, 255, 159, 0, 0, 0, 0, 240, 255, 255, 191, 0, 160, 255, 255, 255, 255, 255, 255, 119, 119,+ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 15, 0, 250, 255, 255, 255, 255, 255, 255, 255,+ 255, 255, 255, 223, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 15, 0, 208, 119, 119, 231, 0,+ 0, 0, 0, 144, 255, 255, 255, 0, 0, 0, 160, 127, 119, 247, 172, 170, 170, 170, 170, 170, 170, 218, 127, 119,+ 247, 10, 0, 252, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 207, 0, 0, 127, 119, 247, 12, 0, 252, 119,+ 119, 159, 0, 0, 0, 0, 250, 119, 119, 191, 0, 0, 170, 170, 170, 170, 170, 254, 119, 119, 175, 170, 170, 170,+ 170, 252, 119, 119, 119, 119, 119, 119, 119, 119, 15, 0, 252, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 207,+ 0, 160, 127, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 14, 0, 240, 119, 119, 215, 0, 0, 0, 0, 249,+ 127, 119, 247, 0, 0, 0, 176, 127, 119, 247, 10, 0, 0, 0, 0, 0, 0, 208, 119, 119, 247, 0, 0, 253,+ 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 191, 0, 160, 127, 119, 247, 10, 0, 253, 119, 119, 15, 0, 0,+ 0, 0, 251, 119, 119, 175, 0, 0, 0, 0, 0, 0, 0, 126, 119, 119, 15, 0, 0, 0, 0, 252, 119, 119,+ 119, 119, 119, 119, 119, 119, 13, 0, 252, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 207, 0, 176, 127, 119,+ 119, 119, 119, 119, 119, 119, 119, 119, 119, 13, 0, 240, 119, 119, 207, 0, 0, 0, 176, 255, 119, 119, 215, 0,+ 0, 0, 192, 127, 119, 247, 0, 0, 0, 0, 0, 0, 0, 240, 119, 119, 231, 0, 0, 126, 119, 119, 119, 119,+ 119, 119, 119, 119, 119, 119, 175, 0, 176, 127, 119, 247, 9, 0, 126, 119, 119, 13, 0, 0, 0, 0, 252, 119,+ 119, 15, 0, 0, 0, 0, 0, 0, 0, 127, 119, 119, 13, 0, 0, 0, 0, 125, 119, 119, 119, 119, 119, 119,+ 119, 247, 12, 0, 125, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 175, 0, 192, 127, 119, 119, 119, 119, 119,+ 119, 119, 119, 119, 247, 12, 0, 250, 119, 119, 191, 0, 0, 0, 251, 119, 119, 119, 207, 0, 0, 0, 208, 119,+ 119, 231, 0, 0, 0, 0, 0, 0, 0, 240, 119, 119, 215, 0, 0, 127, 119, 119, 119, 119, 119, 119, 119, 119,+ 119, 119, 15, 0, 192, 127, 119, 247, 0, 0, 127, 119, 247, 12, 0, 0, 0, 0, 125, 119, 119, 14, 0, 0,+ 0, 0, 0, 0, 160, 127, 119, 247, 12, 0, 0, 0, 0, 127, 119, 119, 119, 119, 119, 119, 119, 247, 11, 0,+ 127, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 159, 0, 208, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,+ 247, 11, 0, 251, 119, 119, 159, 0, 0, 176, 127, 119, 119, 247, 14, 0, 0, 0, 240, 119, 119, 215, 0, 0,+ 0, 0, 0, 0, 0, 250, 119, 119, 207, 0, 144, 127, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 15, 0,+ 208, 119, 119, 231, 0, 144, 127, 119, 247, 11, 0, 0, 0, 0, 126, 119, 119, 13, 0, 0, 0, 0, 0, 0,+ 176, 127, 119, 247, 12, 0, 0, 0, 0, 127, 119, 119, 119, 119, 119, 119, 119, 247, 10, 144, 255, 119, 119, 119,+ 119, 119, 119, 119, 119, 119, 119, 15, 0, 224, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 247, 10, 0, 252,+ 119, 119, 15, 0, 0, 252, 119, 119, 119, 239, 0, 0, 0, 0, 240, 119, 119, 255, 255, 255, 255, 255, 255, 255,+ 255, 255, 119, 119, 191, 0, 176, 127, 119, 247, 255, 255, 255, 255, 255, 127, 119, 119, 13, 0, 240, 119, 119, 223,+ 0, 160, 127, 119, 247, 10, 0, 0, 0, 0, 127, 119, 247, 12, 0, 0, 0, 0, 0, 0, 192, 127, 119, 247,+ 10, 0, 0, 0, 160, 127, 119, 247, 255, 255, 255, 119, 119, 247, 0, 144, 221, 221, 221, 221, 221, 221, 221, 221,+ 127, 119, 119, 13, 0, 240, 119, 119, 247, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 125, 119, 119, 14, 0,+ 192, 127, 119, 119, 247, 13, 0, 0, 0, 0, 250, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,+ 175, 0, 192, 127, 119, 247, 171, 170, 170, 170, 186, 127, 119, 247, 12, 0, 249, 119, 119, 207, 0, 192, 127, 119,+ 247, 0, 0, 0, 0, 160, 127, 119, 247, 11, 0, 0, 0, 0, 0, 0, 208, 119, 119, 247, 9, 0, 0, 0,+ 176, 127, 119, 247, 172, 170, 250, 119, 119, 231, 0, 0, 0, 0, 0, 0, 0, 0, 0, 160, 127, 119, 247, 12,+ 0, 250, 119, 119, 207, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 119, 247, 13, 0, 252, 119, 119, 119,+ 207, 0, 0, 0, 0, 0, 251, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 15, 0, 208, 119,+ 119, 247, 9, 0, 0, 0, 176, 127, 119, 247, 11, 0, 250, 119, 119, 175, 0, 208, 119, 119, 247, 0, 0, 0,+ 0, 176, 127, 119, 247, 10, 0, 0, 0, 0, 0, 0, 224, 119, 119, 247, 0, 0, 0, 0, 192, 127, 119, 247,+ 10, 0, 249, 119, 119, 215, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 127, 119, 247, 11, 0, 251, 119, 119,+ 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 144, 127, 119, 247, 12, 224, 127, 119, 119, 247, 12, 0, 0, 0,+ 0, 0, 252, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 14, 0, 224, 119, 119, 247, 0, 0,+ 0, 0, 192, 127, 119, 247, 10, 0, 252, 119, 119, 159, 0, 224, 119, 119, 215, 0, 0, 0, 0, 192, 127, 119,+ 247, 0, 0, 0, 0, 0, 0, 0, 240, 119, 119, 215, 0, 0, 0, 0, 208, 119, 119, 247, 0, 0, 250, 119,+ 119, 207, 0, 176, 204, 204, 204, 204, 204, 204, 204, 220, 127, 119, 247, 10, 0, 252, 119, 119, 175, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 160, 127, 119, 247, 255, 255, 119, 119, 119, 207, 0, 0, 0, 0, 0, 0, 125, 119,+ 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 247, 13, 0, 240, 119, 119, 215, 0, 0, 0, 0, 208, 119,+ 119, 247, 0, 0, 252, 119, 119, 15, 0, 240, 119, 119, 207, 0, 0, 0, 0, 208, 119, 119, 231, 0, 0, 0,+ 0, 0, 0, 0, 250, 119, 119, 207, 0, 0, 0, 0, 240, 119, 119, 231, 0, 0, 252, 119, 119, 191, 0, 240,+ 255, 255, 255, 255, 255, 255, 255, 255, 119, 119, 247, 0, 0, 125, 119, 119, 15, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 192, 127, 119, 119, 119, 119, 119, 119, 247, 11, 0, 0, 0, 0, 0, 0, 127, 119, 119, 119, 119, 119,+ 119, 119, 119, 119, 119, 119, 119, 247, 12, 0, 250, 119, 119, 207, 0, 0, 0, 0, 240, 119, 119, 231, 0, 0,+ 126, 119, 119, 13, 0, 250, 119, 119, 191, 0, 0, 0, 0, 240, 119, 119, 223, 0, 0, 0, 0, 0, 0, 0,+ 251, 119, 119, 191, 0, 0, 0, 0, 249, 119, 119, 215, 0, 0, 252, 119, 119, 159, 0, 249, 119, 119, 119, 119,+ 119, 119, 119, 119, 119, 119, 247, 0, 0, 127, 119, 119, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 127,+ 119, 119, 119, 119, 119, 119, 191, 0, 0, 0, 0, 0, 0, 144, 127, 119, 247, 255, 255, 255, 255, 255, 255, 255,+ 255, 255, 255, 255, 10, 0, 251, 119, 119, 191, 0, 0, 0, 0, 249, 119, 119, 215, 0, 0, 127, 119, 247, 12,+ 0, 251, 119, 119, 175, 0, 0, 0, 0, 240, 119, 119, 207, 0, 0, 0, 0, 0, 0, 0, 252, 119, 119, 175,+ 0, 0, 0, 0, 250, 119, 119, 207, 0, 0, 253, 255, 255, 15, 0, 250, 119, 119, 119, 119, 119, 119, 119, 119,+ 119, 119, 215, 0, 0, 127, 119, 119, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 208, 119, 119, 119, 119, 119,+ 119, 247, 12, 0, 0, 0, 0, 0, 0, 160, 127, 119, 247, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 252, 119, 119, 175, 0, 0, 0, 0, 250, 119, 119, 207, 0, 144, 127, 119, 247, 12, 0, 252, 119, 119,+ 15, 0, 0, 0, 0, 250, 119, 119, 175, 0, 0, 0, 0, 0, 0, 0, 125, 119, 119, 15, 0, 0, 0, 0,+ 252, 119, 119, 175, 0, 0, 0, 0, 0, 0, 0, 252, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 207, 0,+ 160, 127, 119, 247, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 119, 119, 119, 119, 119, 119, 247, 14, 0,+ 0, 0, 0, 0, 0, 192, 127, 119, 247, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 125, 119,+ 119, 15, 0, 0, 0, 0, 252, 119, 119, 191, 0, 160, 127, 119, 247, 10, 0, 125, 119, 119, 14, 0, 0, 0,+ 0, 252, 119, 119, 159, 0, 0, 0, 0, 0, 0, 0, 127, 119, 119, 15, 0, 0, 0, 0, 252, 119, 119, 159,+ 0, 0, 0, 0, 0, 0, 0, 125, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 191, 0, 176, 127, 119, 247,+ 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 249, 119, 119, 119, 119, 119, 119, 119, 207, 0, 0, 0, 0, 0,+ 0, 192, 127, 119, 247, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 119, 119, 15, 0, 0,+ 0, 0, 252, 119, 119, 159, 0, 192, 127, 119, 247, 0, 0, 126, 119, 119, 13, 0, 0, 0, 0, 252, 119, 119,+ 15, 0, 0, 0, 0, 0, 0, 0, 127, 119, 119, 13, 0, 0, 0, 0, 125, 119, 119, 15, 0, 0, 0, 0,+ 0, 0, 0, 126, 119, 119, 223, 221, 221, 221, 221, 255, 119, 119, 175, 0, 192, 127, 119, 247, 10, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 250, 119, 119, 255, 255, 127, 119, 119, 247, 10, 0, 0, 0, 0, 0, 208, 119, 119,+ 231, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 119, 119, 13, 0, 0, 0, 0, 125, 119,+ 119, 15, 0, 208, 127, 119, 247, 0, 0, 127, 119, 247, 12, 0, 0, 0, 0, 125, 119, 119, 14, 0, 0, 0,+ 0, 0, 0, 160, 127, 119, 247, 12, 0, 0, 0, 0, 127, 119, 119, 14, 0, 0, 0, 0, 0, 0, 0, 127,+ 119, 119, 13, 0, 0, 0, 0, 125, 119, 119, 15, 0, 208, 119, 119, 247, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 252, 119, 119, 175, 186, 127, 119, 119, 119, 15, 0, 0, 0, 0, 0, 240, 119, 119, 207, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 160, 127, 119, 247, 12, 0, 0, 0, 0, 127, 119, 119, 14, 0, 224,+ 119, 119, 215, 0, 160, 127, 119, 247, 11, 0, 0, 0, 0, 127, 119, 247, 12, 0, 0, 0, 0, 0, 0, 176,+ 127, 119, 247, 11, 0, 0, 0, 144, 127, 119, 247, 13, 0, 0, 0, 0, 0, 0, 160, 127, 119, 247, 12, 0,+ 0, 0, 0, 127, 119, 119, 14, 0, 240, 119, 119, 247, 170, 170, 170, 170, 170, 170, 170, 154, 0, 0, 253, 119,+ 119, 15, 0, 252, 119, 119, 119, 223, 0, 0, 0, 0, 0, 249, 119, 119, 207, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 176, 127, 119, 247, 255, 255, 255, 255, 255, 127, 119, 247, 13, 0, 240, 119, 119, 207, 0,+ 176, 127, 119, 247, 255, 255, 255, 255, 255, 127, 119, 247, 12, 0, 0, 0, 0, 0, 0, 192, 127, 119, 247, 10,+ 0, 0, 0, 160, 127, 119, 247, 12, 0, 0, 0, 0, 0, 0, 176, 127, 119, 247, 205, 204, 204, 204, 204, 127,+ 119, 119, 13, 0, 249, 119, 119, 247, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 126, 119, 119, 13, 0, 224,+ 127, 119, 119, 247, 11, 0, 0, 0, 0, 250, 119, 119, 175, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 192, 127, 119, 119, 119, 119, 119, 119, 119, 119, 119, 247, 12, 0, 250, 119, 119, 191, 0, 192, 127, 119, 119,+ 119, 119, 119, 119, 119, 119, 119, 247, 10, 0, 0, 0, 0, 0, 0, 208, 119, 119, 247, 0, 0, 0, 0, 192,+ 127, 119, 247, 10, 0, 0, 0, 0, 0, 0, 192, 127, 119, 247, 255, 255, 255, 255, 255, 127, 119, 247, 12, 0,+ 250, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 215, 0, 0, 127, 119, 247, 12, 0, 144, 127, 119, 119, 119,+ 159, 0, 0, 0, 0, 252, 119, 119, 159, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 208, 119, 119,+ 119, 119, 119, 119, 119, 119, 119, 119, 247, 10, 0, 251, 119, 119, 175, 0, 208, 119, 119, 119, 119, 119, 119, 119,+ 119, 119, 119, 247, 9, 0, 0, 0, 0, 0, 0, 240, 119, 119, 231, 0, 0, 0, 0, 208, 127, 119, 247, 9,+ 0, 0, 0, 0, 0, 0, 208, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 247, 11, 0, 252, 119, 119, 119,+ 119, 119, 119, 119, 119, 119, 119, 207, 0, 144, 127, 119, 247, 11, 0, 0, 251, 119, 119, 119, 239, 0, 0, 0,+ 0, 253, 119, 119, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 119, 119, 119, 119, 119, 119,+ 119, 119, 119, 119, 247, 9, 0, 252, 119, 119, 15, 0, 240, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 247,+ 0, 0, 0, 0, 0, 0, 0, 249, 119, 119, 215, 0, 0, 0, 0, 224, 119, 119, 247, 0, 0, 0, 0, 0,+ 0, 0, 224, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 247, 10, 0, 252, 119, 119, 119, 119, 119, 119, 119,+ 119, 119, 119, 207, 0, 160, 127, 119, 247, 10, 0, 0, 208, 127, 119, 119, 247, 11, 0, 0, 0, 126, 119, 119,+ 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 249, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119,+ 247, 0, 0, 125, 119, 119, 15, 0, 240, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 215, 0, 0, 0, 0,+ 0, 0, 0, 250, 119, 119, 207, 0, 0, 0, 0, 240, 119, 119, 215, 0, 0, 0, 0, 0, 0, 0, 240, 119,+ 119, 119, 119, 119, 119, 119, 119, 119, 119, 247, 0, 0, 126, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 175,+ 0, 192, 127, 119, 247, 0, 0, 0, 0, 254, 119, 119, 247, 11, 0, 0, 0, 127, 119, 247, 12, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 215, 0, 0, 126,+ 119, 119, 13, 0, 250, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 207, 0, 0, 0, 0, 0, 0, 0, 252,+ 119, 119, 175, 0, 0, 0, 0, 249, 119, 119, 207, 0, 0, 0, 0, 0, 0, 0, 250, 119, 119, 119, 119, 119,+ 119, 119, 119, 119, 119, 231, 0, 0, 127, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119, 159, 0, 208, 127, 119,+ 247, 0, 0, 0, 0, 249, 119, 119, 247, 10, 0, 0, 144, 255, 255, 255, 11, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 207, 0, 0, 255, 255, 255, 12, 0,+ 252, 255, 255, 255, 255, 255, 255, 255, 119, 119, 119, 191, 0, 0, 0, 0, 0, 0, 0, 252, 255, 255, 159, 0,+ 0, 0, 0, 250, 255, 255, 207, 0, 0, 0, 0, 0, 0, 0, 251, 255, 255, 255, 255, 255, 255, 255, 255, 255,+ 255, 223, 0, 144, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 15, 0, 208, 255, 255, 223, 0, 0, 0,+ 0, 192, 255, 255, 255, 0, 0, 0, 0, 170, 170, 170, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 160, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 154, 0, 0, 169, 170, 170, 0, 0, 160, 170, 170, 170,+ 170, 170, 234, 127, 119, 119, 247, 14, 0, 0, 0, 0, 0, 0, 0, 169, 170, 170, 10, 0, 0, 0, 0, 160,+ 170, 170, 10, 0, 0, 0, 0, 0, 0, 0, 160, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 10, 0, 0,+ 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 9, 0, 144, 170, 170, 154, 0, 0, 0, 0, 0, 170, 170,+ 154, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 253, 119,+ 119, 119, 207, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 127, 119, 119, 247, 12, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 119, 119, 119, 207, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 249, 127, 119, 119, 247, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 255, 119, 119, 119, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 160,+ 127, 119, 119, 247, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 127, 119, 247, 175,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 127, 119, 255, 9, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 208, 255, 255, 159, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 144, 170, 170, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,+ 0, 0, 0, 0, 0, 0, 0, 0,+};+#endifdiff --git a/games/polytrack/src/main.c b/games/polytrack/src/main.cindex 3a98ca42..e0df1d9f 100644--- a/games/polytrack/src/main.c+++ b/games/polytrack/src/main.c@@ -332,8 +332,9 @@ int main(void) {if (spent > 33) perf_slow++;/* the picture's detail follows the time it takes: down at once when slow, up slowly */if (ui.screen == V_RACE) {- if (spent > 30) slow_frames++, quick_frames = 0;- else if (spent < 18) quick_frames++, slow_frames = 0;+ /* (and down when the triangles ran out, up only with room to spare) */+ if (spent > 30 || rd_dropped) slow_frames++, quick_frames = 0;+ else if (spent < 18 && rd_tris < RD_MAX_TRIS * 3 / 4) quick_frames++, slow_frames = 0;if (slow_frames >= 2 && rd_detail > 0) rd_detail--, slow_frames = 0;if (quick_frames >= 30 && rd_detail < 3) rd_detail++, quick_frames = 0;}diff --git a/games/polytrack/src/render.c b/games/polytrack/src/render.cindex 5d282752..ff18423c 100644--- a/games/polytrack/src/render.c+++ b/games/polytrack/src/render.c@@ -11,7 +11,7 @@#define CX 160.0f#define CY 120.0f#define NEAR 0.5f-#define MAX_TRIS 1700+#define MAX_TRIS RD_MAX_TRIS#define MAX_VIS 400#define GUARD 1500.0f#define STRIP_ROWS 24@@ -27,7 +27,7 @@ typedef struct {static tri tris[MAX_TRIS];static int ntris;-int rd_tris, rd_dropped;+int rd_tris, rd_dropped, rd_mtris, rd_chunks;int rd_detail = 2;static const float DRAW[4] = {100.0f, 140.0f, 180.0f, 230.0f};static const float NEAR_DETAIL[4] = {22.0f, 30.0f, 40.0f, 52.0f};@@ -320,9 +320,17 @@ static void collect(int i, void *ctx) {(float)o[6] * lc.x + (float)o[7] * lc.y + (float)o[8] * lc.z), o0);v3 cc = to_cam(wc);if (!sphere_visible(cc, r)) continue;- if (nvis >= MAX_VIS) return;float d = vlen(vsub(wc, C.pos)) - r;- vis_t *v = &vis[nvis++];+ vis_t *v;+ if (nvis < MAX_VIS) v = &vis[nvis++];+ else {+ /* (full: the nearest are kept) */+ int far = 0;+ for (int j = 1; j < MAX_VIS; j++)+ if (vis[j].dist > vis[far].dist) far = j;+ if (vis[far].dist <= d) continue;+ v = &vis[far];+ }v->inst = (uint16_t)i, v->chunk = (uint8_t)k, v->dist = d;v->lod = d < NEAR_DETAIL[rd_detail & 3] ? 0 : 1;}@@ -406,6 +414,7 @@ static void mountains(void) {void rd_track(void) {mountains();+ rd_mtris = ntris;nvis = 0;v3 r = V3(far_d, far_d, far_d);world_query(vsub(C.pos, r), vadd(C.pos, r), collect, NULL);@@ -416,7 +425,12 @@ void rd_track(void) {while (j >= 0 && vis[j].dist > t.dist) vis[j + 1] = vis[j], j--;vis[j + 1] = t;}- for (int i = 0; i < nvis; i++) draw_chunk(&vis[i]);+ /* (when the room runs short, the further ones simplified) */+ for (int i = 0; i < nvis; i++) {+ if (ntris > MAX_TRIS * 3 / 5) vis[i].lod = 1;+ draw_chunk(&vis[i]);+ }+ rd_chunks = nvis;}/* ------------------------------------------------------------------ the car */diff --git a/games/polytrack/src/render.h b/games/polytrack/src/render.hindex 14260a21..2a4053c2 100644--- a/games/polytrack/src/render.h+++ b/games/polytrack/src/render.h@@ -31,7 +31,8 @@ car_look car_look_mix(const car_look *a, const car_look *b, float t);extern const uint32_t rd_paints[8]; /* the car colours */extern int rd_detail; /* 0..3: how far it draws; lowered when a frame is slow */-extern int rd_tris, rd_dropped;+#define RD_MAX_TRIS 1700 /* triangles in a frame, at most */+extern int rd_tris, rd_dropped, rd_mtris, rd_chunks; /* the last frame: triangles kept, some left out, of the mountains; chunks */void rd_begin(const camera_t *cam, int env, int sun, bool sky_only);void rd_track(void);diff --git a/games/polytrack/tests/armcheck.c b/games/polytrack/tests/armcheck.cnew file mode 100644index 00000000..690ebb36--- /dev/null+++ b/games/polytrack/tests/armcheck.c@@ -0,0 +1,36 @@+/* The official tracks' runs (routes.h) on the calculator's processor, for tools/armcheck.py: each track driven to+ * its finish, the frame and the car's hash kept in check_out for the emulator to read. They must be the ones the+ * computers get. */+#include <eadk.h>+#include "../src/car.h"+#include "routes.h"++const char eadk_app_name[] __attribute__((section(".rodata.eadk_app_name"))) = "PTCheck";+const uint32_t eadk_api_level __attribute__((section(".rodata.eadk_api_level"))) = 0;++__attribute__((used, externally_visible)) uint32_t check_out[2 * PT_NTRACKS], check_done;+__attribute__((used, externally_visible)) volatile uint32_t check_tracks = PT_NTRACKS; /* (the emulator may lower it) */++static car_t c;+int main(void) {+ for (int t = 0; t < (int)check_tracks && t < PT_NTRACKS; t++) {+ world_load(t);+ car_reset(&c);+ const char *s = pt_routes[t];+ uint32_t f = 0;+ while (*s && !c.finish) {+ char ch = *s++;+ unsigned k = ch >= 'a' && ch <= 'p' ? (unsigned)(ch - 'a') : ch >= 'A' && ch <= 'P' ? (unsigned)(ch - 'A') | IN_RESET : 99;+ if (k == 99) continue;+ uint32_t r = 0;+ while (*s >= '0' && *s <= '9') r = r * 10 + (uint32_t)(*s++ - '0');+ if (!r) r = 1;+ for (uint32_t i = 0; i < r * 10 && !c.finish; i++, f++) car_step(&c, k);+ }+ for (; f < 600000 && !c.finish; f++) car_step(&c, 0);+ check_out[2 * t] = c.finish;+ check_out[2 * t + 1] = car_hash(&c);+ }+ check_done = 1;+ return 0;+}diff --git a/games/polytrack/tests/play.c b/games/polytrack/tests/play.cindex 69dd64d4..7fcc17e7 100644--- a/games/polytrack/tests/play.c+++ b/games/polytrack/tests/play.c@@ -644,8 +644,8 @@ int main(int argc, char **argv) {sv.p.track = (uint8_t)t;rd_detail = argc > 5 ? atoi(argv[5]) : 3;render_race(&car, &chase, 0.0f);- printf("track %s frame %u pos %.2f %.2f %.2f speed %.1f cp %d tris %d%s\n", pt_tracks[t].name, car.frames,- (double)car.pos.x, (double)car.pos.y, (double)car.pos.z, (double)car.speed, car.next_cp, rd_tris,+ printf("track %s frame %u pos %.2f %.2f %.2f speed %.1f cp %d tris %d (mountains %d, chunks %d)%s\n", pt_tracks[t].name, car.frames,+ (double)car.pos.x, (double)car.pos.y, (double)car.pos.z, (double)car.speed, car.next_cp, rd_tris, rd_mtris, rd_chunks,rd_dropped ? " (dropped)" : "");shot(dir, "view");return 0;@@ -672,6 +672,65 @@ int main(int argc, char **argv) {}return 0;}+ if (!strcmp(argv[1], "shots")) {+ /* every screen: play shots DIR */+ memset(&sv, 0, sizeof sv);+ pt_fresh(&sv.p);+ sv.p.guide = 1;+ for (int t = 0; t < PT_NTRACKS; t++)+ if (t % 3 != 2) sv.p.best[t] = 31000u + (uint32_t)t * 2345u;+ rd_detail = 3;+ world_load(0);+ car_reset(&car);+ look = car_look_of(&car);+ memset(&ui, 0, sizeof ui);+ static const struct { uint8_t screen, sel, page, tab; const char *name; } S[] = {+ {V_TITLE, 0, 0, 0, "title"}, {V_QUIT, 1, 0, 0, "quit"}, {V_TRACKS, 1, 0, 0, "tracks"},+ {V_TRACKS, 2, 0, 2, "tracks_desert"}, {V_CAR, 0, 0, 0, "car"}, {V_GUIDE, 0, 0, 0, "guide"},+ {V_HELP, 0, 1, 0, "help2"}, {V_HELP, 0, 2, 0, "help3"},+ };+ for (unsigned i = 0; i < sizeof S / sizeof S[0]; i++) {+ ui.screen = S[i].screen, ui.sel = S[i].sel, ui.page = S[i].page, ui.tab = S[i].tab;+ ui.clock = 7000;+ sv.p.paint = S[i].screen == V_CAR ? 1 : 0;+ look.paint = sv.p.paint;+ chase_update(&chase, &cam, 0.0f, look.pos, look.rot, 0.0f);+ pt_render(&sv, &car, &cam, &look, NULL, &ui);+ shot(dir, S[i].name);+ }+ /* the race: Summer 1, its run some way on, then the pause, leaving, the finish */+ world_load(0);+ route_load(0);+ car_reset(&car);+ chase_reset(&chase, car.pos, car.rot);+ memset(&ui, 0, sizeof ui);+ ui.screen = V_RACE;+ render_race(&car, &chase, 0.0f);+ ui.started = 0;+ pt_render(&sv, &car, &cam, &look, NULL, &ui);+ shot(dir, "start");+ uint32_t at = argc > 3 ? (uint32_t)atoi(argv[3]) : 12000;+ for (uint32_t f = 0; f < at; f++) {+ car_step(&car, route_keys(f));+ if (f % 33 == 0) chase_update(&chase, &cam, 0.033f, car.pos, car.rot, car.speed);+ }+ ui.clock = 100000, ui.split_at = ui.clock - 1000, ui.split_cp = 0, ui.split_diff = -1234;+ render_race(&car, &chase, 0.0f);+ shot(dir, "race");+ ui.screen = V_PAUSE, ui.sel = 0;+ pt_render(&sv, &car, &cam, &look, NULL, &ui);+ shot(dir, "pause");+ ui.screen = V_LEAVE, ui.sel = 0;+ pt_render(&sv, &car, &cam, &look, NULL, &ui);+ shot(dir, "leave");+ while (!car.finish && car.frames < 600000) car_step(&car, route_keys(car.frames));+ for (int i = 0; i < 60; i++) chase_update(&chase, &cam, 0.033f, car.pos, car.rot, car.speed);+ ui.screen = V_RESULT, ui.sel = 0, ui.new_record = 1, ui.finish_diff = -2345, ui.finish_at = 1, ui.split_at = 0;+ pt_render(&sv, &car, &cam, &look, NULL, &ui);+ shot(dir, "result");+ printf("shots in %s\n", dir);+ return 0;+ }if (!strcmp(argv[1], "cam")) {/* a picture from anywhere: play cam DIR T X Y Z TX TY TZ */int t = atoi(argv[3]);diff --git a/games/polytrack/tests/route.c b/games/polytrack/tests/route.cindex 0ed66f96..f7bbd1c6 100644--- a/games/polytrack/tests/route.c+++ b/games/polytrack/tests/route.c@@ -104,7 +104,10 @@ static void build_field(void) {v[j] = world_apply(in, V3((float)q[0] / PT_FIX, (float)q[1] / PT_FIX, (float)q[2] / PT_FIX));}v3 nn = vnorm(vcross(vsub(v[1], v[0]), vsub(v[2], v[0])));- bool dp = drive_part(pt_part_id[in->part]);+ /* (a part's floor is driven on however the part is turned: a road up a wall) */+ const int8_t *o = world_orient(in);+ float local_up = (float)o[1] * nn.x + (float)o[4] * nn.y + (float)o[7] * nn.z;+ bool dp = drive_part(pt_part_id[in->part]) || (in->orient >> 2 && local_up > 0.5f);/* flat floors (1), and what can be climbed: slopes, walls, loops (2) */if (nn.y > 0.5f || dp) {mark_tri(surf, v[0], v[1], v[2], nn, nn.y >= 0.96f && !dp ? 1 : 2);@@ -209,7 +212,8 @@ static void build_field(void) {/* Dijkstra with a bucket queue: near a drivable surface a cube costs 2; in the air 6 across, 3 down and 24 up(a jump goes across or down, not up) */#define NB 32-#define VCOST 1 /* up or down a slope: about free, the way across it counts */+static int vcost = 1; /* up or down a slope or a wall (VC=) */+static int air_up = 0; /* up through the air (AU=; 0: never) */static int *bucket[NB], bcount[NB], bcap[NB];static void push(int b, int i) {if (bcount[b] == bcap[b]) bcap[b] = bcap[b] ? bcap[b] * 2 : 4096, bucket[b] = realloc(bucket[b], sizeof(int) * (size_t)bcap[b]);@@ -251,9 +255,12 @@ static void bfs(uint16_t *d, v3 lo, v3 hi) {int wi = F.walk[i];if (D[k][1] == -1) {/* i above j: up only along a slope or a wall */- if (wi != 3 && w != 3) continue;- cost = wi == 3 && w == 3 ? VCOST : 2;- } else if (D[k][1] == 1 && wi == 3 && w == 3) cost = VCOST;+ if (wi != 3 && w != 3) {+ /* (up through the air: off a ramp, say, dearly) */+ if (!air_up) continue;+ cost = air_up;+ } else cost = wi == 3 && w == 3 ? vcost : 2;+ } else if (D[k][1] == 1 && wi == 3 && w == 3) cost = vcost;else if (w >= 2 && wi >= 2) cost = 2;else if (D[k][1] == 1) cost = 3; /* down */else cost = 6;@@ -382,7 +389,7 @@ static unsigned pilot(const car_t *c, int L, float vmax) {/* ------------------------------------------------------------------ the search */#define SLOT 10 /* ms a key is held, at least */#define STEP 10 /* slots a try lasts */-#define MAXN 4000000+#define MAXN 8000000typedef struct {int32_t parent;uint8_t keys[STEP];@@ -414,7 +421,23 @@ static void act(car_t *c, const action_t *a, uint8_t *keys) {}/* the archive */-#define MAXC 8000+#define MAXC 30000+#define TEMP 25.0+static double wcum[MAXC];+#define HASH 65536+static int32_t slot[HASH]; /* cell + 1 by key */+static int wn;+static double pt_expd(double x) {+ /* e^x for x <= 0, near enough */+ double r = 1.0 + x / 1024.0;+ for (int i = 0; i < 10; i++) r *= r;+ return r;+}+static double sqrt_d(double x) {+ double r = x > 1.0 ? x : 1.0;+ for (int i = 0; i < 30; i++) r = 0.5 * (r + x / r);+ return r;+}typedef struct {car_t car;int32_t node;@@ -525,48 +548,45 @@ static bool route(int t, FILE *out) {nodes[0].parent = -1;int ncell = 0;static cell_t cells[MAXC];+ memset(slot, 0, sizeof slot);cells[ncell++] = (cell_t){start, 0, 0, cell_key(&start), 0};+ {+ uint32_t h = (cells[0].key * 2654435761u) & (HASH - 1);+ slot[h] = 1;+ }int found = -1;uint32_t seed = 12345u + (uint32_t)t * 7919u;int tries = getenv("TRIES") ? atoi(getenv("TRIES")) : 200000;int best = 0;for (int it = 0; it < tries && found < 0 && nnodes + 64 < MAXN; it++) {- /* the car to go on from: one of the 24 furthest, weighted by how little it was tried; now and then any */- int pick;- if (lcg(&seed) % 10 == 0) pick = (int)(lcg(&seed) % (uint32_t)ncell);- else {- static int top[24];- int nt = 0;+ /* the car to go on from: weighted by how far on it is (a factor e for each TEMP metres) over the root of how+ often it was tried, so that when the front gets nowhere the cars behind it get their turn */+ if (it % 64 == 0) {+ double top = -1e30;+ for (int i = 0; i < ncell; i++)+ if (progress(&cells[i]) > top) top = progress(&cells[i]);+ double acc = 0.0;for (int i = 0; i < ncell; i++) {- int j;- if (nt < 24) j = nt++;- else if (progress(&cells[i]) > progress(&cells[top[23]])) j = 23;- else continue;- top[j] = i;- while (j > 0 && progress(&cells[top[j]]) > progress(&cells[top[j - 1]])) {- int tmp = top[j];- top[j] = top[j - 1], top[j - 1] = tmp;- j--;- }- }- double wsum = 0.0;- for (int k = 0; k < nt; k++) wsum += 1.0 / (1.0 + cells[top[k]].tries);- double r = (double)(lcg(&seed) % 1000000u) / 1000000.0 * wsum;- pick = top[nt - 1];- for (int k = 0; k < nt; k++) {- r -= 1.0 / (1.0 + cells[top[k]].tries);- if (r <= 0.0) {- pick = top[k];- break;- }+ double x = (progress(&cells[i]) - top) / TEMP;+ acc += x < -30.0 ? 0.0 : pt_expd(x) / sqrt_d(1.0 + cells[i].tries);+ wcum[i] = acc;}+ wn = ncell;+ }+ double r = (double)(lcg(&seed) % 1000000u) / 1000000.0 * wcum[wn - 1];+ int lo = 0, hi = wn - 1;+ while (lo < hi) {+ int mid = (lo + hi) / 2;+ if (wcum[mid] < r) lo = mid + 1;+ else hi = mid;}+ int pick = lo;cells[pick].tries++;static car_t c;c = cells[pick].car;car_cache_rebuild(&c);int node = cells[pick].node;- int steps = 5 + (int)(lcg(&seed) % 26u), a = (int)(lcg(&seed) % (uint32_t)NACT);+ int steps = 5 + (int)(lcg(&seed) % 26u), a = (int)(lcg(&seed) % (uint32_t)NACT), lost = 0;for (int s = 0; s < steps && !c.finish; s++) {if (lcg(&seed) % 10 >= 6) {/* (the driver more often than held keys) */@@ -584,15 +604,21 @@ static bool route(int t, FILE *out) {break;}float d = dist_of(&c);- if (d >= 1e5f || c.pos.y < -3.0f) break; /* lost */+ if (c.pos.y < -3.0f) break;+ if (d >= 1e5f) {+ /* (off the map, high in the air say: on, but not kept) */+ if (++lost > 30) break;+ continue;+ }+ lost = 0;uint32_t key = cell_key(&c);- int k = -1;- for (int i = 0; i < ncell; i++)- if (cells[i].key == key) {- k = i;- break;- }- if (k < 0 && ncell < MAXC) k = ncell++, cells[k].tries = 0, cells[k].key = key, cells[k].frames = 0xFFFFFFFFu;+ uint32_t h = (key * 2654435761u) & (HASH - 1);+ while (slot[h] && cells[slot[h] - 1].key != key) h = (h + 1) & (HASH - 1);+ int k = slot[h] ? slot[h] - 1 : -1;+ if (k < 0 && ncell < MAXC) {+ k = ncell++, cells[k].tries = 0, cells[k].key = key, cells[k].frames = 0xFFFFFFFFu;+ slot[h] = k + 1;+ }if (k >= 0 && c.frames < cells[k].frames) {cells[k].car = c, cells[k].node = node, cells[k].frames = c.frames;if (progress(&cells[k]) > progress(&cells[best])) best = k;@@ -647,6 +673,8 @@ static bool route(int t, FILE *out) {}int main(int argc, char **argv) {+ if (getenv("VC")) vcost = atoi(getenv("VC"));+ if (getenv("AU")) air_up = atoi(getenv("AU"));int list[PT_NTRACKS], n = 0;for (int i = 1; i < argc; i++) list[n++] = atoi(argv[i]);if (!n)diff --git a/games/polytrack/tools/armcheck.py b/games/polytrack/tools/armcheck.pynew file mode 100644index 00000000..ab941305--- /dev/null+++ b/games/polytrack/tools/armcheck.py@@ -0,0 +1,37 @@+#!/usr/bin/env python3+"""The official tracks' runs on the calculator's processor (tools/emu.py, the Cortex-M7 the game runs on):+armcheck.py build/armcheck.nwa [TRACKS] checks that each finishes at the frame and with the hash in tests/routes.h,+as on the computers. (Slow: a few minutes a track.)"""+import os+import re+import struct+import sys++HERE = os.path.dirname(os.path.abspath(__file__))+sys.path.insert(0, os.path.join(HERE, "..", "..", "..", "tools"))+import emu # noqa: E402+++def main():+ nwa = sys.argv[1]+ tracks = int(sys.argv[2]) if len(sys.argv) > 2 else 17+ src = open(os.path.join(HERE, "..", "tests", "routes.h")).read()+ ms = [int(x) for x in re.search(r"pt_route_ms\[17\] = \{([^}]*)\}", src).group(1).split(",")]+ hs = [int(x, 16) for x in re.search(r"pt_route_hash\[17\] = \{([^}]*)\}", src).group(1).replace("\n", "").split(",")]+ c = emu.Calculator(nwa)+ c.uc.mem_write(c.symbols["check_tracks"], struct.pack("<I", tracks))+ c.run(60 * 60 * 1000)+ out = struct.unpack(f"<{2 * 17}I", bytes(c.uc.mem_read(c.symbols["check_out"], 4 * 2 * 17)))+ done, = struct.unpack("<I", bytes(c.uc.mem_read(c.symbols["check_done"], 4)))+ bad = 0+ for t in range(tracks):+ ok = out[2 * t] == ms[t] and out[2 * t + 1] == hs[t]+ bad += not ok+ print(f"track {t + 1:2}: {out[2 * t]:6} ms, hash {out[2 * t + 1]:08x}" + ("" if ok else+ f" NOT the computers' ({ms[t]} ms, {hs[t]:08x})"))+ print(f"{c.insns / 1e9:.1f} G instructions" + ("" if done else ", NOT done"))+ sys.exit(1 if bad or not done else 0)+++if __name__ == "__main__":+ main()diff --git a/games/polytrack/tools/logo.py b/games/polytrack/tools/logo.pynew file mode 100644index 00000000..13ca63ff--- /dev/null+++ b/games/polytrack/tools/logo.py@@ -0,0 +1,234 @@+#!/usr/bin/env python3+"""PolyTrack's logo and icon from Kodub's web build (images/logo.svg, images/icon.svg):+logo.py WEB writes src/logo.h (the title's logo) and src/icon.png (the app's icon).++The SVGs are read as data: their groups' transforms, rectangles and straight-edged paths (M L H V Z, the only+commands they have), filled (non-zero winding) and outlined as their styles say, sampled 4 x 4 times a pixel.+The logo keeps 4 bits a pixel: the top one says which colour (the letters' lavender or the outline's dark blue),+the other three how much of the pixel is covered."""+import os+import re+import sys+import xml.etree.ElementTree as ET++import numpy as np+from PIL import Image++HERE = os.path.dirname(os.path.abspath(__file__))+SS = 4+++def mat_mul(a, b):+ """2D affine matrices (a, b, c, d, e, f) as in SVG: x' = a x + c y + e, y' = b x + d y + f"""+ return (a[0] * b[0] + a[2] * b[1], a[1] * b[0] + a[3] * b[1], a[0] * b[2] + a[2] * b[3],+ a[1] * b[2] + a[3] * b[3], a[0] * b[4] + a[2] * b[5] + a[4], a[1] * b[4] + a[3] * b[5] + a[5])+++def parse_transform(s):+ m = (1, 0, 0, 1, 0, 0)+ for name, args in re.findall(r"(\w+)\(([^)]*)\)", s or ""):+ v = [float(x) for x in re.split(r"[ ,]+", args.strip())]+ if name == "matrix":+ t = tuple(v)+ elif name == "scale":+ t = (v[0], 0, 0, v[1] if len(v) > 1 else v[0], 0, 0)+ elif name == "translate":+ t = (1, 0, 0, 1, v[0], v[1] if len(v) > 1 else 0)+ else:+ raise ValueError("transform " + name)+ m = mat_mul(m, t)+ return m+++def style_of(el, inherited):+ st = dict(inherited)+ st.pop("opacity", None)+ for k in ("fill", "stroke", "stroke-width", "fill-rule"):+ if el.get(k):+ st[k] = el.get(k)+ for kv in (el.get("style") or "").split(";"):+ if ":" in kv:+ k, v = kv.split(":", 1)+ st[k.strip()] = v.strip()+ return st+++def path_polys(d):+ toks = re.findall(r"[MmLlHhVvZz]|-?(?:\d+\.?\d*|\.\d+)(?:[eE][-+]?\d+)?", d)+ polys, cur, x, y, start, cmd, i = [], [], 0.0, 0.0, (0.0, 0.0), None, 0+ while i < len(toks):+ t = toks[i]+ if re.match(r"[A-Za-z]", t):+ cmd = t+ i += 1+ if cmd in "Zz":+ if cur:+ polys.append(cur)+ cur, (x, y) = [], start+ continue+ if cmd in "Mm":+ nx, ny = float(toks[i]), float(toks[i + 1])+ i += 2+ if cmd == "m":+ nx, ny = x + nx, y + ny+ if cur:+ polys.append(cur)+ x, y = nx, ny+ cur, start = [(x, y)], (x, y)+ cmd = "l" if cmd == "m" else "L"+ elif cmd in "Ll":+ nx, ny = float(toks[i]), float(toks[i + 1])+ i += 2+ x, y = (x + nx, y + ny) if cmd == "l" else (nx, ny)+ cur.append((x, y))+ elif cmd in "Hh":+ v = float(toks[i])+ i += 1+ x = x + v if cmd == "h" else v+ cur.append((x, y))+ elif cmd in "Vv":+ v = float(toks[i])+ i += 1+ y = y + v if cmd == "v" else v+ cur.append((x, y))+ else:+ raise ValueError("path command " + str(cmd))+ if cur:+ polys.append(cur)+ return polys+++def collect(el, m, st, out):+ tag = el.tag.split("}")[-1]+ m = mat_mul(m, parse_transform(el.get("transform")))+ st = style_of(el, st)+ if tag == "rect":+ x, y = float(el.get("x", 0)), float(el.get("y", 0))+ w, h = float(el.get("width")), float(el.get("height"))+ out.append(([[(x, y), (x + w, y), (x + w, y + h), (x, y + h)]], m, st))+ elif tag == "path":+ out.append((path_polys(el.get("d")), m, st))+ for ch in el:+ if ch.tag.split("}")[-1] in ("g", "rect", "path"):+ collect(ch, m, st, out)+++def hexc(s):+ s = s.strip().lstrip("#")+ if len(s) == 3:+ s = "".join(c * 2 for c in s)+ return np.array([int(s[i:i + 2], 16) for i in (0, 2, 4)], float) / 255.0+++def fill_mask(polys, px, py):+ """non-zero winding of the sample points (px, py) round the closed polygons"""+ wind = np.zeros(px.shape, np.int32)+ for poly in polys:+ n = len(poly)+ for k in range(n):+ (x0, y0), (x1, y1) = poly[k], poly[(k + 1) % n]+ if y0 == y1:+ continue+ up = (y0 <= py) & (py < y1)+ down = (y1 <= py) & (py < y0)+ xc = x0 + (py - y0) * (x1 - x0) / (y1 - y0)+ right = xc > px+ wind += np.where(up & right, 1, 0) - np.where(down & right, 1, 0)+ return wind != 0+++def stroke_mask(polys, px, py, w):+ m = np.zeros(px.shape, bool)+ r2 = (w / 2) ** 2+ for poly in polys:+ n = len(poly)+ for k in range(n):+ (x0, y0), (x1, y1) = poly[k], poly[(k + 1) % n]+ dx, dy = x1 - x0, y1 - y0+ l2 = dx * dx + dy * dy+ t = np.clip(((px - x0) * dx + (py - y0) * dy) / l2, 0, 1) if l2 else 0+ ex, ey = x0 + t * dx - px, y0 + t * dy - py+ m |= ex * ex + ey * ey <= r2+ return m+++def render(path, width, height=None):+ """the SVG as a (height, width, 4) array, colours and alpha 0..1"""+ root = ET.parse(path).getroot()+ vb = [float(v) for v in root.get("viewBox").split()]+ if height is None:+ height = int(round(vb[3] * width / vb[2]))+ sx, sy = width / vb[2], height / vb[3]+ W, H = width * SS, height * SS+ ys, xs = np.mgrid[0:H, 0:W]+ px = (xs + 0.5) / SS / sx + vb[0]+ py = (ys + 0.5) / SS / sy + vb[1]+ shapes = []+ for ch in root:+ if ch.tag.split("}")[-1] in ("g", "rect", "path"):+ collect(ch, (1, 0, 0, 1, 0, 0), {}, shapes)+ rgb, alpha = np.zeros((H, W, 3)), np.zeros((H, W))+ for polys, m, st in shapes:+ pts = [[(m[0] * x + m[2] * y + m[4], m[1] * x + m[3] * y + m[5]) for x, y in poly] for poly in polys]+ scale = abs(m[0] * m[3] - m[1] * m[2]) ** 0.5+ for kind in ("fill", "stroke"):+ colour = st.get(kind, "#000000" if kind == "fill" else "none")+ if colour == "none":+ continue+ if kind == "fill":+ mask = fill_mask(pts, px, py)+ else:+ mask = stroke_mask(pts, px, py, float(st.get("stroke-width", "1").replace("px", "")) * scale)+ c = hexc(colour)+ rgb[mask] = c+ alpha[mask] = 1.0+ # down to pixels: colours weighted by coverage+ def box(a):+ return a.reshape(height, SS, width, SS, *a.shape[2:]).mean(axis=(1, 3))+ a = box(alpha)+ c = box(rgb * alpha[..., None])+ c = np.where(a[..., None] > 0, c / np.maximum(a[..., None], 1e-9), 0)+ return np.concatenate([c, a[..., None]], axis=2)+++def write_logo(path, img):+ h, w = img.shape[:2]+ lav, dark = hexc("#b3c1ff"), hexc("#112052")+ px = []+ for y in range(h):+ for x in range(w):+ c, a = img[y, x, :3], img[y, x, 3]+ level = int(a * 7 + 0.5)+ is_dark = np.sum((c - dark) ** 2) < np.sum((c - lav) ** 2)+ px.append(0 if level == 0 else (level | (8 if is_dark else 0)))+ data = bytes(px[i] | (px[i + 1] << 4 if i + 1 < len(px) else 0) for i in range(0, len(px), 2))+ lines = ["/* PolyTrack's logo, from images/logo.svg of Kodub's web build (tools/logo.py). 4 bits a pixel, two to a",+ " * byte (the first in the low half): bit 3 the dark blue outline (else the lavender), bits 0-2 how much it",+ " * covers (0 none, 7 all). Do not edit. */",+ "#ifndef PT_LOGO_HEADER", "#define PT_LOGO_HEADER", "#include <stdint.h>",+ f"#define PT_LOGO_W {w}", f"#define PT_LOGO_H {h}",+ "static const uint8_t pt_logo[] = {"]+ for i in range(0, len(data), 24):+ lines.append(" " + ", ".join(str(b) for b in data[i:i + 24]) + ",")+ lines += ["};", "#endif", ""]+ open(path, "w").write("\n".join(lines))+++def main():+ web = sys.argv[1]+ logo = render(os.path.join(web, "images", "logo.svg"), 232)+ write_logo(os.path.join(HERE, "..", "src", "logo.h"), logo)+ # the icon: PolyTrack's own, its P on dark blue, at the calculator's 55 x 56+ icon = render(os.path.join(web, "images", "icon.svg"), 55, 56)+ Image.fromarray((np.clip(icon, 0, 1) * 255 + 0.5).astype(np.uint8), "RGBA").save(+ os.path.join(HERE, "..", "src", "icon.png"))+ if os.environ.get("LOGO_PNG"):+ bg = np.array([90, 140, 200], float) / 255+ out = logo[..., :3] * logo[..., 3:] + bg * (1 - logo[..., 3:])+ Image.fromarray((out * 255).astype(np.uint8)).resize((logo.shape[1] * 3, logo.shape[0] * 3),+ Image.NEAREST).save(os.environ["LOGO_PNG"])+ print(f"logo: {logo.shape[1]} x {logo.shape[0]}, icon: 55 x 56")+++if __name__ == "__main__":+ main()diff --git a/tests/test_games.py b/tests/test_games.pyindex 782f44e6..4caa8da6 100644--- a/tests/test_games.py+++ b/tests/test_games.py@@ -263,10 +263,11 @@ GAMES = {"angrybirds": ("AngryBirds.nwa", "angrybirds.sav",presses((1500, "ok"), (2200, "ok"), (2900, "ok"), (3600, "ok"), (4300, "ok"), (5500, "ok")), 9000,presses((1500, "ok"), (2200, "ok"), (2900, "ok"), (3600, "ok")), 6000),- # the title's Play, Start race, the first-run guide's OK, then the race: flat out, Back to pause, Home. Next time,- # from the copy, Continue: the race again (after a 3, 2, 1), quit with On/Off- "polygt3d": ("PolyGT3D.nwa", "polygt3d.sav", presses((1500, "ok"), (2200, "ok"), (2900, "ok"), (9500, "back"))- + [(3500, 9000, K["up"])], 11000, presses((1500, "ok")) + [(3500, 6500, K["up"])], 7500),+ # the title's Play, the first track, the first-run guide's three pages, then the race: flat out, Back to pause,+ # Home. Next time, from the copy, Play and the track straight into the race (the guide was read), quit with On/Off+ "polytrack": ("PolyTrack.nwa", "polytrack.sav",+ presses((1500, "ok"), (2200, "ok"), (2900, "ok"), (3600, "ok"), (4300, "ok"), (9500, "back"))+ + [(5000, 9000, K["up"])], 11000, presses((1500, "ok"), (2200, "ok")) + [(3000, 6500, K["up"])], 7500),# a level, its message, then play; then back to the level select"portal": ("PortalReturns.nwa", "portal.sav",presses((1500, "ok"), (2500, "ok"), (3500, "ok")) + every(4000, 7000, 400, "right", 300), 8000,@@ -334,7 +335,17 @@ COPIES = {"championisland": "champion_saves.py", "numblocks": "numblocks_saves.p"donkeykong": "donkeykong_saves.py", "dune": "dune_saves.py", "monkeymart": "monkeymart_saves.py","tombofthemask": "tombofthemask_saves.py", "uno": "uno_saves.py","fnf": "fnf_saves.py", "turborush": "turborush_saves.py",- "angrybirds": "angrybirds_saves.py", "polygt3d": "polygt3d_saves.py"}+ "angrybirds": "angrybirds_saves.py", "polytrack": "polytrack_saves.py"}+++def polytrack_ok(v):+ """PolyTrack's save: "PTK1", version 1, 768 bytes, an FNV-1a sum of the rest at the end"""+ if len(v) != 768 or v[:4] != b"PTK1" or struct.unpack_from("<HH", v, 4) != (1, 768):+ return False+ h = 2166136261+ for b in v[:764]:+ h = ((h ^ b) * 16777619) & 0xFFFFFFFF+ return struct.unpack_from("<I", v, 764)[0] == hdef dk_frames(v):@@ -499,12 +510,10 @@ CHECKS = {and struct.unpack_from("<H", v, 3012)[0] == 0 and struct.unpack_from("<I", v, 3024)[0] >= 2,lambda v: len(v) == 3032 and v[:4] == b"ABS1" and v[3014] == 1and struct.unpack_from("<I", v, 3024)[0] >= 4),- # "PGT1", version 1, its size (496): the guide read (58), a race kept (64) and going (phase at 75), its clock (96)- # running; after the reinstall, from the copy, the same race goes on- "polygt3d": (lambda v: len(v) == 496 and v[:4] == b"PGT1" and v[4] == 1 and v[58] == 1 and v[64] == 1 and v[75] == 1- and struct.unpack_from("<I", v, 96)[0] >= 1000,- lambda v: len(v) == 496 and v[:4] == b"PGT1" and v[64] == 1 and v[75] == 1- and struct.unpack_from("<I", v, 96)[0] >= 5000),+ # "PTK1", version 1, its size (768): the guide read (763), Summer 1 chosen (760), its checksum good (FNV-1a at 764);+ # after the reinstall, from the copy, the same+ "polytrack": (lambda v: polytrack_ok(v) and v[763] == 1 and v[760] == 0,+ lambda v: polytrack_ok(v) and v[763] == 1),"breakout": (lambda v: len(v) == 12 and v[:2] == b"B\2" and v[4] == 1 and struct.unpack_from("<I", v, 8)[0] >= 10,lambda v: v[4] == 0 and struct.unpack_from("<I", v, 8)[0] >= 1), # best kept, shake off# Air Hockey and the easy computer chosen; then the normal computer and Tanks, the tallies of the six games keptdiff --git a/tools/release.py b/tools/release.pyindex 75b9f177..8e8398c4 100644--- a/tools/release.py+++ b/tools/release.py@@ -52,7 +52,7 @@ ALONE = {"fnf": ("Friday Night Funkin'", "the Tutorial, Weeks 1 to 7, Weekend 1 and LE SSERAFIM, in story mode and freeplay"),"turborush": ("Turbo Rush", "an arcade racer by Bobydeluxe: six circuits, a Grand Prix, single races and Free Ride"),"angrybirds": ("Angry Birds", "the 429 levels of the Chrome edition, its seven birds and the Mighty Eagle"),- "polygt3d": ("PolyGT 3D", "a low-poly 3D racer by Boris-TH: three circuits against seven rivals, and the endless road"),+ "polytrack": ("PolyTrack", "Kodub's low-poly time trial racer: its 17 tracks, loops, wall rides and jumps, against your ghost"),}VARIANTS = [("NumPlay-Invisible.nwa", "The same app, hidden: a blank icon with no name"),