main.js 351 B

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