Skip to content

Commit

Permalink
refactor(main)!: 将 $Bg/DynamicBg 移到根节点下
Browse files Browse the repository at this point in the history
BREAKING CHANGE: $Bg 节点删除,原 $Bg/DynamicBg 节点移至 $DynamicBg。
  • Loading branch information
cutekibry committed Feb 16, 2024
1 parent 2a42ac6 commit ed1327a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ func _on_main_menu_enter_level():
func _on_bgm_player_finished():
$BGMPlayer.play()
func set_victory(v: bool):
$Bg/DynamicBg.set_victory(v)
$DynamicBg.set_victory(v)
8 changes: 4 additions & 4 deletions main.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
[node name="Main" type="Node"]
script = ExtResource("1_nb6uf")

[node name="MainMenu" parent="." instance=ExtResource("1_fk6j6")]

[node name="Bg" type="Node" parent="."]
[node name="DynamicBg" parent="." instance=ExtResource("2_8k4il")]
offset_right = 0.0
offset_bottom = 0.0

[node name="DynamicBg" parent="Bg" instance=ExtResource("2_8k4il")]
[node name="MainMenu" parent="." instance=ExtResource("1_fk6j6")]

[node name="BGMPlayer" type="AudioStreamPlayer2D" parent="."]
position = Vector2(234, 150)
Expand Down

0 comments on commit ed1327a

Please sign in to comment.