LIVE PREVIEWBUY FOR $10

Video Demo


Image 1


Game


Image 3

Knife Tower – HTML5 Arcade Climbing Sport

Knife Tower is a whole, ready-to-publish HTML5 arcade climbing sport. Throw knives right into a towering wood column, bounce your ball off their handles, and climb as excessive as you possibly can earlier than the rival marker reaches the highest. Acquire cash alongside the best way, unlock new ball skins, and push by limitless ranges of accelerating top and strain.

The sport is constructed completely with vanilla HTML5, CSS3 and JavaScript on a single Canvas 2D context. There are not any frameworks, no construct step, no picture sprites and no exterior runtime dependencies past Google Fonts. Each visible – sky, sunburst, clouds, mountains, fortress, wood tower, knives, ball and particles – is drawn procedurally in code, and each sound is synthesised at runtime with the Net Audio API. The result’s a particularly mild, fast-loading sport that runs easily on desktop and cellular alike.

Progress is saved routinely within the browser utilizing localStorage, so gamers hold their cash, unlocked skins and present stage between classes. The sport features a polished loading display, principal menu, how-to-play modal, HUD, progress bar, level-complete and game-over screens – all absolutely responsive and touch-friendly.

Options

  • Full one-tap arcade climbing gameplay
  • Procedurally drawn graphics – no picture belongings required
  • Easy bouncy ball physics with gravity, launch velocity, squash-and-stretch and spin
  • Thrown knives that stick into the tower and develop into bounce platforms
  • Coin assortment system with persistent pockets
  • 4 unlockable ball skins: Traditional, Sunny, Mint and Galaxy
  • Infinite ranges with rising tower top and a sooner rival timer
  • Three lives with hit detection, fall detection, invulnerability and respawn
  • Rival progress timer that provides time strain
  • Mounted 120 Hz physics timestep for an identical behaviour on each gadget
  • Eight procedural Net Audio sound results with a mute toggle
  • Particle results and display shake for juice
  • Computerized save system utilizing localStorage
  • Totally responsive 3:5 stage structure with portrait cellular assist
  • Pointer, mouse and keyboard (SPACE) controls
  • Polished loading, menu, assist, consequence and game-over screens
  • Zero exterior runtime dependencies past Google Fonts
  • Clear, well-commented and simply customisable supply code

How one can Play

Faucet anyplace on the display (or press SPACE) to throw a knife on the tower. When the blade sticks, your ball bounces off its deal with. Time your throws close to the highest of every bounce to climb larger. Acquire cash as you move them, keep away from flying blades, don’t fall too far beneath the digicam, and attain the FINISH line earlier than the pink rival marker reaches the highest.

Expertise Used

  • HTML5
  • CSS3 (customized properties, flexbox, aspect-ratio, backdrop-filter)
  • JavaScript ES6 (single-scope IIFE, no frameworks)
  • Canvas 2D rendering
  • Net Audio API for procedural sound
  • localStorage for save information
  • requestAnimationFrame sport loop with mounted timestep
  • Pointer Occasions for unified mouse and contact enter
  • 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 Web 19+
  • Opera and Opera GX 85+
  • All fashionable evergreen browsers on desktop and cellular

Web Explorer shouldn’t be supported. A small elective polyfill for the Canvas roundRect technique is included within the documentation for older Safari variations.

What You Get

  • Full HTML5 sport supply code
  • index.html
  • belongings/model.css
  • belongings/script.js
  • Elective favicon and background picture
  • Full documentation masking set up, deployment, controls, gameplay, mechanics, skins and development, stage design, rendering, audio, save information, browser assist, customisation, troubleshooting, changelog and key phrases

Simple to Customise

Each tuning worth lives on the prime of the JavaScript file, and each color and structure worth lives within the CSS customized properties and sophistication guidelines. Problem, tower top, rival timer, gravity, bounce energy, coin spacing, pores and skin costs, sound volumes and visible palette can all be modified in seconds with out touching the sport logic. Including a brand new pores and skin is a matter of pushing one object into the SK array.

Deployment

Knife Tower is a totally static net app. Add the recordsdata to any net host, or deploy at no cost on GitHub Pages, Netlify, Vercel or any static internet hosting supplier. No backend, database or server configuration is required. Serving over HTTPS is really helpful so the Net Audio sound results work in all browsers.

Notes

  • All graphics are generated procedurally – no third-party artwork belongings are used
  • All sounds are generated at runtime with the Net Audio API – no audio recordsdata are used
  • Fonts are loaded from Google Fonts; the sport falls again to system fonts if they’re unavailable
  • The supply code is clear, readable and absolutely commented


Source