1.12.2 • Published 6 years ago

gameframework-lite v1.12.2

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

Version Known Vulnerabilities

PIXI.js + Game Loop + Level Loop + Character Loop

Isomorphic, Scalable, Node.js package

examples (non-MIT)

Games made on it:

documentation

https://prozi.github.io/gameframework-lite/

installation

npm install gameframework-lite@latest --save

or

yarn add gameframework-lite@latest --save

testing

  • yarn test

  • open http://localhost:3000

usage

require 'gameframework-lite' for:

  • DEFER,
  • Game,
  • Level,
  • Block,
  • Hero,
  • atan2
  • random

require 'gameframework-lite/view' for:

  • View

require 'gameframework-lite/extract' for:

Editions

We're using npm editions here so you can use gameframework-lite/source/... for import/export

or regular gameframework-lite/es2015/... for require syntax

or trust editions and just use gameframework-lite

Texture Extractor

Examples

const View = require('gameframework-lite/view');
const PIXI = window.PIXI || require('pixi.js');

// this is how you should use View
class MyView extends View {
	// override example
	onCreateHero (hero) {
		hero.sprite = PIXI.Sprite.from('bunny.png');
		hero.sprite.anchor.set(0.5);
		hero.sprite.scale.set(3);
	}
}

new MyView();
const { Level, Game } = require('gameframework-lite');

// this is how you should use Game
class MyGame extends Game {
	// one room game example
	constructor () {
		super();
		this.levels.push(new Level());
	}
	// override what you need
	onUpdate () {
		console.log('tick');
	}
}

new MyGame();

view example/index.html to see benchmark/test

License

License MIT

Author

made by me - Jacek Pietal (prozi85@gmail.com)

1.12.2

6 years ago

1.12.1

6 years ago

1.12.0

6 years ago

1.11.1

7 years ago

1.11.0

7 years ago

1.10.0

7 years ago

1.9.0

7 years ago

1.8.3

7 years ago

1.8.2

7 years ago

1.8.1

7 years ago

1.8.0

7 years ago

1.7.15

7 years ago

1.7.14

7 years ago

1.7.13

7 years ago

1.7.12

7 years ago

1.7.11

7 years ago

1.7.10

7 years ago

1.7.9

7 years ago

1.7.8

7 years ago

1.7.7

7 years ago

1.7.6

7 years ago

1.7.5

7 years ago

1.7.4

7 years ago

1.7.3

7 years ago

1.7.2

7 years ago

1.7.1

7 years ago

1.7.0

8 years ago

1.6.4

8 years ago

1.6.3

8 years ago

1.6.0

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.0

8 years ago

1.3.3

8 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.9

8 years ago

1.1.8

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago