1- [gd_scene load_steps =3 format =3 uid ="uid://b0mrgr7h0ty1y" ]
1+ [gd_scene load_steps =6 format =3 uid ="uid://b0mrgr7h0ty1y" ]
22
33[ext_resource type ="PackedScene" uid ="uid://dfevfib11kou1" path ="res://scenes/ChartViewport/ChartViewport.tscn" id ="1_1vh1u" ]
44[ext_resource type ="Script" path ="res://scenes/ChartViewport/BattleDirector.cs" id ="1_jbxt1" ]
5+ [ext_resource type ="PackedScene" uid ="uid://bgomxovxs7sr8" path ="res://scenes/HealthBar.tscn" id ="2_1t4a4" ]
6+ [ext_resource type ="Script" path ="res://scenes/ChartViewport/Player.cs" id ="3_gtvac" ]
7+ [ext_resource type ="Script" path ="res://scenes/ChartViewport/Enemy.cs" id ="5_nkoeo" ]
58
69[node name ="ProtoBattleDirector" type ="Node2D" node_paths =PackedStringArray ("CM" , "NM" )]
710script = ExtResource ("1_jbxt1" )
@@ -21,3 +24,21 @@ offset_top = -34.0
2124offset_right = 673.0
2225offset_bottom = 393.0
2326color = Color (0.147672 , 0.147672 , 0.147672 , 1 )
27+
28+ [node name ="PlayerObject" type ="Node2D" parent ="." node_paths =PackedStringArray ("PlayerHealthBar" , "BattleDirectorInstance" )]
29+ script = ExtResource ("3_gtvac" )
30+ PlayerHealthBar = NodePath ("HP" )
31+ BattleDirectorInstance = NodePath (".." )
32+
33+ [node name ="HP" parent ="PlayerObject" instance =ExtResource ("2_1t4a4" )]
34+
35+ [node name ="EnemyObject" type ="Node2D" parent ="." node_paths =PackedStringArray ("EnemyHealthBar" , "BattleDirectorInstance" )]
36+ script = ExtResource ("5_nkoeo" )
37+ EnemyHealthBar = NodePath ("EHP" )
38+ BattleDirectorInstance = NodePath (".." )
39+
40+ [node name ="EHP" parent ="EnemyObject" instance =ExtResource ("2_1t4a4" )]
41+ offset_left = 403.0
42+ offset_top = -4.0
43+ offset_right = 443.0
44+ offset_bottom = 36.0
0 commit comments