-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
164 lines (160 loc) · 3.18 KB
/
index.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
import { Project } from "https://unpkg.com/leopard@^1/dist/index.esm.js";
import Stage from "./Stage/Stage.js";
import Blank from "./Blank/Blank.js";
import Player from "./Player/Player.js";
import Background from "./Background/Background.js";
import Level from "./Level/Level.js";
import Particles from "./Particles/Particles.js";
import Particles2 from "./Particles2/Particles2.js";
import JumpParticles from "./JumpParticles/JumpParticles.js";
import Floor from "./Floor/Floor.js";
import FloorGlow from "./FloorGlow/FloorGlow.js";
import LeftFade from "./LeftFade/LeftFade.js";
import Stars from "./Stars/Stars.js";
import End from "./End/End.js";
import Curtain from "./Curtain/Curtain.js";
import Menu from "./Menu/Menu.js";
import Editor from "./Editor/Editor.js";
import Cloudscore from "./Cloudscore/Cloudscore.js";
import Crossfade from "./Crossfade/Crossfade.js";
const stage = new Stage({ costumeNumber: 2 });
const sprites = {
Blank: new Blank({
x: 36,
y: 28,
direction: 90,
costumeNumber: 1,
size: 100,
visible: true
}),
Player: new Player({
x: -80,
y: -68,
direction: 90,
costumeNumber: 1,
size: 100,
visible: true
}),
Background: new Background({
x: 0,
y: 0,
direction: 90,
costumeNumber: 2,
size: 100,
visible: true
}),
Level: new Level({
x: 193,
y: 181,
direction: 90,
costumeNumber: 1,
size: 100,
visible: false
}),
Particles: new Particles({
x: -99,
y: 33,
direction: 90,
costumeNumber: 1,
size: 100,
visible: false
}),
Particles2: new Particles2({
x: -190,
y: -30,
direction: 90,
costumeNumber: 1,
size: 29.67359319159109,
visible: false
}),
JumpParticles: new JumpParticles({
x: -119.58366479119996,
y: -67.81228041,
direction: 90,
costumeNumber: 1,
size: 57.47126562779011,
visible: false
}),
Floor: new Floor({
x: -202,
y: -76,
direction: 90,
costumeNumber: 1,
size: 100,
visible: true
}),
FloorGlow: new FloorGlow({
x: 0,
y: -76,
direction: 90,
costumeNumber: 9,
size: 100,
visible: true
}),
LeftFade: new LeftFade({
x: 0,
y: 0,
direction: 90,
costumeNumber: 2,
size: 100,
visible: true
}),
Stars: new Stars({
x: 181,
y: -9,
direction: 90,
costumeNumber: 1,
size: 100,
visible: false
}),
End: new End({
x: 0,
y: 0,
direction: 90,
costumeNumber: 1,
size: 100,
visible: false
}),
Curtain: new Curtain({
x: 0,
y: 0,
direction: 90,
costumeNumber: 1,
size: 100,
visible: false
}),
Menu: new Menu({
x: 0,
y: 0,
direction: 90,
costumeNumber: 1,
size: 100,
visible: true
}),
Editor: new Editor({
x: -15,
y: -38,
direction: 90,
costumeNumber: 1,
size: 100,
visible: true
}),
Cloudscore: new Cloudscore({
x: 217,
y: -154,
direction: 90,
costumeNumber: 1,
size: 100,
visible: false
}),
Crossfade: new Crossfade({
x: 0,
y: 0,
direction: 90,
costumeNumber: 2,
size: 100,
visible: false
})
};
const project = new Project(stage, sprites);
export default project;