[feat] debug youth room
This commit is contained in:
parent
7b3b71c8ae
commit
a2e2e56afc
|
|
@ -31,9 +31,17 @@ func _update_scene(new_mode) -> int:
|
||||||
|
|
||||||
return new_mode
|
return new_mode
|
||||||
|
|
||||||
|
func is_self(node: Node) -> bool:
|
||||||
|
return self == node
|
||||||
|
|
||||||
func get_ready():
|
func get_ready():
|
||||||
self.show()
|
self.show()
|
||||||
$sfx/distant_rain.play()
|
$sfx/distant_rain.play()
|
||||||
$"sfx/rain on window".play()
|
$"sfx/rain on window".play()
|
||||||
await get_tree().create_timer(0.1).timeout
|
await get_tree().create_timer(0.1).timeout
|
||||||
$logic/UI/board.hide()
|
$logic/UI/board.hide()
|
||||||
|
|
||||||
|
func _ready():
|
||||||
|
if get_parent() == get_tree().root:
|
||||||
|
get_ready()
|
||||||
|
start()
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@ script/source = "extends Panel
|
||||||
signal on_read
|
signal on_read
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
$childhood/PanelContainer/VBoxContainer/Start.grab_focus()
|
$childhood/PanelContainer/VBoxContainer/Start.grab_focus()
|
||||||
|
|
||||||
func _on_start_pressed():
|
func _on_start_pressed():
|
||||||
emit_signal(\"on_read\")
|
emit_signal(\"on_read\")
|
||||||
hide()
|
hide()
|
||||||
"
|
"
|
||||||
|
|
||||||
[sub_resource type="GDScript" id="GDScript_tb2ju"]
|
[sub_resource type="GDScript" id="GDScript_tb2ju"]
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
@ -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://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="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"]
|
[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"]
|
[node name="root" type="Node3D"]
|
||||||
|
script = ExtResource("1_rqkns")
|
||||||
|
|
||||||
[node name="youth room" parent="." instance=ExtResource("2_23ia3")]
|
[node name="youth room" parent="." instance=ExtResource("2_23ia3")]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue