main.js 403 B

123456789101112131415161718192021222324252627
  1. // This script is the main entry point of the game
  2. require("AtomicGame");
  3. Atomic.game.init(start, update);
  4. // called at the start of play
  5. function start() {
  6. var game = Atomic.game;
  7. // create a 2D scene
  8. game.createScene3D();
  9. // create the game component
  10. var node = game.scene.createChild("TheScene");
  11. node.createJSComponent("Scene");
  12. }
  13. // called per frame
  14. function update(timeStep) {
  15. }