Starfort: recruit, merge and defend the star base.
Starfort is an HTML5 merge tower defense template with full source code, set in deep space. Recruit cannon turrets, drag two equal turrets together to build a stronger one, and place your best turrets in the front column so they fire at the pirate ships flying at the star base barrier. Easy to start, with real decisions later: which turrets to merge, when to call the next wave and what to buy in the Star Base.

12 turrets, each with its own weapon
Cadet shots, twin blasters, bursts, a turbo gatling, meteor shells, solar piercers, cryo pulses, guided swarms, electric arcs, plasma orbs, a star lance and a vortex core. Merge two equal turrets to reach the next level; merge combos pay a bonus.

30 waves, 3 worlds and 3 bosses
Bright Orbit, Asteroid Belt and Violet Nebula, with pirate fighters, drones and gunships and a boss every 10 waves (Ram Destroyer, Star Corsair, Void Driller), each with its own entrance and boss music. After the campaign, Endless mode keeps going.

Juicy, and kind to the player
Engine flares, laser trails, merge bursts and flying coins, all tuned in one file. A first-game tutorial with the robot captain, retry that resets the wave when the barrier falls, Squadron and Overdrive powers, supply pods, 1x/2x speed, and calmer effects when the system reduce-motion setting is on.

Your game, your hosting
Upload the contents of the game folder to static HTTP(S) hosting. No PHP, database, account or Node.js is needed on the server, and the game makes no requests to ranking, advertising, tracking or payment services. Landscape layout for phones, tablets, desktop and ultrawide screens, with mouse, touch and keyboard.
What this edition does not include
Native apps, hosting and custom development are not included, nor are cloud saves, an online ranking, real-money purchases or an advertising SDK.
Who this template is for
Site and portal owners who want a sci-fi strategy game, freelancers and studios building a branded game for a client, and developers who want readable plain JavaScript to learn from or reskin.
Customise it
All balance numbers live in src/game/data.js (turrets, enemies, waves, bosses, prices, rewards) and all game-feel numbers in src/render/feel.js. All player-facing names are in src/i18n/starfort-theme.js. The engine is shared with a garden-themed template, so some internal code keys keep neutral names; the README maps each one to its space name.
Technical details at a glance
- Stack: HTML5, plain JavaScript ES modules (no compile step), Canvas 2D and Web Audio.
- 14 interface languages; offline illustrated guide in English, Portuguese and Spanish.
- Node.js 26.13+ only for the optional tools: tests, build copy and local server.
- Local Fredoka font with its OFL licence; no third-party code in the game.


















