A modern & lightweight HTML5 game engine

melonJS is an open-source HTML5 game engine for building 2D games with JavaScript and TypeScript. Lightweight, dependency-free, and fully tree-shakeable.

Fast

ES6 classes & tree-shaking. WebGL renderer with Canvas fallback. Web Audio with 3D spatial sound.

Free

Released under the permissive MIT License. No cost. Forever.

Standalone

Zero dependencies. Compatible with all major browsers and mobile devices. Under 100kb gzipped.

Powerful Level Design

Design your levels visually with the Tiled map editor. melonJS natively supports orthogonal, isometric, and hexagonal maps with multiple layers, parallax scrolling, and more.


Image

Features


  • Fast WebGL & Canvas rendering across desktop and mobile
  • Web Audio with 3D spatial sound
  • Sprites, animations, tinting, masking & 2D lighting
  • Built-in 2D physics & collision detection
  • Tiled map editor integration (orthogonal, isometric, hexagonal)
  • Multi-input: mouse, touch, keyboard, gamepad & accelerometer
  • Camera system with effects (shake, fade, flash)
  • UI toolkit with drag-and-drop support
  • Tweens, transitions & particle effects
  • State manager, asset loader & plugin system
  • Under 100kb gzipped — zero dependencies
browser icons example

Compatibility


Compatible with all major browsers and mobile devices

BrowserVersionStatus
Chrome / Edge 80+
Firefox 80+
Safari 14+
Opera 67+
Chrome Mobile 80+
iOS Safari 14+

Developer Spotlight

Third Party Tools Integration


melonJS provides native integration and support for the following 3rd party tools :