examples

arrows-line.js

1
2
3
4
5
6
7
8
9
10
11
12
player = display.line(
  display.center.x, 630,
  display.center.x, 530
)

input.left(() => {
  player.rotate(-5)
})

input.right(() => {
  player.rotate(5)
})