Zero UI Framework Lock-in
Pure TypeScript + HTML5 Canvas 2D. Mount directly to any <canvas> or container element with automatic DPR scaling and cleanup.
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.
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);
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.
Pure TypeScript + HTML5 Canvas 2D. Mount directly to any <canvas> or container element with automatic DPR scaling and cleanup.
Runs on requestAnimationFrame with bounded catch-up, plus headless game.step(dt) so developers and AI can test logic without a browser.
Complete TSDoc contracts, versioned JSON SceneSerializer, PrefabRegistry, and strict types make code generation and maintenance predictable.
Modular runtime systems inspired by classic OOP game loops and modern 2D workflows.
Pan, zoom, rotation, world bounds clamping, smooth target follow, screen shake, frustum culling, and parent-child hierarchies.
Orthogonal and isometric TileMap layers with offscreen chunk caching, worldToIso/isoToWorld, Y/Z depth sorting, and A* GridPathfinder.
UIPanel, UILabel, UIButton, UIProgressBar, UIStack, and word-wrapped multi-line text with pointer-consumption priority.
AudioContext + GainNode buses (master, sfx, music), decoded buffer preloading, and automatic user-gesture unlock.
Bitmask layer/mask filtering, SpatialHash broad-phase, onCollisionEnter/Stay/Exit events, area queries, and raycasts.
Pause-aware TimerManager and TweenManager, typed Signal<T>, pooled ParticleEmitter, AssetManifestLoader, and versioned SaveManager.
Follow the progressive guide from your first canvas game to advanced UI, audio, and 2.5D worlds.