File size: 495 Bytes
ca81e93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"use strict";
Array.prototype.clear = function () {
    while (this.length) {
        this.pop();
    }
};
window.JellyTruck = {	
	// reference to the Phaser.Game instance
	game: null,
	disableWebAudio: true,
	// main function
	main: function(){
		this.game = new Phaser.Game(800,480, Phaser.CANVAS, document.body, window.JellyTruck.state.boot);
	},	
	// here we will store all states
	state: {}
};

window.addEventListener('DOMContentLoaded', function(){	
	window.JellyTruck.main();	
}, false);