Player and Pause Menu have been setup

This commit is contained in:
2024-04-04 15:09:20 -05:00
commit 643be614c5
28 changed files with 901 additions and 0 deletions

11
Assets/scripts/Head.gd Normal file
View File

@ -0,0 +1,11 @@
extends Node3D
@export var vertical_joystick_sensitity : float = 2
func _process(delta):
var look_velocity = Input.get_vector("look_left", "look_right", "look_up", "look_down")
rotate_x(-look_velocity.y * vertical_joystick_sensitity * delta)
func _unhandled_input(event):
if event is InputEventMouseMotion:
rotate_x(-event.relative.y * 0.02 )