Rise.js
A framework for 3D, 2.5D and 2D web games on three.js.
The core covers what every game needs: game loop, input, camera, HUD, saves. Genre features live in packs that you import when you need them.
npm create risejs@latest my-gameHave a project already? Add it withnpm install risejs-core three
import { createApp, box } from 'risejs-core';
import 'risejs-core/style.css';
const game = {
id: 'hello',
title: 'Hello Rise',
build(app) {
app.add(box({ size: [2, 2, 2], position: [0, 1, -6], color: 0xffb347, tags: ['spin'] }));
},
tick(dt, app) {
for (const e of app.world.query('spin')) e.mesh.rotation.y += dt;
},
};
const app = await createApp({ game });
app.start();A game is an object with build() and tick().The game module
What's in Rise.js
core
Small core, opt-in packs
Packs ship inside risejs-core. Your bundler only includes the ones you import.
genres
Many genres, one API
FPS, top-down, grid tactics, platformer, 2D, interactive video, RPG, roguelike.
basics
Basics built in
Keyboard, mouse, gamepad and touch input. First-person, third-person, top-down and isometric cameras. HUD, saves, i18n.
packs
Gameplay packs
Combat, inventory, quest, dialogue, navmesh, tilemap, terrain, physics and more.
server
Multiplayer server example
An optional example on Cloudflare Workers and Durable Objects, with server-side validation of player actions.
agents
Docs and MCP
Full docs, plus an MCP endpoint so AI coding agents can look up APIs and packs.
Packs
Each pack is a separate plugin. Import it from risejs-core/packs/<name> and turn it on with app.use().
combat
Health, combatPlugin, hostile
inventory
InteractionSystem, Inventory, inventoryPlugin
quest
QuestLog, questPlugin
dialogue
createDialogue, dialoguePlugin
navmesh
NavGrid
tilemap
Tilemap, autotileMask, autotileVariant
terrain
Terrain, chunkRanges, chunkStats
physics
Body, GRAVITY, Heightfield
sprite2d
SortedSprites, SpriteAnimator, SpriteBatch
net
NetClient, netPlugin
vfx
FloatText, HitFlash, Particles
xr
detectSupport, featuresFor, pickMode
import { inventoryPlugin } from 'risejs-core/packs/inventory';
import { questPlugin } from 'risejs-core/packs/quest';
// build(app)
app.use(inventoryPlugin, { capacity: 8 });
app.use(questPlugin);Sample games
The sample games share one API. Each uses a different camera and set of packs.
City
FPS · city
Walk, run, jump, swim, crouch. NPCs, quests, inventory and physics.
Foundry
FPS · indoors
An indoor factory level with its own lighting, fog and NPCs.
Arena
Top-down · shooter
Top-down camera, combat, multiplayer through the net pack, touch controls.
Tactics
Grid tactics
A grid map with tile-by-tile movement using the grid pack.
Side
2.5D · platformer
Side-scrolling camera, jumping, checkpoints and triggers with the sideview pack.
Game 2D
2D · tilemap
Tilemaps, sprites, 2D movement and a 2D level editor.
For AI agents
risejs.dev has a read-only MCP endpoint at /api/mcp. Add it to Claude Code, Cursor or another MCP client and your agent can look up docs, packs and APIs while you code.
search_docsget_doclist_packsget_apiframework_info
{
"mcpServers": {
"risejs": {
"url": "https://risejs.dev/api/mcp"
}
}
}