[feat] debug youth room

This commit is contained in:
April John 2023-12-02 17:37:42 +01:00
parent 7b3b71c8ae
commit a2e2e56afc
4 changed files with 36 additions and 9 deletions

View File

@ -31,9 +31,17 @@ func _update_scene(new_mode) -> int:
return new_mode
func is_self(node: Node) -> bool:
return self == node
func get_ready():
self.show()
$sfx/distant_rain.play()
$"sfx/rain on window".play()
await get_tree().create_timer(0.1).timeout
$logic/UI/board.hide()
func _ready():
if get_parent() == get_tree().root:
get_ready()
start()

17
src/main.gd Normal file
View File

@ -0,0 +1,17 @@
extends Node3D
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
func debug_youth():
get_child(1).hide()
get_child(2).hide()
get_child(3).hide()
get_child(0).get_ready()
get_child(0).start()
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

View File

@ -1,5 +1,6 @@
[gd_scene load_steps=9 format=3 uid="uid://befxf8uruwnrl"]
[gd_scene load_steps=10 format=3 uid="uid://befxf8uruwnrl"]
[ext_resource type="Script" path="res://main.gd" id="1_rqkns"]
[ext_resource type="PackedScene" uid="uid://gldtxysavetf" path="res://logic-scenes/startup/startup.tscn" id="1_v5rpm"]
[ext_resource type="PackedScene" uid="uid://b3b0gyvklqn50" path="res://base-environments/youth_room/youth_room.tscn" id="2_23ia3"]
[ext_resource type="Theme" uid="uid://b056fn288p8ha" path="res://logic-scenes/themes/messy.theme" id="3_8hrj7"]
@ -17,6 +18,7 @@ func _process(_delta):
"
[node name="root" type="Node3D"]
script = ExtResource("1_rqkns")
[node name="youth room" parent="." instance=ExtResource("2_23ia3")]