carlok — zsh — 88×30
Carlo Perassi

$ grep -l games _posts/*.md

#games

23 posts tagged games. Back to the full blog.

home.sh projects.sh blog.sh writing.sh math.sh cv.sh

sunslide: if you can see an awake bat it can catch you, hot-pink bubbles with a rare prism tier, and no shader compiles mid-play

A playtest pass on sunslide fixed what players reported without changing the rules they were misreading. “Bats don’t always sleep in sunshine” was true by design — only a bat whose island is home sleeps, daylight merely slows them — but daylit bats were drawn with droopy eyelids, so they looked asleep and bit anyway; waiting bats are now hidden, their roost shows a dashed ring in the bat’s colour that pulses faster as it gets ready with a hollow dot on the minimap, and a puff and a sound play when a bat goes live. Contact is measured on the sphere by great-circle angle rather than the old flat-grid radius, which caught from a gap at the equator and let bodies overlap without a catch near the poles, and a shield ring after a respawn, sector start or sinkhole holds bats off — a live bat that touches a shielded Pip bounces back (#51, dbb08c0).

carlok/sunslide was forked by sigco3111, for a Korean translation

carlok/sunslide was forked by sigco3111 on 17 November as sunslide-ko — “Sunslide 한국어판 (Korean translation of carlok/sunslide, Apache-2.0)”. The login is not a passer-by: it runs a standing programme of Korean versions of browser games, 436 public repositories including cadle-ko, gitvana-ko, plinkfx and harbor-gp-ko, each a localisation of somebody else’s game, alongside its own three.js work in bounce-knight, windhill-rpg and protein-universe.

sunslide: the tutorial waits for PLAY, the menu holds the game, a paused game stops rendering at 60 fps — and the game speaks Italian and Korean

First contact with sunslide was the weakest part of it: tutorial cards opened on top of the title screen, where two stacked backdrops made the planet read as black, and the pointer or keyboard could walk through the menu into the game. The tutorial cards now open on the first PLAY with the live game held behind them, a backdrop click closes a card without marking it seen for good, and one shared focus-trap helper serves the menu and the tutorial with focus returned or released at the end; setUiHold freezes the simulation and puts the loop to sleep without showing the pause panel, so bats no longer attack while Settings is open (b628aca). The title screen became a solid card with PLAY under the tagline and the rules in a <details> disclosure, justify-content: safe center lets short phone screens scroll to the top, and the toolbar hides pause and view on title, game-over and win screens.

sunslide: a Pac-Man bubble chase on a 15-puzzle of sliding islands, wrapped around a tiny planet

sunslide went public on 14 November, Apache-2.0 and playable at carlok.github.io/sunslide: you are Pip the bubble frog on a small planet whose surface is a 15-puzzle of meadow islands — one empty meadow, islands that slide when sunlit, and a planet you can pull back to a map view to pick a waypoint. Movement is swipe, arrows/WASD or a gamepad stick, sliding is tap, click or LB/RB plus A, and phones vibrate while controllers rumble on the same events (README).

sunslide: the dark band down the planet was polar decor casting a pole-wide shadow, not the tiles

Playing sunslide with shadows on Medium or High and a low sun behind the planet put a huge dark band from the north pole down the face. The measurement is what identified it: at a fixed grazing-sun pose, about 50 % of the centre-column pixels fell below a luminance threshold, the share dropped to 1 % with polarDecor’s castShadow off, and stayed at 38 % with the tile wall and slab batches’ casting disabled — so the north-cap instanced trees and rocks were the caster and the tile shadow pass was legitimate (#44, 611b550).

guess-the-move goes live on GitHub Pages: Lighthouse from 63 to 92, three browsers in CI, and a link-preview card

The four days after guess-the-move went public went into making it publishable. Lighthouse on the real build scored 63 and now scores 92, with a budget check alongside it (#20, 8e1bedd); the browser specs run in Firefox and WebKit as well as Chrome (#21, 8033601); the comparison table orders its rows from best to worst with Stockfish first (#23, ef7f823); and a first play no longer waits for the whole dataset — a 24-position sample of about 20 KB gzipped is fetched first and the full file swaps in behind it (#24, 07cd9e7).

guess-the-move is public: a chess trainer that shows what Stockfish, a real player and Maia would do

guess-the-move went public on 7 November and plays at carlok.github.io/guess-the-move: a position comes up, you guess a move, and the app reveals three references and how far your guess is from each on a normalized scale — Stockfish’s best move, the move a real player of known rating actually played, and Maia’s move at that rating. The shipped set is 2,000 real positions from Lichess standard rated games of September 2026 (CC0), players rated 1200 to 2000, every legal move evaluated by Stockfish 19 at 400,000 nodes and stored with Maia-3 move probabilities; no player names are stored, but each position keeps its Lichess game link so a game can be taken out on request.

red-ink sprint 30: the ambience was four loops of filtered noise, so now it is a mains hum and a crowd that answers blows

The ambience in red-ink was four looping noise sources — a low-passed room, two band-passed crowd murmurs, wind in bout 4 — with the crowd swelling on every hit, and filtered noise has no pitch or syllables, so it read as hiss. Sprint 30 replaced it: the room is a mains hum built from a fundamental and two partials, each two sine oscillators a few tenths of a hertz apart at base frequencies of 50, 41 and 56 Hz depending on the place, every bed event is now tonal, and the crowd is crowdReact, four to nine sawtooth voices through two vowel formants that answer a blow — 60 percent for a heavy, 30 for a dodge, 15 for a jab, 10 for a block, always for the knockout — at least 0.9 s apart, with nothing playing between blows (4a438a4, #29).

red-ink sprint 29: a training room with a dummy and a move-cost strip, medals with edges, and a limiter the mix actually needed

red-ink built ten backlog items in sprint 29 and moved the regression from 61 tests to 70. The new training room puts a dummy in front of a strip of move costs — jab 10, heavy 24, dodge 16 — that strikes out what the stamina on hand cannot afford, with a guard switch on a button and T; a test drives 240 frames of heavies and requires the dummy never to attack, move or die (#26). Medals got real edges — Untouched, Sharp at 85 percent, Quick at 26 / 31 / 40 / 46 / 38 / 39 seconds, no medal from Practice or the second pass, save version 3 — and the alert mark that warns of an incoming blow got a dark rim after measurement found it at 1.6 to 1 against bout 4’s pale floor, which the rim moved to 2.6 (f238b34).

guess-the-move before release: every legal move graded Brilliant to Blunder, a Leitner queue for your mistakes, and a board that fills the window

guess-the-move stopped grading only the move you guessed and started grading the position. A new classifier tiers every legal move relative to the best — cost bands at 0.1, 2, 5, 10 and 20, Great reserved for the only move, Brilliant for a best-or-nearly-best sacrifice — with a badge, a distribution bar and the full move list, the tier saved with each guess and charted on the stats page; the attack detector behind the sacrifice test was checked against python-chess on 68 positions and the thresholds tied to the dataset pipeline’s own tags (621394a). The trainer also learned to remember: a Leitner queue in positions already played, a Retry chip and a stats card (4d24798), openings with settings in the menu, streaks and a daily goal (bf62a99), a training session with a report card (89df2f2), and deep links that carry a position or an answer as #p=<id>[&m=<move>] (4acc151).

red-ink sprint 28: foes read a string of jabs, and the bout table is retuned to hold

A jab in red-ink lands 0.10 s after it starts, and five of the six foes wait cfg.react — 0.24 to 0.445 s at Normal — before they answer anything, so they could never answer one: about 1,500 to 2,200 jabs per 100 fights went through against Dag, Pike, Voss, Chen and Halvorsen with none blocked or dodged. balance-run can now say that out loud: strike() counts the player’s jabs by how the foe received them (jabHit, jabBlock, jabDodge in G.log) and each row prints jabAnswered, the share blocked or dodged. Baseline, 200 fights per bout on seed 1: 30.4 / 0 / 0 / 0 / 0 / 0 percent — only Reyes, whose 0.08 s reaction is under a jab’s 0.20 s, ever answers one (2147429).

guess-the-move before release: an installable offline page, and a difficulty that follows your play

Before guess-the-move went public the page became installable and offline-capable: a web manifest and icon, a service worker that make dist stamps with the build id and the exact URLs of that build, one cache per build, page and dataset network-first, and a new build waiting behind a “Reload” bar instead of replacing the page under you. The web container now copies dist/ built by make web-image, replacing the hand-kept file list whose omission caused the earlier blank-board bug, and the repository got its open-source furniture — SPDX lines on every source file enforced by a test, CONTRIBUTING, SECURITY, issue forms, a PR template, and a “Report a problem with this position” link on the answer card (#1, d962b0a).

red-ink sprint 27: a crash card you can copy from, and a save that survives a bad value and a second tab

The sprint 27 branch of red-ink catches what used to freeze the page in silence: the first uncaught error or rejected promise pauses a fight and, 300 ms later, puts up the full-screen card with “Something broke” and a report — Babylon version, user agent, state, bout, language, quality level, viewport, the last five playtest-log entries, the error and its first stack lines — plus Reload and Copy details, with “Keep playing” offered only while frames still arrive; resource load errors, ResizeObserver noise, extension scripts and cross-origin “Script error.” are ignored, and nothing is sent anywhere (c904b72).

red-ink sprint 26: a second pass through the six bouts, WASD by physical key, and a save that admits when it failed

Once all six bouts are won, red-ink’s title card offers “Second pass: bout N”: the same six fighters at the player’s own difficulty, each with one change — Reyes iron jaw at 1.4× health, Dag quick hands with reaction 0.8× and cooldown 0.85×, Pike and Voss heavier hands at 1.1× and 1.25× damage, Chen relentless at 0.8× cooldown, Halvorsen iron jaw at 1.06× health — with the HUD reading “BOUT n / 6 · II”, wins counting only in progress.pass2, and the save moving to version 2 with a migrate step that adds the field (e2a32bf). Measured with the new balance-run --pass2, 200 bot meets on Normal and seed 1: the first pass is identical at 90.5 / 67.5 / 44.0 / 36.0 / 30.0 / 22.0 while the second reads 71.5 / 52.0 / 16.5 / 16.0 / 12.0 / 11.5, and the plan’s Hard multipliers had to be dropped — Hard alone takes the bot to 0 against Pike and Halvorsen — as did block and dodge changes, which did not move the bot at all.

red-ink sprint 25: practice mode, an exportable playtest log, and an Italian pass that found English in the HUD

red-ink gained a Practice link on the title card, shown once a bout has been won: it opens the opponent’s dossier with Another opponent and Back, a practice fight starts at full health and grants no wins, unlocks or saved progress, and its card says so and offers Fight again or Choose opponent (80d568d). Every finished bout now writes one entry to a playtest log — result, time, hits taken, blocks, dodges, punches thrown and landed, difficulty, who controlled it, block mode and the practice flag — keeping the newest 200 in browser storage, with Export playtest log and a two-tap Clear beside it in the title settings; the export is a JSON download, the clipboard if that fails, and nothing is sent anywhere (a84e6df).

red-ink sprint 24: a voice from the browser, autoplay, and punches thrown and landed on the result cards

The robot voice of sprint 23 is now the last fallback. Each word takes the first source that works: a clip listed in assets/voice/voice.js, then the browser’s own speech engine — a male voice of the game’s language, pitch 0.7, macOS novelty voices like Bahh and Fred skipped — then the formant synthesiser (b93cdd8). Nothing is bundled because Apple’s licence keeps the macOS voices to personal, non-commercial use and the Piper voices found were non-commercial or unclear, while the repo’s audio is claimed CC0; a Voice checkbox in the title settings and the pause menu turns it off, a voice list offers a Hear button, FIGHT is spoken about 0.2 s before the banner, and the banners themselves are localised (COMBATTI!, A TERRA). Regression stands at 31/31 with a stubbed speech engine; on this Mac the real list picks Daniel for English and Eddy for Italian, and how that sounds on an actual device is not something a headless probe can measure.

red-ink sprint 23: 80s synth timbres, three result themes, and a formant voice that says FIGHT

The sequencer in red-ink was rebuilt in 80s voices: a detuned-saw lead with chorus and a dotted delay, a gated-reverb snare cut at 180 ms, claps and toms, an octave-pulsing bass with a sub, a chorused pad under a sidechain pump, open hats from two looping noise chains and 16th arpeggios over an i–VI–III–VII line (9ceb543). Six places keep their own tempo and mode — E minor 84 bpm, A minor 100, D dorian 110, C minor 92 with a DX bell, F minor 118 with a march snare, G minor 126 — and the phrygian and harmonic modes are gone. The audio probe measures the change: the snare is −7.7 dB at 100 ms and −64 dB at 300 ms where it used to be a click, the title card sits at −27.7 dBFS rms (was −26.1) and the tense moment at −25.3 (was −23.9), while the nodes created per 10 s in that moment went from 162 to 285 in The Sump, 375 at The Blind Map and 471 at The Reconciler — over the plan’s limit of 250, since every note costs a few nodes, though the hats now cost none.

red-ink is public: Sublevel Three, a warehouse fighting game in one HTML file

red-ink went public on 1 November and plays at carlok.github.io/red-ink: Sublevel Three, a browser fighting game where you audit pallet counts on the night shift at Halvorsen Freight until Pike hands you a keycard and points at a door that is not on the floor plan. Six named bouts happen on a taped circle in a warehouse — Reyes teaches, Dag answers a miss with a marked heavy, Pike repeats your last three punches — with a hub between fights, a loading-dock beat, and EN/IT card copy drawn from a single STR table capped at 55 words per card (#1, daea07a).

storygen, eclipse-3d-sim, collective-starship-game, agility-trainer and solids-hunter: one vitest advisory, five repositories

The same test-runner advisory reached five of the game repositories, and each took vitest 4.1.12 for it: GHSA-xp26-3454-mjgp, a Windows backslash traversal that bypasses @vitest/mocker’s redirect allow-list. storygen bumped vitest (#7, 6a9e3a5) and then vite to 6.4.5 (#9, a2ad1a5); eclipse-3d-sim did both (#3, #4); collective-starship-game took vitest 4.1.12 together with the transitive packages behind it (#7, e7c157c).

neon-bumper-cars and collective-starship-game: proxy-addr IP spoofing, a source-map-js denial of service, and rate limiting from a CodeQL alert

Two of the browser games picked up security fixes. neon-bumper-cars moves its transitive proxy-addr from 2.0.7 to 2.0.8, which is GHSA-jqcg-44mw-7w3h / CVE-2026-90711 — IP spoofing through an IPv4-mapped IPv6 trust subnet, reached through express — shipped as Dependabot’s bump and then a hand-checked patch that confirms the root lockfile resolves to the patched version (d3498db). collective-starship-game takes source-map-js 1.2.2 for the high-severity denial of service in GHSA-68fv-2mgg-jv7q (CVE-2026-93749), and the same pull request answers CodeQL’s js/missing-rate-limiting on the SPA fallback route — sendFile with no limit in front of it — by putting express-rate-limit at 600 requests per minute per IP across the whole Express app, ahead of the static and Vite handlers (8d4ed28, #6).

solids-hunter: pre-release polish on the boolean-rule hunt

solids-hunter, the first-person Babylon.js game where you hunt solids defined by boolean rules, is in pre-release polish: full gamepad menu control, a working HUD speaker, spawn facing derived from the room, and rule complexity that ramps with each clear. A pre-release review surfaced five launch blockers, now fixed, gameplay screenshots landed in the README, and the shadow-pass watchdog now halves its cadence and can shed shadows entirely when quality is at risk.

cross-tetris: a shared-queue four-well Tetris

cross-tetris is a new game: four standard Tetris wells arranged in a cross, sharing a single piece stream. You — or a greedy rule-based AI — pick which well each piece falls into, the wells play out as ordinary real-time Tetris, and the game ends when any well tops out. The engine is Rust compiled to WASM with a React UI, and it is playable live.

cold-path-server-podman: the Cold Path game server in a container

cold-path-server-podman is a new repository that runs the Cold Path multiplayer game server inside a Podman container, so no LuaJIT, LuaSocket, or LuaSec install is needed on the host. The upstream sources aren’t vendored — the image build pulls them from GitHub, and make build / make run / make logs handle the rest.