0.0.0 • Published 3 years ago
videogame-plugin v0.0.0
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