Render Class
Initialices rendering and animate entities.
Constructor
Item Index
Methods
animate
()
Rendering loop.
drawHelperLine
(
-
x0 -
y0 -
x1 -
y1
Draw a helper line from 0 to 1.
init
(
-
textures -
events
Initialice render.
screenToWorld
(
Object
-
x -
y
Convert screen coordinates to world coordinates.
Returns:
Object:
world coordinate {x:x,y:y}
start
()
Start rendering loop.
stop
()
Stop rendering loop.
