-
Notifications
You must be signed in to change notification settings - Fork 0
/
Load.js
92 lines (66 loc) · 3.13 KB
/
Load.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
class Load extends Phaser.Scene {
constructor() {
super("load");
}
preload() {
//this.load.plugin('PhaserDebugGameScalePlugin', 'https://cdn.jsdelivr.net/npm/[email protected]', true)
//Backgrounds
this.load.image('background', 'img_menu/background_1.png');
this.load.image('background_2', 'img_menu/background_2.png');
this.load.image('pinto_1', 'img_menu/pinto01.png');
this.load.image('pinto_2', 'img_menu/pinto02.png');
this.load.image('pinto_3', 'img_menu/pinto03.png');
this.load.image('pinto_4', 'img_menu/pinto04.png');
this.load.image('ovo', 'img_menu/ovo.png');
//Infos
for (var j = 1; j <= 16; j++) {
this.load.image('info' + j, 'img_menu/info' + j + '.png')
}
this.load.image('infoVazio', 'img_menu/quadro.png')
this.load.image('creditosQuadro', 'img_menu/creditos.png')
this.load.image('statsQuadro', 'img_menu/stats.png')
//Score
this.load.image('jogador1Score', 'img_menu/player1.png')
this.load.image('jogador2Score', 'img_menu/player2.png')
this.load.image('computadorScore', 'img_menu/computerpl.png')
//Buttons
this.load.image('players', 'img_menu/button_2players.png');
this.load.image('computer', 'img_menu/button_computador.png');
this.load.image('forward', 'img_menu/forward.png');
this.load.image('back', 'img_menu/backward.png');
this.load.image('close', 'img_menu/closeBT.png')
this.load.image('stats', 'img_menu/bt_stats.png');
this.load.image('info', 'img_menu/bt_info.png');
this.load.image('creditos', 'img_menu/bt_creditos.png');
this.load.image('home', 'img_menu/bt_home.png')
this.load.image('easy', 'img_menu/button_easy.png');
this.load.image('medium', 'img_menu/button_medium.png');
this.load.image('hard', 'img_menu/button_hard.png');
this.load.image('perms', 'img_menu/perms.png');
//Elements
this.load.image('ouri', 'img_menu/titulo.png');
this.load.image('p1', 'img_menu/pinto01.png');
this.load.image('p2', 'img_menu/pinto02.png');
this.load.image('p3', 'img_menu/pinto03.png');
this.load.image('p4', 'img_menu/pinto04.png');
//Setas
this.load.image('setaP1', 'img_menu/assinalaPlayer1.png')
this.load.image('setaP2', 'img_menu/assinalaPlayer2.png')
this.load.image('setaCounter', 'img_menu/assinala3.png')
//Ganhou
this.load.image('ganhouP1', 'img_menu/parabens_1.png')
this.load.image('ganhouP2', 'img_menu/parabens_2.png')
this.load.image('ganhouC', 'img_menu/parabens_3.png')
this.load.image('empate', 'img_menu/empatado.png')
this.load.image('impasse','img_menu/impasse.png')
for (var i = 0; i < 31; i++) {
this.load.image('i' + i, 'img/' + i + '.png')
}
//Board Elements
this.load.image('tabuleiro', 'img_menu/tabuleiro_verde.png')
}
create() {
this.add.text(20, 20, "Loading game...")
this.scene.start("menu");
}
}