open-fpsz/main.tscn
2024-04-07 14:25:59 -04:00

24 lines
808 B
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://58gb6qi4jojs"]
[ext_resource type="PackedScene" uid="uid://bjctlqvs33nqy" path="res://interfaces/menus/boot/boot.tscn" id="1_acy5o"]
[sub_resource type="GDScript" id="GDScript_e61dq"]
script/source = "extends Node3D
func _unhandled_input(event):
# exit the program
if event.is_action_pressed(\"exit\"):
get_tree().quit()
# switch window mode
if event.is_action_pressed(\"window_mode\"):
if DisplayServer.window_get_mode() == DisplayServer.WINDOW_MODE_FULLSCREEN:
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
else:
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
"
[node name="Game" type="Node3D"]
script = SubResource("GDScript_e61dq")
[node name="MainMenu" parent="." instance=ExtResource("1_acy5o")]