-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
93 lines (89 loc) · 1.79 KB
/
Copy pathindex.js
File metadata and controls
93 lines (89 loc) · 1.79 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
import { Project } from "https://unpkg.com/leopard@^1/dist/index.esm.js";
import Stage from "./Stage/Stage.js";
import Sega from "./Sega/Sega.js";
import Sonic from "./Sonic/Sonic.js";
import Background from "./Background/Background.js";
import SonicsEye from "./SonicsEye/SonicsEye.js";
import SonicsHand from "./SonicsHand/SonicsHand.js";
import Tails from "./Tails/Tails.js";
import Ribbon from "./Ribbon/Ribbon.js";
import Stuff from "./Stuff/Stuff.js";
const stage = new Stage({ costumeNumber: 1 });
const sprites = {
Sega: new Sega({
x: 0,
y: 0,
direction: 90,
costumeNumber: 10,
size: 101,
visible: true,
layerOrder: 5
}),
Sonic: new Sonic({
x: 0,
y: 0,
direction: 90,
costumeNumber: 1,
size: 100,
visible: false,
layerOrder: 4
}),
Background: new Background({
x: 0,
y: 0,
direction: 90,
costumeNumber: 1,
size: 100,
visible: false,
layerOrder: 2
}),
SonicsEye: new SonicsEye({
x: -40,
y: 40,
direction: 90,
costumeNumber: 5,
size: 100,
visible: false,
layerOrder: 7
}),
SonicsHand: new SonicsHand({
x: 40,
y: 20,
direction: 90,
costumeNumber: 2,
size: 100,
visible: false,
layerOrder: 6
}),
Tails: new Tails({
x: -238,
y: 74,
direction: 90,
costumeNumber: 2,
size: 100,
visible: false,
layerOrder: 3
}),
Ribbon: new Ribbon({
x: 0,
y: -174,
direction: 90,
costumeNumber: 1,
size: 100,
visible: false,
layerOrder: 1
}),
Stuff: new Stuff({
x: 36,
y: 28,
direction: 90,
costumeNumber: 1,
size: 100,
visible: false,
layerOrder: 8
})
};
const project = new Project(stage, sprites, {
frameRate: 30 // Set to 60 to make your project run faster
});
export default project;