Update the project to Godot 4.3 and add small improvements

This commit is contained in:
Ribbon 2024-08-16 10:01:18 -03:00
parent 1d27c09514
commit 9bb0bfcf42
7 changed files with 201 additions and 20 deletions

View file

@ -25,3 +25,9 @@ func _unhandled_input(event: InputEvent) -> void:
var car_node := car.instantiate()
add_child(car_node)
car_node.global_position = get_viewport().get_camera_3d().global_position
func _input(event):
if Input.is_action_just_pressed("full_screen"):
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
#else:
#DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)