Răsfoiți Sursa

Use proper export

Josh Engebretson 10 ani în urmă
părinte
comite
bb313097f7
1 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  1. 4 4
      Basic2D/Resources/Scripts/main.js

+ 4 - 4
Basic2D/Resources/Scripts/main.js

@@ -1,11 +1,11 @@
-
 // This script is the main entry point of the game
 // This script is the main entry point of the game
 
 
-Atomic.player.loadScene("Scenes/Scene.scene");
-
+var scene = Atomic.player.loadScene("Scenes/Scene.scene");
 
 
-// called per frame
+// called per frame, optional
 function update(timeStep) {
 function update(timeStep) {
 
 
 
 
 }
 }
+
+exports.update = update;