diff options
Diffstat (limited to 'Scenes/Player.gd')
-rw-r--r-- | Scenes/Player.gd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Scenes/Player.gd b/Scenes/Player.gd index e0ce5ff..5af227b 100644 --- a/Scenes/Player.gd +++ b/Scenes/Player.gd @@ -1,5 +1,7 @@ extends Entity +class_name Player + # Cube Layout: # 0 # 1 @@ -122,7 +124,7 @@ func cor_half_move(args : Array): # args = [Vector3, float] pos_a = translation dir = pos_b - pos_a time = 0 - + while true: time = min(time + get_process_delta_time(), duration) var weight = time / (duration) @@ -134,7 +136,6 @@ func cor_half_move(args : Array): # args = [Vector3, float] yield(get_tree(), "idle_frame") - func cor_shake(args : Array): var duration = args[0] var time = 0 |