Ant Games

Shipping One Custom Raw WebGL2 Orbital Survivor Across Web, itch.io, and Google Play: Engineering STAR AGAINST THE DARK

Most browser 3D studios pick a single high-level engine and ship everything on top of it. At Ant Games (About Ant Games), three of our four Production Release games run on Three.js — yet for STAR AGAINST THE DARK, we dropped Three.js entirely and wrote a custom raw WebGL2 renderer with zero runtime dependencies.

That architectural bet paid off when we shipped STAR AGAINST THE DARK simultaneously across three live destinations from the same deterministic simulation core:

Every Ant Games Production Release is free, no pay to win, and no sign-up required.


Why Raw WebGL2 Instead of Three.js for Orbital Bullet-Heaven Combat

In STAR AGAINST THE DARK, you play a newborn star in a dying universe and your orbiting worlds are your weapons. Moving whips your orbits around—the faster a world travels, the harder it hits, and sharp turns, reversals, or a Surge dash accelerate its tangential strike velocity. Lining up two worlds through the star fires a conjunction arc; aligning three or more triggers an alignment beam that sweeps across the screen and erases hostile projectiles.

A typical run lasts 20–30 minutes across 5 epochs, pitting your orbital build (13 worlds with level-6 ascensions, 8 star weapons, 25 passives, 29 relics, 6 playable stars, 7 stellar evolutions) against 22 enemy kinds, elites, and 5 multi-phase bosses, plus Entropy tiers 0–10, a seeded daily run, and an endless mode.

Writing a bespoke raw WebGL2 pipeline instead of wrapping Three.js gave us four concrete engineering advantages across Web and Android:

  1. Procedural SDF + HDR Bloom Without Texture Bloat: Planets, corona flares, alignment beams, enemy swarms, and high-contrast hot-pink projectiles are rendered via signed-distance-field (SDF) primitives and procedural planet/sun shaders feeding an HDR bloom pass. Zero external image, audio, or font files means the entire game compiles into a single self-contained HTML artifact that starts almost instantaneously in a browser tab and packages cleanly for itch.io and Google Play.
  2. Zero-Allocation 60 Hz Deterministic Simulation: The simulation core (core/, sim/, content/) never touches the DOM, Date, or Math.random(). Fixed 60 Hz steps run over recycled object pools and spatial grids with a seeded PRNG. That determinism powers identical seeded daily runs across desktop web and Android, headless Node simulation tests, and predictable orbital collision feel at every refresh rate.
  3. Predictable Mobile & Integrated-GPU Frame Budgets: Direct buffer packing and minimal draw-call state changes keep per-frame JS-to-WebGL2 overhead tiny even when dense late-epoch swarms, conjunction arcs, orbital trails, and Nova shockwaves overlap on mobile Android GPUs.
  4. Unified Multi-Input Platform Layer: A thin platform adapter maps keyboard (WASD / arrows, Space for Surge, E/Q/Shift for Nova), mouse, gamepad, and Android touch controls into one normalized input struct while keeping Observatory stardust upgrades, 61 achievements, and portable saves consistent across devices.

Web, itch.io, and Google Play From One Build Discipline

Because STAR AGAINST THE DARK has no external asset waterfall and no heavy framework boot step, shipping on antgames.ai, itch.io, and Google Play does not require maintaining separate game engines. Gameplay balance, boss phases, Entropy 0–10 scaling, and daily run seeds stay in lockstep across browser and mobile.


More from Ant Games

All four Ant Games Production Releases are free, no pay to win, and no sign-up required:

Browse the full studio portal at https://antgames.ai/ or learn more at https://antgames.ai/about/.