load

adds an asset to the load queue

virtuosity.engine2d.load

Methods


Methods

image

adds an image to the load queue

virtuosity.engine2d.load.image(key, path);


Parameter Type Description
key String unique id of the image asset
path String path of the image asset

spritesheet

adds a spritesheet to the load queue

virtuosity.engine2d.load.spritesheet(key, path, frameWidth, frameHeight);


Parameter Type Description
key String unique id of the spritesheet asset
path String path of the spritesheet asset
frameWidth Int width of the frames in the spritesheet
frameHeight Int height of the frames in the spritesheet