examples

joystick.js

1
2
3
4
5
6
7
8
pl = display.emoji("🤩")

jstck = joystick.init()

jstck.update((x, y) => {
  pl.x += 4 * x
  pl.y += 4 * y
})