-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrename.js
74 lines (72 loc) · 2.14 KB
/
rename.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
setAnimate() {
if (this.d && !this.r && !this.l) {
this.cy = 0 * 1;
this.cx = 160 * 0;
this.lengthFrame = 4;
} else if (this.d && this.r) {
this.cy = 160 * 2;
this.cx = 160 * 0;
this.lengthFrame = 4;
} else if (this.r && !this.u) {
this.cy = 160 * 4;
this.cx = 160 * 0;
this.lengthFrame = 4;
} else if (this.r && this.u) {
this.cy = 160 * 6;
this.cx = 160 * 0;
this.lengthFrame = 4;
} else if (this.u && !this.l) {
this.cy = 160 * 8;
this.cx = 160 * 0;
this.lengthFrame = 4;
} else if (this.u && this.l) {
this.cy = 160 * 10;
this.cx = 160 * 0;
this.lengthFrame = 4;
} else if (this.l && !this.d) {
this.cy = 160 * 12;
this.cx = 160 * 0;
this.lengthFrame = 4;
} else if (this.l && this.d) {
this.cy = 160 * 14;
this.cx = 160 * 0;
this.lengthFrame = 4;
} else if (this.ad && !this.ar && !this.al) {
this.cy = 0 * 1;
this.cx = 160 * 14;
this.lengthFrame = 4;
} else if (this.ad && this.ar) {
this.cy = 160 * 2;
this.cx = 160 * 14;
this.lengthFrame = 4;
} else if (this.ar && !this.au) {
this.cy = 160 * 4;
this.cx = 160 * 14;
this.lengthFrame = 4;
} else if (this.ar && this.au) {
this.cy = 160 * 6;
this.cx = 160 * 14;
this.lengthFrame = 4;
} else if (this.au && !this.al) {
this.cy = 160 * 8;
this.cx = 160 * 14;
this.lengthFrame = 4;
} else if (this.au && this.al) {
this.cy = 160 * 10;
this.cx = 160 * 14;
this.lengthFrame = 4;
} else if (this.al && !this.ad) {
this.cy = 160 * 12;
this.cx = 160 * 14;
this.lengthFrame = 4;
} else if (this.al && this.ad) {
this.cy = 160 * 14;
this.cx = 160 * 14;
this.lengthFrame = 4;
} else {
this.cy = 0;
this.cx = 0;
this.lengthFrame = 1;
}
}
['bgmenu.png','bg1.png','bg2.png','bg3.png','bg4.png','overbg1.png','overbg2.png','overbg3.png','overbg4.png','player.png','enemy.png','amparpisang.mp3','apuse.mp3','flobamorea.mp3','ibupertiwi.mp3','indonesiapusaka.mp3','kerosene.mp3','kincir.mp3','lathi.mp3','yamko.mp3','coinpick.wav','enemydeath.wav','fail.mp3','fire (2).mp3','fire.mp3','hit.wav','win.mp3'];