Guest User

Untitled

a guest
Jan 24th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. function setup() {
  2. // Initialize the game Runner.
  3. runner = new Runner('.game', {
  4. DINO_COUNT:10,
  5. onReset: handleReset,
  6. onCrash: handleCrash,
  7. onRunning: handleRunning
  8. });
  9. // Set runner as a global variable if you need runtime debugging.
  10. window.runner = runner;
  11. // console.info(runner)
  12. // Initialize everything in the game and start the game.
  13. runner.init();
  14. }
Add Comment
Please, Sign In to add comment