This repository has been archived by the owner on Apr 4, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace AMD with Browserify (fixes #48)
- Loading branch information
Showing
9 changed files
with
54 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
import * as Debugging from 'js/debugging.js'; | ||
import * as FrameManager from 'js/frame_manager.js'; | ||
import * as ViewportManager from 'js/viewport_manager.js'; | ||
import * as GamepadControl from 'js/controls/gamepad.js'; | ||
import * as KeyboardControl from 'js/controls/keyboard.js'; | ||
import * as Utils from 'js/lib/utils.js'; | ||
import Debugging from './debugging.js'; | ||
import FrameManager from './frame_manager.js'; | ||
import ViewportManager from './viewport_manager.js'; | ||
import GamepadControl from './controls/gamepad.js'; | ||
import KeyboardControl from './controls/keyboard.js'; | ||
import Utils from './lib/utils.js'; | ||
|
||
var runtime = {}; | ||
runtime.utils = new Utils(); | ||
window.addEventListener('DOMContentLoaded', function () { | ||
// Wait for the document to load so the constructors can | ||
// find their necessary elements. | ||
|
||
runtime.debugging = new Debugging(); | ||
runtime.frameManager = new FrameManager(); | ||
runtime.gamepadControl = new GamepadControl(); | ||
runtime.keyboardControl = new KeyboardControl(); | ||
runtime.viewportManager = new ViewportManager(); | ||
var runtime = {}; | ||
runtime.utils = new Utils(); | ||
|
||
runtime.debugging.start(runtime); | ||
runtime.frameManager.start(runtime); | ||
runtime.gamepadControl.start(runtime); | ||
runtime.keyboardControl.start(runtime); | ||
runtime.viewportManager.start(runtime); | ||
runtime.debugging = new Debugging(); | ||
runtime.frameManager = new FrameManager(); | ||
runtime.gamepadControl = new GamepadControl(); | ||
runtime.keyboardControl = new KeyboardControl(); | ||
runtime.viewportManager = new ViewportManager(); | ||
|
||
runtime.debugging.start(runtime); | ||
runtime.frameManager.start(runtime); | ||
runtime.gamepadControl.start(runtime); | ||
runtime.keyboardControl.start(runtime); | ||
runtime.viewportManager.start(runtime); | ||
}); |
Oops, something went wrong.