-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
73 lines (69 loc) · 1.38 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
import { Project } from "https://unpkg.com/leopard@^1/dist/index.esm.js";
import Stage from "./Stage/Stage.js";
import Stylo from "./Stylo/Stylo.js";
import Create from "./Create/Create.js";
import Look from "./Look/Look.js";
import Like from "./Like/Like.js";
import Dislike from "./Dislike/Dislike.js";
import Autre from "./Autre/Autre.js";
const stage = new Stage({ costumeNumber: 1 });
const sprites = {
Stylo: new Stylo({
x: 225,
y: 165,
direction: 90,
costumeNumber: 1,
size: 100,
visible: false,
layerOrder: 1
}),
Create: new Create({
x: 0,
y: 92,
direction: 90,
costumeNumber: 1,
size: 100,
visible: true,
layerOrder: 2
}),
Look: new Look({
x: 0,
y: -30,
direction: 90,
costumeNumber: 1,
size: 100,
visible: true,
layerOrder: 3
}),
Like: new Like({
x: -223,
y: -163,
direction: 90,
costumeNumber: 2,
size: 30,
visible: false,
layerOrder: 4
}),
Dislike: new Dislike({
x: 222,
y: -163,
direction: 90,
costumeNumber: 2,
size: 30,
visible: false,
layerOrder: 5
}),
Autre: new Autre({
x: -197,
y: 165,
direction: 90,
costumeNumber: 1,
size: 100,
visible: false,
layerOrder: 6
})
};
const project = new Project(stage, sprites, {
frameRate: 30 // Set to 60 to make your project run faster
});
export default project;