Space Attack
Twin-stick horde survival and Space-Invaders defense, in 3D. A guest build.
- Controls
- Status
- Difficulty
- Session
- Stack
- Zero-Shot Engine on Three.js (WebGL2)
- Generations
- 2
- Bundle
- play/space-attack/index.html
About the machine
A top-down 3D arcade shooter in two modes. Asteroid is twin-stick horde survival: move with WASD, aim with the arrows, hold Space to fire, and split crystal and rock enemies down their chain while collecting hull repairs across three lives. Legacy is formation defense in the Space Invaders mould, behind destructible shields. An orthographic Three.js scene with a tilt-shift diorama shader, and a Performance mode that bypasses it. Built with the Kenney Space Kit (CC0); the engine is bundled, so it makes no network request.
Generations
Generations
PromptPrompta short, browser-based Space Attack calibration game
What changed
A guest game, built with Codex rather than the Claude studio, and absorbed into the collection as a prebuilt bundle (a Vite build with a relative base, so it serves from any path). Its engine layer is the ancestor of ACT, the Drupal Game Engine's expression engine, where it is known as ACT 0.
PromptPromptfirst iteration, all games as they stand must be ported to threejs
What changed
The same game, ported to the Zero-Shot Engine (v0.4.1) on Three.js: the studio's own port of the guest build that generation 1 absorbed. Both modes are unchanged. Every speed, fire rate, spawn and wave curve, split chain, formation step, shield tile, score and hitbox is copied from generation 1's source, quirks included, and generation 1's own 20 tests run against the port alongside 19 new ones. Best scores keep their browser storage keys, so players keep their records.
Under the hood: the rules run in the engine's fixed 1/60 s step instead of once per animation frame, with float-safe timers and a seeded random stream (?seed= replays a run). Hitbox sizes, which generation 1 measured from the loaded Kenney models, are now a table that a test re-derives from the same models, bit for bit. The scene is drawn by Three.js's WebGPURenderer on its WebGL2 backend with generation 1's camera, lights and models. The tilt-shift diorama shader is now a TSL post-processing node, still on by default, and Performance mode still bypasses it and lowers the resolution. The HUD, menus, credits and sound are generation 1's own. WebGPU is built in and opt-in (?backend=webgpu).
New and visual only: on capable machines the engine's quality tier adds rock chips and sparks when asteroids split and invaders fall, and shield shards at the highest tier. A test proves every tier plays exactly the same game. Generation 1 shipped as an ES module that fetched its models, so it could not open from disk. Generation 2 is one classic script with the models embedded, makes no network requests, and opens from file://.