Documentation

Everything you need to build games with KernelPlay.js

Get Started →
🚀

Getting Started

Install the library and build your first game. npm, CDN, and basic setup.

Read guide →
🧠

Core Concepts

Game, Scene, Entity, Component — the four pillars of KernelPlay.js architecture.

Read guide →
🔧

Components

Transform, Collider, Rigidbody2D, BoxRenderer, and ScriptComponent.

Read guide →
🎨

Renderers

Canvas 2D, WebGL 2D, and Three.js 3D rendering backends.

Read guide →
⚙️

Physics System

Gravity, velocity, collision detection, triggers, and rigidbodies.

Read guide →
🎮

Input System

Touch joystick and swipes, Gamepad buttons, sticks and triggers, plus the unified Input manager with custom actions and JSON config.

Read guide →
🛠️

Helper Classes

Utility classes for common tasks: math, random, asset loading, and more.

Read guide →
🔄

Script Lifecycle

onAttach, onStart, update, lateUpdate, onCollision, onDestroy.

Read guide →
🔌

Prop Injection

Configure entities and components dynamically with a flexible property injection system.

Read guide →
📸

Multiple Cameras

Implement split-screen, minimaps, or cinematic views with multiple cameras.

Read guide →
🎬

Advanced Animation

Explore keyframe animation, animation blending, and custom animation curves.

Read guide →
🖼️

Sprite Management

Learn to use sprite sheets, atlases, and efficient sprite rendering techniques.

Read guide →
🔊

AudioSource

playOneShot, playLoop, named clips, preloading, background music and AudioListener setup.

Read guide →
🖼️

UI System

UICanvas setup, themes, UIPanel, UIText, UIButton, UIProgressBar, UISlider, UIInputField, world-space UI and a full HUD example.

Read guide →
🔧

Debug System

UI overlay with live stats, and in-world draw layers for physics, bounds, and cameras.

Read guide →
🖥️

Modular Renderer

The same component can then work with Canvas2D, Pixi, or future backends

Read guide →
📖

API Reference

Complete method tables for Entity, Scene, SceneManager, and more.

Read guide →
▶️

Live Examples

Interactive canvas demos with full code — platformer, bouncing balls, triggers, and more.

Try examples →