voxel-spider
blocky spider creatures for your voxel.js game
example
var createGame = ;var voxel = ;var skin = ;var game =;game;var createPlayer = game;var substack = ;substack;window;var createSpider = game;var spider = ;;;;windowspider = spider;
methods
var voxelSpider =
var createSpider = voxelSpider(game)
Return a function createSpider
from the
voxel-engine instance game
.
var spider = createSpider()
Create a spider
.
spider.move(x, y, z)
Move a relative amount by modifying the velocity.
attributes
spider.rotation
Control the rotation about the x
, y
, and z
axis by updating
spider.rotation.x
, spider.rotation.y
, and spider.rotation.z
in radians.
spider.position
Update the spider position by setting x
, y
, and z
attributes.
install
With npm do:
npm install voxel-spider
license
MIT