Class: Item

Item

new Item(opt_options=)

Creates a new Item.
Parameters:
Name Type Argument Default Description
opt_options= Object <optional>
A map of initial properties.
opt_options.world Object <optional>
undefined A Bit-Shadow World. Required.
opt_options.name number <optional>
'Item' Name.
Source:

Methods

init()

Initializes the Item.
Source:

reset(opt_options=)

Sets item's properties via initial options.
Parameters:
Name Type Argument Default Description
opt_options= Object <optional>
A map of initial properties.
opt_options.blur number <optional>
0 Blur.
opt_options.scale number <optional>
1 Scale. Use to change the item's size.
opt_options.opacity number <optional>
1 Opacity. Valid values are between 0 and 1.
[opt_options.color Array = [0, 0, 0]] Color.
Source: