freerunner
v0.0.7
Published
Freerunner, a typed event driven entity compent system based game engine.
Downloads
12
Maintainers
Readme
Freerunner
Frerunner is an event driven game engine.
Frerunner is a entity component system based game engine.
Frerunner is...
well...
Honestly at this early stage it is not much more than a typescript wrapper around Crafty. If you have tried craftyjs you know what a wonderful engine it is and how powerful yet simple the ecs pattern is for game development. Sadly crafty never made it to 1.0.0 and hasn't seen a commit in the last 4 or so years. Crafty has decent api documentation and most of it applies on Freerunner.
Getting started
Install
npm i freerunner
Usage
game.ts
import Freerunner from 'freerunner'
const F = Freerunner() // F is you new Crafty object
F.init()
F.e('2D, Color').attr({x:10, y:10, h:20, w:20}).color('hotpink')
See Platformer demo for a working example.
And did I mention it's based on Crafty?