[gd_scene load_steps=10 format=3 uid="uid://cslaufgh6ber3"] [ext_resource type="Script" path="res://Units/Unit.gd" id="1_bbcew"] [ext_resource type="Resource" uid="uid://reijb7spqqwc" path="res://Stages/Wintermaul/Units/pekora.tres" id="2_pfs06"] [ext_resource type="SpriteFrames" uid="uid://c6o6hpltnsds0" path="res://Units/Assets/Pekora/sprite_frames.tres" id="3_84r8c"] [ext_resource type="PackedScene" uid="uid://bjcrf4o4a80iv" path="res://UI/HPBar.tscn" id="3_e777u"] [ext_resource type="PackedScene" uid="uid://cifs0kcy5r0x2" path="res://Units/UnitPathLine.tscn" id="4_r0qfv"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_1cqix"] size = Vector2(3, 3) [sub_resource type="RectangleShape2D" id="RectangleShape2D_iaxxs"] size = Vector2(8, 8) [sub_resource type="RectangleShape2D" id="RectangleShape2D_o5ax3"] size = Vector2(16, 16) [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_0buot"] properties/0/path = NodePath(".:position") properties/0/spawn = true properties/0/replication_mode = 2 properties/1/path = NodePath(".:hp") properties/1/spawn = true properties/1/replication_mode = 2 properties/2/path = NodePath("AnimatedSprite2D:modulate") properties/2/spawn = true properties/2/replication_mode = 0 properties/3/path = NodePath("AnimatedSprite2D:self_modulate") properties/3/spawn = true properties/3/replication_mode = 2 properties/4/path = NodePath("AnimatedSprite2D:animation") properties/4/spawn = true properties/4/replication_mode = 2 properties/5/path = NodePath("AnimatedSprite2D:frame") properties/5/spawn = true properties/5/replication_mode = 2 [node name="Unit" type="CharacterBody2D"] collision_mask = 4 input_pickable = true script = ExtResource("1_bbcew") unit_resource = ExtResource("2_pfs06") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] texture_filter = 1 position = Vector2(0, -4) sprite_frames = ExtResource("3_84r8c") animation = &"down" [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("RectangleShape2D_1cqix") [node name="NavigationBase" type="Area2D" parent="." groups=["mob_navigation_base"]] collision_mask = 2 [node name="CollisionShape2D" type="CollisionShape2D" parent="NavigationBase"] shape = SubResource("RectangleShape2D_iaxxs") [node name="HPBar" parent="." instance=ExtResource("3_e777u")] unique_name_in_owner = true offset_left = -10.0 offset_top = -11.0 offset_right = 10.0 offset_bottom = -9.0 [node name="Label" type="Label" parent="."] visible = false offset_left = -9.0 offset_top = 12.0 offset_right = 10.0 offset_bottom = 24.0 theme_override_font_sizes/font_size = 8 text = "1000" horizontal_alignment = 1 [node name="SelectionArea" type="Area2D" parent="."] visible = false collision_layer = 32 collision_mask = 0 [node name="CollisionShape2D" type="CollisionShape2D" parent="SelectionArea"] shape = SubResource("RectangleShape2D_o5ax3") [node name="UnitPathLine" parent="." instance=ExtResource("4_r0qfv")] visible = false width = 1.0 default_color = Color(1, 1, 1, 0.392157) target_circle_radius = 4.0 [node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."] replication_config = SubResource("SceneReplicationConfig_0buot") [connection signal="tree_exiting" from="." to="." method="_on_tree_exiting"] [connection signal="area_entered" from="NavigationBase" to="." method="_on_navigation_base_area_entered"] [connection signal="input_event" from="SelectionArea" to="." method="_on_selection_area_input_event"] [connection signal="mouse_entered" from="SelectionArea" to="." method="_on_selection_area_mouse_entered"] [connection signal="mouse_exited" from="SelectionArea" to="." method="_on_selection_area_mouse_exited"]