API Docs for: 0.0.2
Show:

Atlantis.GameTime Class

Module: Framework
Parent Module: Atlantis

Create a game time object who's responsible to get time informations.

Constructor

Atlantis.GameTime

()

Methods

getElapsedTime

() Number

Gets the elapsed time since last frame.

Returns:

Number:

The elapsed time since last frame.

getFPS

() Number

Gets the current FPS indice.

Returns:

Number:

Return the current FPS.

getTotalGameTime

() Number

Gets the total elapsed time since the begining.

Returns:

Number:

The total elapsed time.

reset

()

Reset the game timer.

update

()

Update the game time.