diff --git a/levels/antenna.gd b/levels/antenna.gd index 82a62fb..89f5e84 100644 --- a/levels/antenna.gd +++ b/levels/antenna.gd @@ -35,4 +35,7 @@ func _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 * delta + if position.x < 782 && position.x > 496: + if position.y < 468 && position.y > 270: + Global.live = 3 #pass diff --git a/levels/ast1.gd b/levels/ast1.gd index 785f795..10adbb7 100644 --- a/levels/ast1.gd +++ b/levels/ast1.gd @@ -42,4 +42,5 @@ func _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 * delta + print(position) #pass diff --git a/levels/css1.gd b/levels/css1.gd index 82a62fb..c44e63a 100644 --- a/levels/css1.gd +++ b/levels/css1.gd @@ -35,4 +35,7 @@ func _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 * delta + if position.x < 782 && position.x > 496: + if position.y < 468 && position.y > 270: + Global.live = 2 #pass