Ui Rebuild and Full Controller Support #59
2 changed files with 0 additions and 2 deletions
|
@ -14,7 +14,6 @@ func get_move_input_vector() -> Vector2:
|
||||||
return (input_direction if not input_direction_controller.length() > input_direction.length() else input_direction_controller.normalized())
|
return (input_direction if not input_direction_controller.length() > input_direction.length() else input_direction_controller.normalized())
|
||||||
|
|
||||||
func update_player_movement(delta : float):
|
func update_player_movement(delta : float):
|
||||||
print(get_move_input_vector())
|
|
||||||
var input = get_move_input_vector()
|
var input = get_move_input_vector()
|
||||||
|
|
||||||
# Damp Movement if not moving, Accelerate if Moving
|
# Damp Movement if not moving, Accelerate if Moving
|
||||||
|
|
|
@ -16,7 +16,6 @@ func get_aim_pos() -> Vector2:
|
||||||
|
|
||||||
func rotate_to_pointer():
|
func rotate_to_pointer():
|
||||||
look_at(get_aim_pos())
|
look_at(get_aim_pos())
|
||||||
#TODO Implement Joystick Aiming
|
|
||||||
|
|
||||||
func spawn_projectile(pos : Vector2, dir : float, speed: float, damage : int):
|
func spawn_projectile(pos : Vector2, dir : float, speed: float, damage : int):
|
||||||
var projectile = projectilePrefab.instantiate()
|
var projectile = projectilePrefab.instantiate()
|
||||||
|
|
Reference in a new issue