main.js 325 B

123456789101112131415161718192021
  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. var spaceNode = game.scene.createChild("Star");
  8. spaceNode.createJSComponent("Star");
  9. }
  10. // called per frame
  11. function Update(timeStep) {
  12. }