main.js 350 B

12345678910111213141516171819202122
  1. // This script is the main entry point of the game
  2. // called at the start of play
  3. function Start() {
  4. var game = Atomic.game;
  5. // create a 2D scene
  6. game.createScene2D();
  7. // create the game component
  8. var node = game.scene.createChild("SpaceGame");
  9. node.createJSComponent("SpaceGame");
  10. }
  11. // called per frame
  12. function Update(timeStep) {
  13. }