player's paranoia

This commit is contained in:
Page Asgardius 2024-04-17 13:00:30 -07:00
parent d7fab32f44
commit 8f3fc9d45d
12 changed files with 87 additions and 36 deletions

View file

@ -29,6 +29,8 @@ func _physics_process(delta):
#if Input.get_joy_axis(0,JOY_AXIS_LEFT_Y) != 0:
# velocity = Vector2.UP.rotated(rotation) * -400 * Input.get_joy_axis(0,JOY_AXIS_LEFT_Y)
position += velocity
Global.playerx = position.x
Global.playery = position.y
if Global.ym > 0.3:
angle = 2
elif Global.ym < -0.3: