Tap. Trim. Tower. A 3D stacking game with source code
Trimora is an HTML5 3D stacking arcade game template with TypeScript source code, ready to upload to any static web host. Players drop a sliding slab with one tap, the overhang is trimmed away and perfect streaks win back width. It includes one endless mode, local personal records and a 14-language interface, with no server, database or account to set up.

One-touch 3D stacking with overhang trimming
Click, tap or press Space or Enter to drop the slab. Whatever hangs over the edge is cut away, so the next placement has less room. The slab alternates between two axes, which keeps every run sharp.
- One-touch 3D stacking with overhang cutting
- Alternating movement axes
- Perfect streaks recover tower width
- A widening terrace every eight slabs, never beyond the base size
- Endless play and local personal records
- Interface in 14 languages, with sound, vibration, motion and effects settings

Perfect streaks and widening terraces
Accurate placements recover width and reward rhythm, and every eight slabs a terrace gives back room, up to the base size. The best runs are saved in the player's browser, with no backend to set up.

What you get: game, source code and manual
You get the ready-to-upload game with readable JavaScript, CSS and data, the editable TypeScript source with the game assets, and an illustrated English and Portuguese manual covering installation, controls, customisation, troubleshooting and FAQ. Optional automated tests cover the stacking rules and the standalone setup, and dependency and font licence notices are included.
Hosting and local data
Upload the contents of game/ to any static HTTP or HTTPS host. Progress and records are saved in the player's browser, and no PHP, database or account is needed. The edition is solo play with local data: there is no campaign, shop, missions or currencies, and online ranking, multiplayer and advertising services are not part of the package.
Who this template is for
Site and portal owners who want a finished one-tap game to publish, freelancers and studios preparing a branded casual game for one client, and developers who want to read how a small Three.js game keeps its stacking rules in one separate file.
Customise it
In the TypeScript source, brand.ts holds the product name, palette and storage key, and tuning.ts the timing, perfect tolerance, width recovery and terraces. stack.ts contains the stacking rules and scoring, i18n.ts the interface text in 14 languages, and Sound.ts with the bundled music the audio. Run npm ci, npm test and npm run build, then copy all of dist/ into game/.
Technical details at a glance
- Stack: TypeScript, Three.js, WebGL2 and Vite; the game/ folder has readable HTML, CSS, JavaScript and JSON.
- Needs a modern browser with JavaScript and WebGL2, and a static HTTP or HTTPS host (file:// is not supported).
- Node.js 22.12+ and npm are needed only to edit and rebuild the source; the hosted game needs no Node.js server.
- Not included: online ranking, multiplayer, cloud saves, advertising SDKs or ad-based undo and revive offers, native apps and hosting.
Licence and support in short
You get a perpetual, non-exclusive licence for one end product, yours or one client's. Players may access it free of charge or through advertising monetisation. You can change the code, art and audio inside your product, but not resell the template itself. Six months of support are included, or 12 with the extension chosen at checkout.









