A lightweight, modular TypeScript game engine designed for modern browsers. Only 50kb when minified, but packed with powerful features for creating impressive 2D and 3D games.
Minified Size
Rendering Engine
TypeScript
Sprunk is built with a focus on event-driven architecture and strict separation of concerns, making your games more maintainable and extendable.
Modern 3D rendering engine with support for sprites, meshes, line drawing, and text rendering.
Integrated 2D polygon physics engine for realistic object interactions and collisions.
Complete audio system for sound effects and music in your games.
Support for multiple gamepads, keyboard, and mouse with customizable mappings.
Built-in dependency injection system for better code organization and testing.
Integrated debugging tools to help you find and fix issues quickly.
Begin building your game in minutes with these simple steps.
Use npm to install Sprunk Engine in your project.
npm i sprunk-engine
Create a new instance of the game engine in your main file.
import { Sprunk } from 'sprunk-engine';
const canvas = document.getElementById('app');
const game = Sprunk.newGame(canvas);
Add game objects and behaviors to start building your game.
const cameraGo = new GameObject("Camera");
game.root.addChild(cameraGo);
cameraGo.addBehavior(new Camera());
cameraGo.transform.position.set(0, 1, 10);
Comprehensive guides and API references to help you master Sprunk Engine.
Learn about the core architecture and design principles behind Sprunk Engine.
Understand how to use behaviors to add functionality to your game objects.
Explore the WebGPU-based rendering capabilities for 2D and 3D graphics.
Learn how to implement realistic physics in your games.
Implement controls for keyboard, mouse, and gamepad interactions.
Master the event-driven architecture for responsive game design.
Discover how to manage 3D spatial audio, effects, and sound mixing.
Debug and inspect game objects in real-time to optimize performance.
Join developers around the world who are building amazing games with Sprunk Engine.
Start Building Today