Atlantis.Game Class
Create a game instance who is the starting point of the Framework.
Constructor
Atlantis.Game
(
-
width
-
height
-
(optional)
-
(optional)
Parameters:
-
width
NumberDesired screen width.
-
height
HeightDesired screen height.
-
(optional)
DomElementdomElement Sepecify a DOM element to attach the canvas.
-
(optional)
Paramsparams
Item Index
Methods
Properties
Methods
draw
()
In this method the screen must be cleared and components are drawn. All draw code come here.
initialize
()
Initialize the game logic and components.
loadContent
()
Load content.
pause
()
Set the game in pause mode. The canvas is no more updated and drawn.
resume
()
Resume a paused game.
run
()
Methods called by the main loop on each frame who call update and draw methods.
unloadContent
()
Unload content.
update
()
Update