freerunner
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

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?

Package Sidebar

Install

npm i freerunner

Weekly Downloads

7

Version

0.0.7

License

ISC

Unpacked Size

863 kB

Total Files

73

Last publish

Collaborators

  • j.g.sebring