Ele Defense: An Elemental Tower Defense on a Deep Reef

Hold a glowing fixed tideway across a deep reef, in one small offline HTML file: four elemental pylons on a counter ring (earth→wind→water→fire, +50%), water slows, twenty hand-authored waves with a behemoth every fifth, and early wave calls that pay decaying bonus shards. Pure Canvas 2D, no engine. English and Chinese UI.

Ele Defense: An Elemental Tower Defense on a Deep Reef

Bring the reef and the elements, and optionally the counter table, the wave composition, the tower stats, the early-call bonus and the UI text. The Skill returns a downloadable Skill (the tower-defense project, a customize guide, headless verification) and one playable example run.

How it works

  1. Your coding agent copies the working game and follows the customize guide: tideway waypoints, element colours and the counter ring, tower tiers and prices, the wave table, the compass, palette and sound.

  2. The path never changes: towers sit off the tideway and the strategy is reading the compass, countering elements and gambling early calls — different from maze-building defense.

  3. The game is played headlessly under the sandbox policy: wave start, a build, a select, an upgrade, combat, an early call, pause, a sell, a behemoth, a win, a loss and a restart, plus a phone run and Chinese text.

Frequently asked questions

Does it call a model or need a key?

No. The Skill gives your agent a working game, a customize guide and verification; the game itself makes no network calls and calls no model.

Why is the demo sandboxed?

The frame has an opaque origin and no network access, so the scene can’t read anything from this page or reach the internet.

How is this different from maze defense?

The tideway is fixed — towers can only sit on reef tiles off the path. The strategy is the element counter ring and wave timing, not rerouting enemies.

Can I add an element?

Yes: elements, the counter table, tower stats and the wave table are config blocks in the customize guide.

Does it work on mobile?

Yes: tap a pylon, then a tile, to build; cards stay at least 44 px. Verified under touch emulation, not on real devices.

Why is there no online generation?

Building a new scene needs a model key inside the sandbox, which the backend doesn’t support yet. Run the Skill with your own agent for now.