Game#addComponent(component) → Game
-
component
(Component
)
– The top-level component to add to the game loop and begin rendering.
Adds a Component
to the game. It will be rendered onto the screen,
and considered in the game loop. Returns the Game
object (this),
for chaining.