v0.4.0 • Pure TypeScript + HTML5 Canvas

Build 2D & 2.5D Browser Games Without Framework Bloat.

Maverick is a zero-dependency, strongly-typed game engine crafted for both developers and AI-assisted workflows. Skip React rerenders and DOM overhead—ship responsive canvas games with deterministic simulation, scenes, isometric tilemaps, Web Audio buses, and retained Canvas UI.

hello-maverick.ts TypeScript • Zero Deps
import { Game, Camera2D, UIButton } from 'maverick';

class AdventureGame extends Game {
  cam = new Camera2D({ viewportWidth: 640, viewportHeight: 360 });

  onReady(): void {
    this.Input.bindAction('jump', [' ', 'ArrowUp']);
    this.UI.add(new UIButton({
      id: 'play',
      bounds: { x: 20, y: 20, width: 120, height: 36 },
      label: 'Play',
      onClick: () => this.Sounds.play('click', { bus: 'sfx' }),
    }));
  }

  onDisengaged(): void {}
}

new AdventureGame({ name: 'Quest' }).mount(document.body);

What Maverick Solves

Web games shouldn't fight UI frameworks or fragile timing loops. Maverick standardizes browser 2D and isometric 2.5D development with clean OOP contracts and strict TypeScript types.

âš¡

Zero UI Framework Lock-in

Pure TypeScript + HTML5 Canvas 2D. Mount directly to any <canvas> or container element with automatic DPR scaling and cleanup.

⏱

Deterministic Fixed-Step Loop

Runs on requestAnimationFrame with bounded catch-up, plus headless game.step(dt) so developers and AI can test logic without a browser.

🤖

Developer & AI Friendly

Complete TSDoc contracts, versioned JSON SceneSerializer, PrefabRegistry, and strict types make code generation and maintenance predictable.

Everything You Need for 2D & 2.5D Worlds

Modular runtime systems inspired by classic OOP game loops and modern 2D workflows.

🎥

Camera2D & Transforms

Pan, zoom, rotation, world bounds clamping, smooth target follow, screen shake, frustum culling, and parent-child hierarchies.

🗺

TileMaps & 2.5D Isometric

Orthogonal and isometric TileMap layers with offscreen chunk caching, worldToIso/isoToWorld, Y/Z depth sorting, and A* GridPathfinder.

🎛

Retained Canvas UI & Text

UIPanel, UILabel, UIButton, UIProgressBar, UIStack, and word-wrapped multi-line text with pointer-consumption priority.

🔊

Web Audio Buses

AudioContext + GainNode buses (master, sfx, music), decoded buffer preloading, and automatic user-gesture unlock.

🛡

Collisions & Raycasts

Bitmask layer/mask filtering, SpatialHash broad-phase, onCollisionEnter/Stay/Exit events, area queries, and raycasts.

✨

Timers, Tweens & Saves

Pause-aware TimerManager and TweenManager, typed Signal<T>, pooled ParticleEmitter, AssetManifestLoader, and versioned SaveManager.

Interactive Tutorial Wiki

Follow the progressive guide from your first canvas game to advanced UI, audio, and 2.5D worlds.