Fork me on GitHub

Fresh & lightweight

melonJS is a lightweight but yet powerful HTML5 framework designed from the ground up to provide a true plugin-free 'write-once, run-everywhere' gaming oriented library. melonJS is an open-source project and supported by a community of enthusiasts. See our Gallery for a few examples of games powered by melonJS.

Powerful level design through Tiled

melonJS integrates the popular Tiled map format, allowing to easily design levels using the Tiled map editor, and to focus on the game features itself.

Free and open-source

melonJS is an open-source HTML5 based community game engine, released under the MIT license. You can join the project, or modify or extend the framework in any way to fit your needs.

Feature list :

  • A fresh and lightweight 2D sprite-based engine
  • Standalone library (no additional dependencies)
  • Modern HTML5 features; WebAudio & WebGL on supported devices
  • High DPI & auto scaling video modes
  • Tween & Transition effects
  • Compatible with all major browsers & mobile devices:
    • Chrome, Safari, Firefox, Opera, IE
    • Android, iOS, CocoonJS
  • A lightweight physics implementation to ensure low cpu requirements:
    • Polygon (SAT) based collision algorithm for accurate detection and response
    • Fast broad-phase collision detection using spatial partitioning
    • Advanced math API for Vector and Matrix
    • 3rd party tools support for physic body definition (PhysicEditor, Physic Body Editor)
  • A basic set of extensible Object Entities:
    • Object Pooling
    • Basic Particle System
    • Basic animation management
    • Standard spritesheet and Packed Textures (TexturePacker, Shoebox) support
    • Some basic GUI elements
  • Tiled map format version +0.9.x integration for easy level design:
    • Orthogonal, Isometric, Hexagonal, and Perspective tilemap support
    • Multiple layers with parallax scrolling
    • Shape-based collision layers (Rectangle, Ellipse, Polygon, and Polyline)
    • JSON and XML formats
  • System and Bitmap fonts
  • A state manager and customizable loader
  • Mouse, Touch, and Pointer device support
  • Device motion, orientation, and accelerometer support
browser icons example

Browser Compatibility

See below about melonJS and compatibility with the various existing browsers.

Chrome 12+fully working
Safari5.0+fully working
Firefox4+fully working
Opera11.00+fully working
IE9+fully working