Black FridayGame templates at Black Friday pricesEnds in See the deals

Sports · HTML5

Dirt Dash MX

HTML 5 Motocross Racing Game with 24 Tracks

by Polar GamesVersion 1.0.0Updated Nov 27, 2026

  • Source code
  • Live demo
  • Documented
Perpetual licence$49 $41.65 -15%Buy now
The title screen: Tour, Time Trial, Freestyle and the garage.A race in the Stadium: three rivals, the speedometer, the turbo bar and the track map.The turbo: flame, speed streaks and afterimages.Mud Valley in the rain.The Countryside map: six tracks with three stars each.The garage: 8 bikes, 8 rider outfits and 4 dust trails.The podium after the race.Track clear: stars, score and the three goals.

Dirt Dash MX: HTML5 Motocross Racing Game

A motocross racing game with painted art and real bike physics. Race three rivals over tables, double jumps, whoops and mud, change rows inside your lane to dodge tire stacks and hay bales, flip forward or backward in the air, pull air tricks and fire a turbo for a burst of top speed. 24 tracks in 4 arenas, 3 stars on each one, a podium after every race, Time Trial against your own ghost and a Freestyle mode. Plain HTML, CSS and JavaScript, no framework, no dependencies, no build step.

Dirt Dash MX: dodge obstacles, flip in the air and fire the turbo

Race, dodge, flip, turbo

The bike and the rider are simulated: suspension on both wheels, spring legs and arms, and ragdoll crashes. You race three recorded rivals on four lanes seen in 3/4 view, and inside your lane you switch between three rows to dodge obstacles; rivals sometimes crash too. Front flips, backflips, five air tricks and perfect landings build a combo. Dodges, close calls, slaloms and tricks fill the turbo bar: the turbo has its own flame, sound, speed streaks and afterimages. A guided first track teaches every control by playing.

The four arenas of the Tour: Stadium, Countryside, Mud Valley and Dunes

Tour: 4 arenas, 24 tracks

Stadium at night, Countryside, Mud Valley in the rain and Dunes at sunset, each with its own painted art, map and music loop. Three stars per track: reach the finish, beat the score goal and complete the track's challenge (grab the 3 golden gears, perfect landings, flips, air tricks, a combo or no sketchy landings). A podium shows the top three after each race, stars unlock the next arena, and a champion screen waits at the end.

The garage with bikes, rider outfits and dust trails

Garage

Gears collected on the tracks buy 8 bike colors, 8 rider outfits (jersey, pants, helmet, gloves and shoes) and 4 dust trails, shown on a turntable in the garage. New stars pay bonus gears. Time Trial races your best run as a ghost, and Freestyle is a never-ending run with a best score.

Dirt Dash MX on a laptop, a tablet and a phone, in 14 languages

Every screen, every language

Layouts for desktop and phones in landscape and portrait, with keyboard and touch controls. 14 languages: English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean and Chinese. A music loop per arena, jingles, a layered engine sound and recorded effects, separate music and effects volumes, vibration on phones, fullscreen and a Less motion option.

Your template, your hosting

Upload the game folder to any static HTTP(S) host: no database, PHP, account or server code. Tracks are in tour.js, bikes, outfits and trails in shop.js, texts in i18n.js and gameplay numbers in one FEEL object; every picture is a separate WebP and every sound a separate MP3. The complete editable source is included, readable and formatted, with tests, a local preview server and npm run build. An offline buyer guide in 14 languages comes in the package.

Technical details at a glance

  • Stack: HTML5, vanilla JavaScript, Canvas 2D and Web Audio, with no third-party game engine.
  • Files: HTML, CSS, JavaScript, JSON, WebP, MP3 and WAV. Font: Baloo 2 (SIL Open Font License).
  • Languages: 14 interface languages; buyer guide in 14 languages.
  • Saves: the browser's local storage, with no account. No in-app purchases, no tracking and no external requests. Gears are only a game currency.
  • Editing the source: Node.js 22 LTS (22.12 or newer), npm ci, npm test and npm run build.

Screens from this edition

Captured from the edition sold here.

Included

  • Ready-to-host HTML 5 game folder
  • Complete editable source with tests, local server and build script
  • Tracks, garage items and texts in easy data files (tour.js, shop.js, i18n.js) and gameplay numbers in one FEEL object
  • Painted art (WebP), recorded rivals (JSON), sound effects and a music loop per arena (MP3)
  • Offline illustrated buyer guide in 14 languages
  • Baloo 2 font licence (OFL)

Not included in this edition

  • Native Android/iOS applications and store submissions
  • Online multiplayer, leaderboards, accounts and cloud saves (the rivals are recorded runs)
  • Ad, analytics or payment SDK integration
  • Hosting, provider accounts and custom development

What is in the ZIP

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

dirt-dash-mx-1.0.0-complete.zip732 files · 53.6 MB
  • dirt-dash-mx-static-1.0.0/731 files · 53.6 MB
    • documentation/HTML guide, open it before you buy1 file · 1.3 MB
      • index.html1.3 MB
    • game/Ready to host: upload this folder358 files · 26.1 MB
      • assets/Art, audio and fontsJSON · MP3 · WAV · WEBP · WOFF2 · 337 files · 25.6 MB
      • licenses/Licence notices to keep with your gameTXT · 1 file · 4 KB
      • src/Source modulesCSS · JS · 18 files · 539 KB
      • DOCUMENTATION.txt1 KB
      • index.html15 KB
    • source/Readable source code367 files · 26.2 MB
      • assets/Art, audio and fontsJSON · MP3 · WAV · WEBP · WOFF2 · 337 files · 25.6 MB
      • licenses/Licence notices to keep with your gameTXT · 1 file · 4 KB
      • src/Source modulesCSS · JS · 18 files · 539 KB
      • tests/Automated testsMJS · 4 files · 9 KB
      • tools/Build and check scriptsMJS · 3 files · 4 KB
      • index.html15 KB
      • package-lock.json1 KB
      • package.json1 KB
      • README.md6 KB
    • THIRD-PARTY-LICENSES/Licence notices to keep with your game2 files · 5 KB
      • OFL-Baloo2.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
Buyer-hosted Browser Edition
Version
1.0.0
Released
Nov 27, 2026
Updated
Nov 27, 2026
Category
Sports
Languages
English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean, Simplified Chinese
Files included
HTML, CSS, JavaScript, JSON, WebP, MP3, WAV
Built with
Vanilla JavaScript (no build), Canvas 2D, Web Audio, Node.js (optional tests and build, no packages)
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 ES modules and Web Audio
  • A static HTTP(S) web host; HTTPS recommended
  • Node.js 22 LTS (22.12 or newer) only for the optional tests and build

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

Changelog

  1. 1.0.0Nov 27, 2026

Questions

Do I have to compile the game?

No. Upload the game folder to any static host. Edit a file and reload: there is nothing to compile.

Can I change the tracks and the garage?

Yes. Every track is generated from a seed in tour.js (length, sections, goals), so it is the same every time and easy to edit. Bikes, outfits and trails are in shop.js, texts in i18n.js and gameplay numbers in one FEEL object.

Are the rivals online players?

No. They are recorded runs that race with you, and they sometimes crash on obstacles too. The game makes no external requests.

Does it work on phones?

Yes, in portrait and landscape, on phones, tablets and computers, with touch controls or the keyboard.

Which languages are included?

14: English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean and Chinese, all in one file you can edit.

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.
Dirt Dash MX$49 $41.65 -15%
Buy now