minor tweaks

This commit is contained in:
derek
2024-08-08 15:14:15 -05:00
parent 5b618f1ab8
commit b140e59ddd
9 changed files with 37 additions and 32 deletions

View File

@@ -27,6 +27,9 @@ func _ready():
#set FOV
camera.fov = respawn_fov
level_control.player.ammo_counter.visible = false
level_control.player.stamina_counter.visible = false
#start timer
timer.start()
@@ -70,7 +73,6 @@ func _process(delta):
look_ray.look_at(Vector3(target.global_position), Vector3.UP)
camera.rotation = lerp(camera.rotation,look_ray.rotation,delta * CAMERA_LOOK_SPEED)
camera.fov = lerp(camera.fov, 40.0, delta * 5)
print(camera.fov)
elif respawn == true:
position = lerp(position,respawn_position,delta * MOVE_SPEED * 1.5)