Build Web Games with Sprunk Engine

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.

50kb

Minified Size

WebGPU

Rendering Engine

100%

TypeScript

Powerful Features

Sprunk is built with a focus on event-driven architecture and strict separation of concerns, making your games more maintainable and extendable.

🎮

WebGPU Rendering

Modern 3D rendering engine with support for sprites, meshes, line drawing, and text rendering.

2D Physics

Integrated 2D polygon physics engine for realistic object interactions and collisions.

🔊

Audio Engine

Complete audio system for sound effects and music in your games.

🎯

Input System

Support for multiple gamepads, keyboard, and mouse with customizable mappings.

💉

Dependency Injection

Built-in dependency injection system for better code organization and testing.

🐞

Debugging Tools

Integrated debugging tools to help you find and fix issues quickly.

Game Showcase

Check out what developers have built using Sprunk Engine.

Getting Started

Begin building your game in minutes with these simple steps.

1

Install the package

Use npm to install Sprunk Engine in your project.

npm i sprunk-engine
2

Initialize the 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);
3

Create your first game object

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);

Explore the Documentation

Comprehensive guides and API references to help you master Sprunk Engine.

Ready to Create Your Next Game Masterpiece?

Join developers around the world who are building amazing games with Sprunk Engine.

Start Building Today