1.12.2 • Published 5 years ago

gameframework-lite v1.12.2

Weekly downloads
6
License
MIT
Repository
github
Last release
5 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

5 years ago

1.12.1

5 years ago

1.12.0

5 years ago

1.11.1

6 years ago

1.11.0

6 years ago

1.10.0

6 years ago

1.9.0

6 years ago

1.8.3

6 years ago

1.8.2

6 years ago

1.8.1

6 years ago

1.8.0

6 years ago

1.7.15

6 years ago

1.7.14

6 years ago

1.7.13

6 years ago

1.7.12

6 years ago

1.7.11

6 years ago

1.7.10

6 years ago

1.7.9

6 years ago

1.7.8

6 years ago

1.7.7

6 years ago

1.7.6

6 years ago

1.7.5

6 years ago

1.7.4

6 years ago

1.7.3

6 years ago

1.7.2

6 years ago

1.7.1

6 years ago

1.7.0

7 years ago

1.6.4

7 years ago

1.6.3

7 years ago

1.6.0

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago