You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
micro 2D is a simplified API for accelerated 2D rendering. It is based on Pixi.js. It is currently very minimal but it will grow in the future. If you are looking for a stable, feature-complete 2D API, look into Pixi.js instead.
Scene
Setting up the scene:
scene = new M2D.Scene()
Adding sprites
sprite = new M2D.Sprite("icon",32,32)
scene.add(sprite)
Setting up the camera
camera = new M2D.Camera()
Rendering
In your function draw(), simply call screen.render, passing your scene and camera as arguments: