3d models and stuff

This commit is contained in:
2024-01-25 15:22:01 +01:00
parent 649c83030d
commit a72973d28a
41 changed files with 325 additions and 51 deletions

View File

@@ -1,5 +1,8 @@
extends Control
class_name MainMenu
func _ready() -> void:
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
func _on_start_game_pressed() -> void:
get_tree().change_scene_to_file("res://scenes/levels/lvl_1.tscn")

View File

@@ -16,6 +16,8 @@ var camera_senitivity: float = 0.5
@onready var spring_arm: SpringArm3D = $Camera3D/SpringArm3D
func _ready() -> void:
if get_tree().current_scene is MainMenu:
queue_free()
capture()
camera.make_current()
$Camera3D/DDOF.show() # Würde den spieler im editor unsichtbar machen