Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setup() {
- // Initialize the game Runner.
- runner = new Runner('.game', {
- DINO_COUNT:10,
- onReset: handleReset,
- onCrash: handleCrash,
- onRunning: handleRunning
- });
- // Set runner as a global variable if you need runtime debugging.
- window.runner = runner;
- // console.info(runner)
- // Initialize everything in the game and start the game.
- runner.init();
- }
Add Comment
Please, Sign In to add comment