|
@@ -1,9 +1,13 @@
|
|
|
// This script is the main entry point of the game
|
|
// This script is the main entry point of the game
|
|
|
|
|
|
|
|
|
|
+require("AtomicGame");
|
|
|
|
|
+
|
|
|
Light2DExample = {};
|
|
Light2DExample = {};
|
|
|
|
|
|
|
|
|
|
+Atomic.game.init(start, update);
|
|
|
|
|
+
|
|
|
// called at the start of play
|
|
// called at the start of play
|
|
|
-function Start() {
|
|
|
|
|
|
|
+function start() {
|
|
|
|
|
|
|
|
var game = Atomic.game;
|
|
var game = Atomic.game;
|
|
|
|
|
|
|
@@ -49,7 +53,7 @@ function Start() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// called per frame
|
|
// called per frame
|
|
|
-function Update(timeStep) {
|
|
|
|
|
|
|
+function update(timeStep) {
|
|
|
|
|
|
|
|
physicsWorld.drawDebugGeometry();
|
|
physicsWorld.drawDebugGeometry();
|
|
|
|
|
|