Basing world coloring works.

This commit is contained in:
Martin Felis
2024-01-27 00:05:04 +01:00
parent 00d3088e21
commit 4501b19bc4
16 changed files with 318 additions and 51 deletions
+4 -1
View File
@@ -1,4 +1,6 @@
extends CharacterBody3D
class Player extends CharacterBody3D
@export var color : Color = Color.DODGER_BLUE
@export var move_right_action := "move_right"
@export var move_left_action := "move_left"
@@ -41,6 +43,7 @@ func _physics_process(delta):
else:
velocity.x = move_toward(velocity.x, 0, SPEED)
velocity.z = move_toward(velocity.z, 0, SPEED)
geometry.global_basis = Basis.from_euler(Vector3(0, -angle, 0))
if Input.is_action_just_pressed("dash_p1"):
is_dashing = true;