Tower Stack Rush | HTML5 Provably Fair Crash Tower Game

Bluehost Shared Hosting

Tower Stack Rush is a premium crash-style tower game built with Phaser 3, HTML5, CSS3 and vanilla JavaScript. The player places a bet and drops swinging blocks from a construction crane to build a skyscraper. Every floor that lands raises the multiplier. Cash out at any moment – or keep stacking and risk the whole tower collapsing.

No frameworks, no build step, no server required for the demo. Upload the folder to any static hosting and it runs instantly on desktop and mobile. Every setting an operator needs – bets, RTP, floors, currency, colours, effects, language – lives in one commented file: js/config.js.

Important: this item is a demo/template that runs with virtual credits only. It does not process real-money payments and does not include a real-money backend. The buyer is solely responsible for licensing, certified RNG, and legal compliance in their jurisdiction if they integrate it with any gambling backend.

Gameplay

  • Crash-tower mechanic: 15 floors, each floor raises the multiplier from 1.04x up to 43.77x (default math), with an automatic max win on the top floor.
  • Instant cash out after the first floor, plus Auto drop and Auto cash out at a chosen multiplier.
  • Win celebrations: BIG WIN, MEGA WIN, EPIC WIN and MAX WIN tiers with fireworks, slow motion, camera shake and cinematic letterbox.
  • Round history strip and detailed round view.
  • Controls: tap / click, Space to bet and drop, C to cash out.

Provably Fair Engine

  • HMAC-SHA256 rolls from Server Seed, Client Seed and Nonce: roll = HMAC_SHA256(serverSeed, clientSeed:nonce:floor).
  • The server seed hash is committed before every round and the seed is revealed after it ends.
  • Built-in verifier: players can paste any revealed seed and recompute every floor locally in the browser.
  • Live RNG terminal on the game screen shows the hash, client seed and rolls in real time.
  • Outcome never depends on tap timing – the animation only visualises the pre-determined result.

Configurable Math and RTP

  • RTP set in one line (default 96%). Multipliers are calculated automatically from the per-floor landing chances so every cash-out point has the same expected return.
  • Multipliers are rounded down, so the real RTP never exceeds the configured value.
  • Editable number of floors, per-floor chances and max win cap.
  • RTP simulator included: node tools/simulate.js 200000 plays hundreds of thousands of rounds with the same code the game uses and prints theoretical vs simulated RTP per floor.

Visuals and Audio

  • Animated night city, moon, aurora sky, crane with rope physics, procedurally drawn buildings with lit windows, dust and particle effects.
  • Graphics quality presets (High / Medium / Low / Auto) with crisp rendering on retina screens.
  • Procedural sound effects and adaptive music generated with the Web Audio API – no audio files to load.
  • All graphics and sounds are generated in code: tiny download size and no third-party art licensing.

Mobile and Desktop

  • Responsive layout for portrait phones, tablets and widescreen desktops.
  • Touch-friendly controls, safe-area support for notched phones, optional vibration feedback.
  • Works in current Chrome, Firefox, Safari, Edge and Opera on Windows, macOS, Android and iOS.
  • Can be embedded in any website with an iframe.

Easy Customization

Everything is in js/config.js – edit, save, reload:

 currency:     { code: 'USD', symbol: '$', decimals: 2 }, startBalance: 1000,                        // demo balance bet:          { min: 0.10, max: 500, default: 1, presets: [1, 5, 10, 50, 100] }, math:         { rtp: 96, maxFloors: 15, floorChances: [0.92, 0.90, ...], maxWinMultiplier: 1000 }, branding:     { name: 'TOWER STACK', nameAccent: 'RUSH', logo: 'img/logo.png' }, theme:        { bg: '#05060d', green: '#2ee86a', gold: '#ffd25a', ... } 
  • Branding without coding: set your game name, logo image and colours in js/config.js. A step-by-step guide for non-technical users with screenshots is included in the documentation.
  • Theme colours are applied to every button, glow, panel and window through CSS variables – rebrand the whole UI in minutes.
  • 5 languages included: English, Russian, Spanish, Portuguese, Turkish. Add more by copying one block in js/i18n.js.
  • Toggle intro, slow motion, camera shake, film grain, letterbox, RNG terminal, music and sounds.

Ready for Your Backend

  • The game talks to the “server” only through one documented API layer: js/api.js.
  • Demo mode uses a built-in provably fair mock server with a virtual balance in localStorage.
  • Swap six Promise-based methods (init, setClientSeed, bet, drop, cashout, resetDemo) for fetch() calls to plug in your own platform. A full example is in the documentation.

Technical Overview

  • index.html – semantic layout of the HUD, bet panel, modals and splash screen.
  • css/style.css – complete UI design system, animations and responsive layouts (unminified, commented, with a table of contents).
  • js/config.js – all operator settings in one place.
  • js/fair.js, js/sha256.js – provably fair engine and dependency-free SHA-256 / HMAC.
  • js/math.js – chances, multipliers and RTP as pure functions.
  • js/api.js – server layer (demo mock or your backend).
  • js/game.js, js/ui.js, js/fairui.js, js/audio.js – round flow, interface, fairness window, sound.
  • js/scenes/ – Phaser scenes: textures, world, tower physics and effects.
  • Classic scripts, no bundler, no npm install. Phaser 3.80.1 and all fonts are bundled locally – no CDN required.

What You Get

  1. Complete, readable and commented source code (HTML, CSS, JavaScript).
  2. Phaser 3.80.1 bundled locally (MIT license).
  3. Local web fonts (Exo 2, JetBrains Mono – SIL Open Font License).
  4. RTP simulator script for Node.js.
  5. Detailed offline HTML documentation with screenshots: installation and deployment, branding guide for non-coders, configuration, provably fair, backend integration, translations and FAQ.

Requirements

  • Any static web server or hosting (Apache, Nginx, cPanel, Netlify, Vercel, GitHub Pages and similar).
  • No PHP, database or Node.js needed to run the game. Node.js is only needed for the optional RTP simulator.

Disclaimer

This item is a demo/template with virtual credits. It does not process real-money payments and does not contain a real-money backend, payment gateway or certified RNG. If you integrate it with any gambling or real-money backend, you are solely responsible for obtaining the required licences, certification and for full legal compliance in every jurisdiction where it is offered, including age verification and responsible gambling requirements.

Credits

  • Phaser 3 by Phaser Studio Inc. – MIT License
  • Exo 2 and JetBrains Mono fonts – SIL Open Font License 1.1

Changelog

 Version 1.1.0 - New: branding options (game name, logo image) in config.js - New: all theme colours apply to buttons, glows, panels and windows - New: locally bundled fonts, favicon, Licensing folder - Improved: unminified, commented stylesheet - Improved: documentation with screenshots, branding guide and FAQ - Fixed: background texture could disappear on phones - Fixed: server seed reuse after reloading the page during a round - Fixed: sound kept playing in a hidden browser tab - Fixed: minor UI issues  Version 1.0.0 - Initial release 

0 average based on 0 ratings.

Firedice

Firedice

Visit Author's Portfolio

View Portfolio
Last Update 2026-11-20
Created 2026-11-20
Sales 0
Discussion Comments
Compatible Browsers Firefox Safari Opera Chrome Edge
Software Version HTML5
High Resolution Yes
Files Included JavaScript JS HTML CSS
Video Preview Resolution 3840x2160