API Docs for: 0.0.2
Show:

Atlantis.SpriteAnimation Class

Module: Engine
Parent Module: Atlantis

A sprite animation define an animation which is a group of frames An animation is a serie of rectangle on a spritesheet

Constructor

Atlantis.SpriteAnimation

(
  • length
  • framerate
)

Parameters:

  • length Object

    The number of frames

  • framerate Object

    The desired frame rate.

Item Index

Methods

Methods

next

() Atlantis.Rectangle

Gets the next available frame of the animation.

Returns:

Atlantis.Rectangle:

Return the next frame of the animation.

update

()

Update animation index relative to time.