1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
world.frame(display.width*5,display.height*5)
pl = display.emoji("🦄")
physics.add(pl)
camera.follow(pl)
camera.minimap()
times(150, () => {
poly = display.polygon(random.pos(), random.num(20, 40), random.num(3, 8))
rndcl = random.num(0, 360)
poly.color = color.hsb(rndcl, 85, 85)
poly.borderColor = poly.color.lighter(5)
poly.borderWidth = 5
poly.click((e) => {
e.self.applyImpulse(0, -50)
})
physics.add(poly)
})
world.frame(display.width*5,display.height*5)
pl = display.emoji("🦄")
physics.add(pl)
camera.follow(pl)
camera.minimap()
times(150, () => {
poly = display.polygon(random.pos(), random.num(20, 40), random.num(3, 8))
rndcl = random.num(0, 360)
poly.color = color.hsb(rndcl, 85, 85)
poly.borderColor = poly.color.lighter(5)
poly.borderWidth = 5
poly.click((e) => {
e.self.applyImpulse(0, -50)
})
physics.add(poly)
})