Horizontal velocity of the visual.
Vertical velocity of the visual.
Horizontal position of the visual.
Vertical position of the visual.
Stores animations. Keys are the animation label, values are Ani objects
Adds an animation to the Sprite or Visual.
the URL of the sprite sheet image
the number of frames in the sprite sheet
A promise that fulfills when the animation is loaded
Add multiple animations to the Sprite or Visual.
an object with animation names as keys and an animation or animation atlas as values
A promise that fulfills when the animations are loaded
Add multiple animations to the Sprite or Visual.
the URL of the sprite sheet image
an object with animation names as keys and an animation or animation atlas as values
A promise that fulfills when the animations are loaded
Add multiple animations to the Sprite or Visual.
the URL of the sprite sheet image
the size of each frame in the sprite sheet in the format "WIDTHxHEIGHT" (example: "32x32")
an object with animation names as keys and an animation or animation atlas as values
A promise that fulfills when the animations are loaded
Changes the sprite's animation. Use addAni to define the
animation(s) first.
the name of the animation to switch to
Draws the visual on the canvas.
Plays an animation.
You can put special modifier characters before the name:
the name of the animation to play
A promise that fulfills when the animation completes
Plays a sequence of animations.
You can put special modifier characters before each ani name:
You can put sequence modifiers at the end of the sequence:
the names of animations
A promise that fulfills when the sequence completes
A Visual object stores an image or animation(s) which can be displayed with respect to the camera.