Skip to content
A small canvas game engine w/ matter.js physics engine.
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img
js
levels
.gitattributes
.gitignore
LICENSE
README.md
index.html
package-lock.json
package.json

README.md

m2d-engine

A small engine that will be used later for my game.

Demo

Check out the demo

Controls

Key Action
Arrow Keys Movement
Space Jump
n Switch levels
v Toggle boundaries

Level JSON Data Type

{
    "title": "String",
    "gameType": "String ('sideScroll'/'topDown')",
    "sprites": "Array of strings",
    "player": ["x", "y", "w", "h", "spriteIndex", [ ["animName", "tileX", "tileY"] ] ],
    "entities": [ ["x", "y", "w", "h", "spriteIndex", [ ["animName", "tileX", "tileY"] ], "options" ] ]
}
You can’t perform that action at this time.