-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.js
47 lines (43 loc) · 1.03 KB
/
game.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
(function () {
var config = {
width: 1300,
height: 700,
type: Phaser.AUTO,
parent: 'phaser-example',
title: 'ThinkScape',
backgroundColor: 0x336699,
input: {
keyboard: true,
mouse: true,
touch: true,
},
physics: {
default: 'arcade',
arcade: {
debug: false
}
},
dom: {
createContainer: true
},
//Scenes of the game
scene: [
nicknameScene,
tutoScene,
map1Scene,
map2Scene,
map3Scene,
map4Scene,
map5Scene,
loseScene,
winScene
]
};
var game = new Phaser.Game(config);
//Start first map
game.scene.start('nickname');
var lives=5;
localStorage.setItem("lives",lives);
var name = '';
localStorage.setItem("nomeDeUsuario", name);
})();