Updated: Replaced the GameObjectManager with a Scene class. In addition it will also represent categories of entities and operations in your game. These scenes allow a convenient way to divide up the game into manageable components that can be paused, run concurrently, and stopped at any time.

This commit represents the initial work to replace the game object manager and change how game objects are initialized. You now must pass a scene to a game object to initialize it, no longer requiring it to be added to a manager after.

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Updated: Had to fix all the example projects to fit the scene code.

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Fixed: The ui button classes now work with the new scene code.

Updated: Further work on integrating scenes with the code base. There is now code to support the render depth of scenes that run concurrently. Each scene has a separate canvas for rendering (through the RenderLayerManager.hx) and they overlap exactly inside the target element.

Updated: The global scene was removed due to the fact that scenes are more personal now and a global one isn't necessary when the developer will likely be modifying how it works themself.

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Updated: The StarControl clone demo has been updated with new scene code to support the newest design practices and to test multiple concurrent scenes

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Fixed: Scenes seem to be destroyed properly now, although there is some issue with input events not being captured after the same scene is recreated.

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Updated: Created proper menu code to test scenes further

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Merge branch 'master' of https://github.com/Salbris/Titanium-Reindeer into scenes

Conflicts:
	examples/random/hx/TestGame.hx
	examples/random/js/TestGame.js

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Merge branch 'scenes' of https://github.com/Salbris/Titanium-Reindeer into scenes
Fixed: The bug where scene destruction and recreation appeared to cause mouse events to break. The input manager had a bug where queued event registrations would break on any buttons and mouse wheel events.

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Updated: Now cleaning up things properly throughout the mouse region handler stuff and in the scene class.

Note: At this point there are very few memory leaks directly caused by titanium reindeer.

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Added an ignore for generated javascript files.

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Added: readme files to the empty js directories inorder for them to appear in git and make compilation simpler for new users.

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Added: Scenes can now be paused causing all things within to stop updating, thus doing anything.

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Star control example updated to test scene pausing

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Updated: The random example project now works with the new scene code.

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Updated: The composition example project now works with the new scene code.

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Updated: The input manager is now simplified and been split into two different types. The Game input manager controls all the events from the DOM and delegates those events to the scene input manager.

When the scene is paused it's input events are stopped through the scene input manager.

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Updated: It was easier to make sure that animation is paused properly when the man was on a looping animation.

Updated: The random example project now uses the scene input manger, so that can be tested.

Signed-off-by: Ryan Badour <rybadour@gmail.com>
Merge branch 'scenes' of https://github.com/Salbris/Titanium-Reindeer into scenes
Updated: The MouseRegions and the UI Button classes use their scene's input manager not the games.
This enables their operation to be paused like everything else.

Signed-off-by: Ryan Badour <rybadour@gmail.com>