0.1.0 • Published 9 years ago
moirai v0.1.0
moirai
React.js game engine. Exciting, experimental and unstable.
moirai
borrows a lot of ideas from Lyria.
What does it look like?
Let's create a game:
import React from 'react';
import Moirai from 'moirai';
const {Game, Viewport, SceneDirector, Scene, GameObject} = Moirai;
var updateFn = function(dt, gameObject) {
gameObject.setState({x: gameObject.state.x += (dt * 10)});
};
Moirai(
<Viewport>
<SceneDirector>
<Scene>
<GameObject initialX={10} initialY={10} />
<Texture source="hero.png" />
<Behavior
onUpdate={updateFn} />
<GameObject />
</Scene>
</SceneDirector>
</Viewport>
).render();
This game engine is heavily inspired by React Router.
Philosophy
- Thin layer on top of React.js
License
Public domain (UNLICENSE). If that does not work for you, you are allowed to license it under the terms of the MIT license.
0.1.0
9 years ago
0.1.0-alpha6
9 years ago
0.1.0-alpha5
9 years ago
0.1.0-alpha4
9 years ago
0.1.0-alpha3
9 years ago
0.1.0-alpha2
9 years ago
0.1.0-alpha1
9 years ago