Black FridayGame templates at Black Friday pricesEnds in See the deals

Strategy · HTML5

Dragon Roost

Dragon merge tower defense with 30 waves, 3 worlds and 3 bosses

by Polar GamesVersion 1.0.0Updated Nov 10, 2026

  • Source code
  • Live demo
  • Documented
Perpetual licence$59 $50.15 -15%Buy now
Title screen with the dragon keeper: Play, Continue and Reset progress.First-game tutorial: the dragon keeper shows how to merge two equal dragons.A wave in Golden Skies: dragons breathe fire along their rows at the goblin balloons.Storm Canyon at sunset: stronger dragons, frost and chain lightning.Aurora Night: moon orbs, storm bolts and the goblin fleet under the aurora.Boss wave: the Ram Zeppelin with its health bar in the HUD.Royal Aerie: dragon levels and upgrades (Recruitment, Extra Fire, Sturdy Wall, Quick Patch).Wave held: perfect wave, merge combo bonus and coins flying to the counter.Pause and settings: sound, language and main menu.

Dragon Roost: recruit, merge and defend the castle.

Dragon Roost is an HTML5 merge tower defense template with full source code, set in a castle above the clouds. Recruit baby dragons, drag two equal dragons together to hatch a stronger one, and place your best dragons in the front nests so they breathe fire at the goblin balloons flying at the castle wall. Easy to start, with real decisions later: which dragons to merge, when to call the next wave and what to buy in the Royal Aerie.

Dragon Roost: the dragon keeper waving on the castle wall while a crowned Elder Dragon and a Frost Dragon breathe fire and frost at goblin balloons.

12 dragons, each with its own attack

Fireballs, twin sparks, thorns, ember streams, lava rocks, iron darts, frost, spirit flames, chain lightning, moon orbs, a sun beam and a cosmic vortex. Merge two equal dragons to reach the next level; merge combos pay a bonus.

Dragon Roost: two level 1 baby dragons hatching from their eggs merge in a golden burst into a level 2 dragon.

30 waves, 3 worlds and 3 bosses

Golden Skies, Storm Canyon and Aurora Night, with 8 kinds of goblin balloons and a boss every 10 waves (Ram Zeppelin, Goblin Queen, Shell Fortress), each with its own entrance and boss music. After the campaign, Endless mode keeps going.

Dragon Roost: 30 waves and 3 epic bosses, the Ram Zeppelin, the Goblin Queen and the Shell Fortress.

Juicy, and kind to the player

Dragon breath, shot trails, merge bursts, balloon wrecks, goblins on parachutes and flying coins, all tuned in one file. A first-game tutorial and mascot call-outs with English narration, retry that resets the wave when the wall falls, Wyverns and War Horn powers, falling treasure chests, 1x/2x speed, and calmer effects when the system reduce-motion setting is on.

Dragon Roost features: plain HTML, CSS and JavaScript, 14 languages, upgrades, powers and Endless mode, illustrated offline guide.

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 fantasy 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 (dragons, enemies, waves, bosses, prices, rewards) and all game-feel numbers in src/render/feel.js. All player-facing names are in src/i18n/dragon-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 dragon name.

Technical details at a glance

  • Stack: HTML5, plain JavaScript ES modules (no compile step), Canvas 2D and Web Audio.
  • 14 interface languages; English mascot narration; 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; credit to pixelfx (MIT) for breath drawing techniques.

Screens from this edition

Captured from the edition sold here.

Included

  • 12 dragon levels with their own attacks, 30 campaign waves in 3 worlds (Golden Skies, Storm Canyon, Aurora Night), 8 goblin balloon kinds, 3 bosses and an Endless mode. Royal Aerie upgrades, Wyverns and War Horn powers. 14 interface languages.
  • Ready-to-host game/ with local artwork, music, sound effects, English mascot narration and font
  • Editable plain-JavaScript source (no compile step), tests, a table of the internal code names and the font licence
  • Illustrated offline buyer guide in English, Portuguese and Spanish

Not included in this edition

  • Native apps, hosting and custom development
  • Online ranking, real-money purchases and advertising SDK

What is in the ZIP

The real folder structure of the package you download, with names and sizes read from it.

dragon-roost-1.0.0-complete.zip668 files · 52.8 MB
  • dragon-roost-static-1.0.0/667 files · 52.8 MB
    • documentation/HTML guide, open it before you buy1 file · 1.4 MB
      • index.html1.4 MB
    • game/Ready to host: upload this folder326 files · 25.7 MB
      • assets/Art, audio and fontsJSON · MP3 · PNG · TXT · WEBP · WOFF2 · 283 files · 25 MB
      • css/CSS · 2 files · 98 KB
      • src/Source modulesJS · 39 files · 584 KB
      • DOCUMENTATION.txt1 KB
      • index.html1 KB
    • source/Readable source code335 files · 25.7 MB
      • assets/Art, audio and fontsJSON · MP3 · PNG · TXT · WEBP · WOFF2 · 283 files · 25 MB
      • css/CSS · 2 files · 98 KB
      • src/Source modulesJS · 39 files · 584 KB
      • test/Automated testsJS · 3 files · 9 KB
      • tools/Build and check scriptsMJS · 2 files · 3 KB
      • .prettierignore1 KB
      • .prettierrc.json1 KB
      • index.html1 KB
      • package-lock.json1 KB
      • package.json1 KB
      • README.md8 KB
    • THIRD-PARTY-LICENSES/Licence notices to keep with your game2 files · 5 KB
      • fredoka-OFL.txt4 KB
      • README.txt1 KB
    • CHANGELOG.txtVersion history1 KB
    • DOCUMENTATION.htmlOpens the guide1 KB
    • START-HERE.txtQuick start1 KB
  • POLAR-MARKETPLACE-START-HERE.txtStart here: licence, support and first steps1 KB

Item details

Edition
Standalone Browser Edition
Version
1.0.0
Released
Nov 10, 2026
Updated
Nov 10, 2026
Category
Strategy
Languages
English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean, Simplified Chinese
Files included
HTML, CSS, JavaScript, JSON, WebP, PNG, MP3, WOFF2
Built with
HTML5, JavaScript (ES modules, no build step), Canvas 2D, Web Audio
Browsers
Modern browsers with WebGL2
Documentation
Documentation

Author

Polar Games

Brazilian studio making browser games. Every template here is a game we built and published.

See our games

Requirements

  • A current browser with JavaScript, Canvas 2D and Web Audio
  • Static HTTP(S) hosting; no database or author account required
  • Node.js 26.13+ only for the optional tools (tests, build copy, local server)

Support covers technical questions and reproducible defects in the supplied game. Installation and customisation are separate services.

Changelog

  1. 1.0.0Nov 10, 2026

Questions

Do I need to build the game?

No. Upload the contents of game/ to HTTP(S) hosting. The source is plain JavaScript; npm run build only copies it to dist/.

Can I change the balance?

Yes. Dragons, enemies, waves, bosses, prices and rewards are all in src/game/data.js; run npm test after a change.

Why do some code names mention plants and pests?

The engine is shared with a garden-themed template, so internal keys stay neutral. All names the player sees are in src/i18n/dragon-theme.js, and the README maps every key to its dragon name.

Does it work on phones?

Yes, in landscape, with touch. A tap-to-start screen makes sound work on iPhone and iPad.

Where is progress saved?

Locally in the current browser.

What licence applies?

The Polar Games Marketplace terms shown at checkout apply.

Read the full licence, support, refund and privacy terms

Before you buy: guides and reviews

From Brazil to the world

Buyers in 25 countries

License a ready HTML5 game, with source code, for your website, app or brand.

  • 900+sales
  • 25countries
  • 2016selling since
Countries where we have sold: Brazil, United States, United Kingdom, Germany, Canada, Australia, France, India, Netherlands, Spain, Italy, Japan, South Korea, Poland, Mexico, Sweden, Switzerland, Singapore, United Arab Emirates, Saudi Arabia, Indonesia, Türkiye, Portugal, Philippines, Vietnam.

More from Polar Games

Dragon Roost$59 $50.15 -15%
Buy now