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.

Learn more →
🔧

Components

Transform, Collider, Rigidbody2D, BoxRenderer, and ScriptComponent.

View components →
🎨

Renderers

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

Choose renderer →
⚙️

Physics

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

Explore physics →
🎮

Input System

Keyboard, mouse, gamepad, and raycast picking from scripts.

Handle input →
🔄

Script Lifecycle

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

View lifecycle →
📖

API Reference

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

See API →
▶️

Live Examples

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

Try examples →