Lighting Tweaks + First Person fixes - Final Milestone 2 build

This commit is contained in:
patrick_pluto 2024-08-03 23:08:03 +02:00
parent 8435fb0cf8
commit aedc7cfe91
4 changed files with 32 additions and 2 deletions

View file

@ -33,6 +33,12 @@ func _ready():
npc = true
func _physics_process(delta):
if $cam_y/Camera3D.position.z == 0:
$cam_y.position.y = 1
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
else:
Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
$cam_y.position.y = 0
if Input.is_action_just_pressed("escape"):
get_tree().change_scene_to_file("res://menus/main_menu.tscn")
Game.reset()
@ -130,3 +136,7 @@ func _on_time_in_bag_timeout():
captured_by.lost_one()
position = position_pre
$in_bag.visible = false
func _on_show_fps_timeout():
print(Engine.get_frames_per_second())