main.js 455 B

1234567891011121314151617181920212223242526272829
  1. // This script is the main entry point of the game
  2. require("AtomicGame");
  3. Atomic.script("utils.js");
  4. Atomic.game.init(start, update);
  5. // called at the start of play
  6. function start() {
  7. var game = Atomic.game;
  8. // create a 2D scene
  9. game.createScene2D();
  10. TheView = new Atomic.UIView();
  11. var uiNode = game.scene.createChild("UI");
  12. uiNode.createJSComponent("TestButtons");
  13. }
  14. // called per frame
  15. function update(timeStep) {
  16. }