Skip to content
Olivier Biot edited this page Jun 17, 2026 · 126 revisions

Welcome to the melonJS wiki — your guide to building 2D and 3D games with melonJS.


Getting Started

New to melonJS? Start here:

npm create melonjs my-game
cd my-game
npm install
npm run dev

Core Concepts


Rendering

  • Rendering API — full API reference with Canvas 2D comparison, gradients, dashed lines, bezier curves, and more
  • Shader Effects — built-in WebGL post-processing effects (glow, shine, blur, …) and writing your own
  • API Documentation — auto-generated API docs

Working in 3D

  • Working in 3D — general concepts: Camera3d opt-in, conventions (Y-down + +Z forward), Mesh / OBJ rendering, sprites + depth, and frame-rate-independent smoothing (math.damp). Worked example: AfterBurner showcase.
  • Loading & supported 3D assets — the asset pipeline (OBJ/MTL), and what's supported vs. not across geometry, materials/textures, animation, and lighting.
  • Loading glTF / GLB scenes — import a whole Blender-authored scene (node graph, meshes, camera) and place each node as a Mesh.
  • 3D spatial queriesSphere, world.adapter.querySphere, raycast3d, and bulk frustum culling (Camera3d.queryVisible).
  • 2.5D games (Paper Mario-style) — perspective camera for depth, gameplay on a flat Z plane.

Physics & Collision


Tiled Map Editor


Third-Party Tools


Platform Deployment


Community & Resources


Tutorials


Learning JavaScript

Clone this wiki locally