Golden Derby — HTML5 Virtual Racing Game
Golden Derby — HTML5 Virtual Racing Game
Golden Derby is a fast, self-contained HTML5 virtual horse racing game. Pick a horse, place your bet, and watch a rapid digital race play out — the winner is decided instantly and paid out on the spot.
Drop the single file on any static host and it runs instantly: no server, no database, no dependencies, no build step.
HOW IT PLAYS
Choose one of 6–8 horses, each with its own odds and form, set your stake, and hit Race. The horses break from the gate and sprint down the track in real time, jostling positions with slight acceleration variation and a photo-finish camera for close races. Your pick's finishing position determines the payout, credited instantly. Quick 15-second rounds keep the pace high, just like a virtual sports terminal.
FAIRNESS
The race winner and finishing order are generated with the browser's native crypto RNG (window.crypto.getRandomValues), with a Math.random fallback, weighted by each horse's configured odds. The result is locked in before the race animation starts and is not influenced by player input — the visuals are purely a replay of the pre-decided outcome.
LOOK AND FEEL
• Classic derby aesthetic with golden hour lighting, betting slips and turf textures
• Canvas-rendered race track with animated horse silhouettes, dust trails and finish-line FX
• Live betting panel with horse odds, form and colour-coded silks
• Photo-finish camera and win FX on close races
• Race-caller text ticker, crowd-roar audio cues and stadium ambience
• Procedural Web Audio sound effects — gallop, whinny, bugle — no audio files to host
• Animated preloader with a starting-gate sequence
• Fully responsive: desktop, tablet, portrait and landscape phones
• Safe-area insets respected on notched devices
BUILT TO CUSTOMISE
Horses, odds, form, race length, speed, colours and bet chips live in a single config block at the top of the script. The demo balance is stored in localStorage through load()/save() — swap those two functions for your own API calls (fetch/AJAX) to connect real currency. A public window.game.balance setter is exposed for integration.
No frameworks, no external requests, no third-party assets. Open index.html and play.
Note: this item ships in DEMO MODE with a local balance and "virtual points only" labeling. It does not process real payments and contains no gambling backend — it is a front-end game template intended for integration into your own platform. All horses, jockeys, silks and track artwork are fictional and original / canvas-drawn for this item — no real horses, jockeys, racecourses, actual derby brands or trademarked racing assets are bundled.
Tags
Requirements
Any modern browser with HTML5 Canvas and Web Audio support
(Chrome
Edge
Firefox
Safari
Opera — desktop and mobile)
Any static web host
or run locally by opening index.html
No server
database
PHP
Node.js or build tools required
Reviews (0)
No reviews yet. Be the first to review this item!