lose screen UI; needs animation
This commit is contained in:
parent
28e8a4b6ac
commit
1d0032b587
10 changed files with 300 additions and 45 deletions
|
|
@ -45,6 +45,8 @@ var gun_index := 0:
|
|||
var gun: Gun:
|
||||
get: return guns[gun_index]
|
||||
|
||||
var distance_traveled := 0.
|
||||
|
||||
func clean_angle(theta: float) -> float:
|
||||
theta = fposmod(theta, TAU)
|
||||
if theta < PI: return theta
|
||||
|
|
@ -145,6 +147,7 @@ func _process(delta: float) -> void:
|
|||
State.NORMAL: _process_movement(delta)
|
||||
State.DASHING: _process_dash()
|
||||
State.LOCKED: pass
|
||||
distance_traveled += velocity.length() * delta
|
||||
|
||||
|
||||
_process_aim()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue