-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.easel
More file actions
52 lines (42 loc) · 1.29 KB
/
main.easel
File metadata and controls
52 lines (42 loc) · 1.29 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
pub game fn World.Main() {
Gravity = 30
Music(@stackMastersTheme.mp3, loop=true)
ButtonRemap(Tap, Click)
SolidBackground(#181818)
Camera(@(0,0), radius=@(5, 9))
CameraBoundary(bottom=9)
Spawn boundary {
Boundary(height=100, pos=@(0, 8 + height/2), heading=0, isFloor=true)
}
Spawn boundary {
Boundary(height=100, pos=@(0, -50 - height/2), heading=0.5rev)
}
Spawn boundary {
Boundary(height=100, pos=@(-5 - height/2, 0), heading=-0.25rev)
}
Spawn boundary {
Boundary(height=100, pos=@(5 + height/2, 0), heading=0.25rev)
}
Ears(@(0, 10)) // Ears at bottom
Toolbar {
VolumeToggle
}
SpawnEachPlayer owner {
HasPlayedBefore = true
DiceDismantler(numDiceInRow=5) color {
let h, s, l = color.HSL
BoundaryColor = HSL(h, 0.33*s, 0.33*l)
PlayerLevel += 1
}
await PlayTutorial
loop {
let elapsed = await PlayOneRound
let isNewHighScore = SubmitHighScore(elapsed)
await GameOverDialog(elapsed=, isNewHighScore=)
// Clear board before next game
for dice in Query(filter=Category:Dice) {
dice.Expire
}
}
}
}