-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloader.js
40 lines (40 loc) · 1.48 KB
/
loader.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
define(['game','states/mazmorra','states/dataLoader','states/menu','states/tienda','states/persecution', 'states/intro', 'states/mas'], function (Game,Mazmorra,DataLoader,Menu,Tienda,Persecution,Intro,Mas) {
return {
start: function () {
Game.state.add('DataLoader', new DataLoader());
Game.state.add('Menu', new Menu());
Game.state.add('Tienda', new Tienda());
Game.state.add('Intro', new Intro());
Game.state.add('Persecution', new Persecution());
Game.state.add('Mazmorra', new Mazmorra());
Game.state.add('Mas', new Mas());
Game.forceSingleUpdate=true;
Game.global = {
nivelMax: 0, //Debe estar a cero en la entrega
score: 0,
deads: 0,
deadsR: 0,
oro: 0, // A cero
espada1: 0,
espada2: 0,
espada3: 0,
pocion1: 0,
pocion2: 0,
pocion3: 0,
defensa1: 0,
defensa2: 0,
defensa3: 0,
espadas: 0,
remolino: 0,
dash: 0,
gastado: 0,
dist: 0,
//No es necesario almacenar
videoVisto: 0,
nivel: 0,
vidasAuxRun: 0
};
Game.state.start('DataLoader');
}
};
});