generated from UNRaf-PROGRAMACION/Phaser3-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.js
45 lines (32 loc) · 951 Bytes
/
utils.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
const FANTASMA = "fantasma";
const OJO = "Ojo";
const ENEMIGOS = [FANTASMA, OJO];
const ENEMIGOS_DELAY = {
MIN: 500,
MAX: 3000,
};
const ENEMIGOS_ANIM = {
[OJO]: "animOjo",
[FANTASMA]: "animFantasma",
};
const FUEGO = "fuego";
const VIDAEXTRA = "vidaExtra";
const OBSTACULOS = [FUEGO];
const OBSTACULOS_DELAY = 600;
const MONEDA = "moneda";
const CALIZ = "caliz";
const CORONA = "corona";
const ANILLO = "anillo";
const GEMA = "gema";
const OBJETOS_ANIM = {
[MONEDA]: "animMoneda",
[CALIZ]: "animCaliz",
[CORONA]: "animCorona",
[ANILLO]: "animAnillo",
[GEMA]: "animGema",
[VIDAEXTRA]: "animVidaExtra",
};
const OBJETOS = [MONEDA,VIDAEXTRA,CALIZ,CORONA,ANILLO,GEMA];
const OBJETOS_DELAY = 1000;
const OBJETOS_PANTALLA = 3000;
export {ENEMIGOS,ENEMIGOS_DELAY, FANTASMA, OJO,FUEGO,OBSTACULOS, OBSTACULOS_DELAY,MONEDA,CALIZ,CORONA,ANILLO,GEMA,OBJETOS,OBJETOS_DELAY,OBJETOS_PANTALLA,VIDAEXTRA,ENEMIGOS_ANIM,OBJETOS_ANIM};