API Docs for: 0.1.1
Show:

SpriteSheet Class

Module: Joy

Handles spritesheet animations

Constructor

SpriteSheet

(
  • options
  • animations
)

Parameters:

  • options Object
  • animations Object

Item Index

Methods

Methods

stop

() SpriteSheet

Stop current animation

Returns:

SpriteSheet: this

Attributes

currentAnimation

String readonly

currentFrame

Number

framesPerSecond

Number

Frames per second.