-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResources.ts
More file actions
94 lines (88 loc) · 2.92 KB
/
Resources.ts
File metadata and controls
94 lines (88 loc) · 2.92 KB
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
93
94
module Game{
export class Resources{
menu_background1 = new Image();
menu_background2 = new Image();
buttons = new Image();
buttons2 = new Image();
game_background = new Image();
game_background2 = new Image();
forehead = new Image();
pass = new Image();
roundPicking = new Image();
correct = new Image();
endGame_background = new Image();
rightArrow = new Image();
leftArrow = new Image();
rightArrowPressed = new Image();
leftArrowPressed = new Image();
category_background = new Image();
category_background1 = new Image();
noCatSel = new Image();
balloon = new Image();
kids = new Image();
orangeBackground = new Image();
stand = new Image();
slime = new Image();
blueBackground = new Image();
nextRoundButton = new Image();
helpScreen1 = new Image();
helpScreen2 = new Image();
constructor(){
this.menu_background1.src = "thenewMenu.png";
this.menu_background2.src = "thenewMenu2.png";
this.game_background.src = "InGame.png";
this.game_background2.src = "InGame2.png";
this.roundPicking.src = "RoundPickingBackground.png";
this.forehead.src = "forehead.png";
this.pass.src = "pass.png";
this.correct.src = "correct.png";
this.endGame_background.src = "endGame.png";
this.rightArrow.src ="rightArrow.png";
this.leftArrow.src = "leftArrow.png";
this.rightArrowPressed.src = "rightArrowClicked.png";
this.leftArrowPressed.src = "leftArrowClicked.png";
this.category_background.src = "money.png";
this.category_background1.src = "categories_foreground_menuselected.png";
this.noCatSel.src = "noCategorySelected.png";
this.balloon.src = "balloon.png";
this.kids.src = "kids.png";
this.orangeBackground.src = "orangeBack.png";
this.stand.src = "stand.png";
this.slime.src = "slime.png";
this.blueBackground.src = "blueBackground.png";
this.buttons.src = "buttons.png";
this.buttons2.src = "buttons2.png";
this.nextRoundButton.src = "NextRound.png";
this.helpScreen1.src = "HelpScreen1.png";
this.helpScreen2.src = "HelpScreen2.png";
}
hasLoaded():boolean{
return (this.menu_background1.complete &&
this.menu_background2.complete &&
this.game_background.complete &&
this.game_background2.complete &&
this.roundPicking.complete &&
this.forehead.complete &&
this.pass.complete &&
this.correct.complete &&
this.endGame_background.complete &&
this.rightArrow.complete &&
this.rightArrowPressed.complete &&
this.leftArrowPressed.complete &&
this.category_background.complete &&
this.category_background1.complete &&
this.noCatSel.complete &&
this.balloon.complete &&
this.orangeBackground.complete &&
this.stand.complete &&
this.blueBackground.complete &&
this.slime.complete &&
this.kids.complete &&
this.buttons.complete &&
this.buttons2.complete &&
this.nextRoundButton.complete&&
this.helpScreen1.complete &&
this.helpScreen2.complete);
}
}
}