Constructor Summary
| Public Constructor | ||
| public |
Keep track of the instance of the app, document body, chat input and the game |
|
Member Summary
| Public Members | ||
| public |
Instance of the client application |
|
| public |
Instance of the DOM $('body') element |
|
| public |
Instance of the DOM $('#chatInput') DOM element |
|
| public |
Instance of the game class running on the HTML5 Canvas |
|
Method Summary
| Public Methods | ||
| public |
Add classes to the body element after detecting the user's browser or device |
|
| public |
Adds event listeners for a resize check |
|
| public |
Document in jQuery is ready to go |
|
| public |
initGame() Initialize the game once the client application is ready |
|
| public |
load() Initialize the application and the game as soon as the DOM is ready |
|
Public Constructors
public constructor() source
Keep track of the instance of the app, document body, chat input and the game
Test:
Public Members
Public Methods
public addClasses() source
Add classes to the body element after detecting the user's browser or device
Test:
public addResizeListeners() source
Adds event listeners for a resize check
Listen:
touchstart |
touching start |
touchmove |
touching move/drag |
transitionend |
transition ends |
webkitTransitionEnd |
webkit transition ends |
oTransitionEnd |
opera transition ends |
orientationchange |
device orientation change |
public initGame() source
Initialize the game once the client application is ready
Listen:
when App is done loading |
Reference
Source
Test
