0.0.0 • Published 3 years ago

videogame-plugin v0.0.0

Weekly downloads
11
License
MIT
Repository
github
Last release
3 years ago

build status downloads license npm version

videogame-plugin

videogame plugin library

plugins collection compatible with videogame

clickable

implements cursor and clickable sprites (for pointer-based games)

controllable

implements a controllable sprite (for controller-based games)

fog

fog effect, requires a pair of contiguous images as assets

usage

const Fog = videogame.plugin.fog.Fog;
scene.add(new Fog());

jumper

jumper sprite plugin (for platformer games)

starfield

starfield to be used as a background effect, with white or custom colors

usage

const Color = videogame.Color;
const Starfield = videogame.plugin.starfield.Starfield;

scene.add(new Starfield()
	.setColors([Color.Cyan, Color.Magenta, Color.Yellow]) // optional colors array
	.setSpeedX(-1) // optional horizontal speed
	.setSpeedY(1)); // optional vertical speed
0.0.0

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago