Fresh & lightweight
melonJS is the result of our enthusiasm and past experiments with Javascript, and came from the feeling that no simple, free and standalone library was available to develop games. And although still a work in progress, melonJS already allows to easily create some nice games (see the Gallery page)
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.
Along necessary bug fixing, some other nice features are still to come, so please come back regulary !
Free and open-source
melonJS is an open-source HTML5 based community game engine, released under the MIT license, that you can join, but that you can also modify or extend in any way to fit your needs.Feature list :
- A fresh and lightweight 2D sprite-based engine
- Standalone library (does not rely on anything else, except a HTML5 capable browser)
- Compatible with all major browsers (Chrome, Safari, Firefox, Opera, IE)
- Multiple Audio Channel support
- Basic physics and collision mechanisms (to ensure low cpu requirements)
- A basic set of Object Entities (to be extended)
- Basic Vector Math
- Tween effects
- Transition effects
- A basic set of Object Entities (to be extended)
- Object Pooling
- Basic animation management
- Standard spritesheet and Packed Textures (Texture Packer) support
- A state manager (to easily manage loading, menu, options or in-game screen state and switch)
- Tiled map format version +0.9.x integration for easy level design :
- Uncompressed Plain, Base64, CSV and JSON encoded XML tilemap loading
- Orthogonal tilemap with built-in collision management
- Isometric, Perspective tilemap support
- Multiple layers (multiple background/Foreground, collision and Image layers)
- Multiple Tileset support
- Tileset Transparency settings
- Layers Alpha settings
- Tiled Object
- Flipped & rotated Tiles
- Dynamic Layer and Object/Group ordering
- Dynamic Entity loading (melonJS will instantiate JS object matching the object property name defined in the tilemap)
- Solid, Platform, Slope and Breakable Tiles
- System and Bitmap fonts
- Mouse and Touch device support
- Mouse emulation on touch devices
- Built-in support for CocoonJS
- Asynchronous messaging support (minPubSub)
- some basic GUI elements
- a customizable loader, etc. . .
Browser Compatibility
See below about melonJS and compatibility with the various existing browsers.
| Browser | Version | Status |
|---|---|---|
| Chrome | 12+ | fully working |
| Safari | 5.0+ | fully working |
| Firefox | 4+ | fully working |
| Opera | 11.00+ | fully working |
| IE | 9+ | fully working |






