Build games with
React
A 2D game engine that feels like building a website. Drag-and-drop in the editor or write real TypeScript — then publish to the web and share with the world.
npx create-cubeforge-game my-gameCode that reads like a scene
Entities are React components. Physics, sprites, and behavior compose naturally — just like building a UI.
1function Player({ x, y }) {2 return (3 <Entity id="player" tags={['player']}>4 <Transform x={x} y={y} />5 <Sprite width={32} height={48} color="#4fc3f7" />6 <RigidBody />7 <BoxCollider width={28} height={44} />8 <Script update={movement} />9 </Entity>10 )11}
Full constraint solver with contacts, friction, and CCD
init + update per frame, access to input and ECS
Everything you need
A complete game engine in a single npm package. No configuration, no boilerplate.
60 Hz Fixed Timestep
Deterministic physics with fixed-step integration. Same behavior at 30 FPS or 144 FPS — no frame-rate dependent bugs.
ECS Architecture
Archetype-based Entity Component System with cached queries and selective invalidation. Fast iteration over thousands of entities.
Impulse Physics
Sequential impulse constraint solver with warm starting, Coulomb friction, CCD, joints, and contact manifolds. Rapier-grade quality.
10+ Collider Shapes
Box, circle, capsule, convex polygon, triangle, segment, height field, half-space, and tri-mesh. Plus compound colliders.
Zero Dependencies
No Three.js, no Pixi, no Rapier WASM. Just React and a Canvas2D renderer. Under 60 KB gzipped total.
Plugin System
Extend the engine with custom systems via definePlugin(). Register systems, hook lifecycle events, declare dependencies.
Publish Anywhere
Static HTML + JS output. Deploy to S3, Netlify, Vercel, or GitHub Pages. Share games with a URL.
Built for Learning
Declarative API that reads like English. Perfect for kids and beginners — if you can build a React app, you can build a game.
Play, remix, publish
Browse games built with CubeForge. Play in the browser, remix the source, or publish your own to the community.
Platformer
Full platformer with enemies, coins, and coyote-time jumps
Mario Clone
Multi-level recreation with power-ups and enemy AI
Top-Down RPG
WASD movement with collision, enemies, and key pickups
Endless Runner
Auto-scrolling obstacle course with score tracking
Breakout
Classic brick-breaker with paddle, ball, and power-ups
Flappy Bird
Tap-to-fly through pipes with score and restart
Start building in seconds
Use the drag-and-drop editor or scaffold with code. Hot reload, TypeScript, and a playable template out of the box.
npx create-cubeforge-game my-gamecd my-game && pnpm devpnpm build && deploy