-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
83 lines (79 loc) · 1.56 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
import { Project } from "https://unpkg.com/leopard@^1/dist/index.esm.js";
import Stage from "./Stage/Stage.js";
import Bird from "./Bird/Bird.js";
import Pipes from "./Pipes/Pipes.js";
import Ground from "./Ground/Ground.js";
import Logo from "./Logo/Logo.js";
import BeginSign from "./BeginSign/BeginSign.js";
import Leaderboard from "./Leaderboard/Leaderboard.js";
import Twitter from "./Twitter/Twitter.js";
import Mode from "./Mode/Mode.js";
const stage = new Stage({ costumeNumber: 1 });
const sprites = {
Bird: new Bird({
x: 110,
y: 100,
direction: 90,
costumeNumber: 1,
size: 25,
visible: true
}),
Pipes: new Pipes({
x: 112,
y: 39,
direction: 90,
costumeNumber: 2,
size: 150,
visible: false
}),
Ground: new Ground({
x: 0,
y: 0,
direction: 90,
costumeNumber: 4,
size: 100,
visible: true
}),
Logo: new Logo({
x: -20,
y: 100,
direction: 90,
costumeNumber: 2,
size: 60,
visible: true
}),
BeginSign: new BeginSign({
x: 0,
y: -15,
direction: 90,
costumeNumber: 2,
size: 100,
visible: true
}),
Leaderboard: new Leaderboard({
x: 0,
y: 50,
direction: 90,
costumeNumber: 1,
size: 100,
visible: true
}),
Twitter: new Twitter({
x: 180,
y: -150,
direction: 90,
costumeNumber: 2,
size: 50,
visible: true
}),
Mode: new Mode({
x: 0,
y: 50,
direction: 90,
costumeNumber: 4,
size: 170,
visible: false
})
};
const project = new Project(stage, sprites);
export default project;