Video Demo
Knife Tower – HTML5 Arcade Climbing Game
Knife Tower is a complete, ready-to-publish HTML5 arcade climbing game. Throw knives into a towering wooden column, bounce your ball off their handles, and climb as high as you can before the rival marker reaches the top. Collect coins along the way, unlock new ball skins, and push through endless levels of increasing height and pressure.
The game is built entirely with vanilla HTML5, CSS3 and JavaScript on a single Canvas 2D context. There are no frameworks, no build step, no image sprites and no external runtime dependencies beyond Google Fonts. Every visual – sky, sunburst, clouds, mountains, castle, wooden tower, knives, ball and particles – is drawn procedurally in code, and every sound is synthesised at runtime with the Web Audio API. The result is an extremely light, fast-loading game that runs smoothly on desktop and mobile alike.
Progress is saved automatically in the browser using localStorage, so players keep their coins, unlocked skins and current level between sessions. The game includes a polished loading screen, main menu, how-to-play modal, HUD, progress bar, level-complete and game-over screens – all fully responsive and touch-friendly.
Features
- Complete one-tap arcade climbing gameplay
- Procedurally drawn graphics – no image assets required
- Smooth bouncy ball physics with gravity, launch velocity, squash-and-stretch and spin
- Thrown knives that stick into the tower and become bounce platforms
- Coin collection system with persistent wallet
- Four unlockable ball skins: Classic, Sunny, Mint and Galaxy
- Infinite levels with increasing tower height and a faster rival timer
- Three lives with hit detection, fall detection, invulnerability and respawn
- Rival progress timer that adds time pressure
- Fixed 120 Hz physics timestep for identical behaviour on every device
- Eight procedural Web Audio sound effects with a mute toggle
- Particle effects and screen shake for juice
- Automatic save system using localStorage
- Fully responsive 3:5 stage layout with portrait mobile support
- Pointer, mouse and keyboard (SPACE) controls
- Polished loading, menu, help, result and game-over screens
- Zero external runtime dependencies beyond Google Fonts
- Clean, well-commented and easily customisable source code
How to Play
Tap anywhere on the screen (or press SPACE) to throw a knife at the tower. When the blade sticks, your ball bounces off its handle. Time your throws near the top of each bounce to climb higher. Collect coins as you pass them, avoid flying blades, do not fall too far below the camera, and reach the FINISH line before the red rival marker reaches the top.
Technology Used
- HTML5
- CSS3 (custom properties, flexbox, aspect-ratio, backdrop-filter)
- JavaScript ES6 (single-scope IIFE, no frameworks)
- Canvas 2D rendering
- Web Audio API for procedural sound
- localStorage for save data
- requestAnimationFrame game loop with fixed timestep
- Pointer Events for unified mouse and touch input
- Google Fonts (Fredoka and Nunito) with system font fallback
Supported Browsers
- Google Chrome 99+ (desktop and Android)
- Microsoft Edge 99+ (Chromium)
- Mozilla Firefox 112+ (desktop and Android)
- Apple Safari 16.4+ (macOS and iOS)
- Samsung Internet 19+
- Opera and Opera GX 85+
- All modern evergreen browsers on desktop and mobile
Internet Explorer is not supported. A small optional polyfill for the Canvas roundRect method is included in the documentation for older Safari versions.
What You Get
- Complete HTML5 game source code
- index.html
- assets/style.css
- assets/script.js
- Optional favicon and background image
- Full documentation covering installation, deployment, controls, gameplay, mechanics, skins and progression, level design, rendering, audio, save data, browser support, customisation, troubleshooting, changelog and keywords
Easy to Customise
Every tuning value lives at the top of the JavaScript file, and every colour and layout value lives in the CSS custom properties and class rules. Difficulty, tower height, rival timer, gravity, bounce strength, coin spacing, skin prices, sound volumes and visual palette can all be changed in seconds without touching the game logic. Adding a new skin is a matter of pushing one object into the SK array.
Deployment
Knife Tower is a fully static web app. Upload the files to any web host, or deploy for free on GitHub Pages, Netlify, Vercel or any static hosting provider. No backend, database or server configuration is required. Serving over HTTPS is recommended so the Web Audio sound effects work in all browsers.
Notes
- All graphics are generated procedurally – no third-party art assets are used
- All sounds are generated at runtime with the Web Audio API – no audio files are used
- Fonts are loaded from Google Fonts; the game falls back to system fonts if they are unavailable
- The source code is clean, readable and fully commented