Update crosshair.png, crosshair.png.import, StartingRoom.tscn, and 7 more files

This commit is contained in:
Clevertop 2024-08-10 17:00:15 +10:00
parent cc3e77a595
commit 40e4281fd4
10 changed files with 283 additions and 278 deletions

View file

@ -2,6 +2,7 @@ extends CharacterBody3D
@export var camera : Camera3D
@export var mouse_sensitivity : float = 0.003 # TODO: this is sketchy check that its framerate independant pls
@export var raycast : RayCast3D
const SPEED = 5.0
const JUMP_VELOCITY = 4.5
@ -27,6 +28,10 @@ func _physics_process(delta):
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
else:
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED
# interact with stuff
if Input.is_action_just_pressed("interact"):
print(raycast.)
# Get the input direction and handle the movement/deceleration.
# As good practice, you should replace UI actions with custom gameplay actions.