summaryrefslogtreecommitdiff
path: root/Units/Unit.tscn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-11-05 11:34:49 +0100
committerDaniel Weipert <git@mail.dweipert.de>2024-11-05 11:34:49 +0100
commitc8f674ac6fa0914d9e448d2929f2385cdad80d60 (patch)
treea913454c42bb520aa644f4e2dcf0d42ba11c83de /Units/Unit.tscn
parent84365b6f901a9c0251a9f724a8d9f81a3787e97d (diff)
next commit
Diffstat (limited to 'Units/Unit.tscn')
-rw-r--r--Units/Unit.tscn25
1 files changed, 18 insertions, 7 deletions
diff --git a/Units/Unit.tscn b/Units/Unit.tscn
index 00c0871..39cfbe0 100644
--- a/Units/Unit.tscn
+++ b/Units/Unit.tscn
@@ -1,7 +1,8 @@
-[gd_scene load_steps=9 format=3 uid="uid://cslaufgh6ber3"]
+[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="Texture2D" uid="uid://dsy7k2v5fhh6v" path="res://Assets/Mobs/angesnow-front.png" id="2_rxqq1"]
+[ext_resource type="Texture2D" uid="uid://dsy7k2v5fhh6v" path="res://Units/Assets/angesnow-front.png" id="2_rxqq1"]
+[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"]
@@ -21,15 +22,18 @@ properties/0/replication_mode = 2
properties/1/path = NodePath(".:hp")
properties/1/spawn = true
properties/1/replication_mode = 2
-properties/2/path = NodePath("Sprite2D:self_modulate")
+properties/2/path = NodePath("AnimatedSprite2D:modulate")
properties/2/spawn = true
-properties/2/replication_mode = 2
-properties/3/path = NodePath(".:owner_id")
+properties/2/replication_mode = 0
+properties/3/path = NodePath("AnimatedSprite2D:self_modulate")
properties/3/spawn = true
-properties/3/replication_mode = 0
-properties/4/path = NodePath("Sprite2D:modulate")
+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
@@ -37,12 +41,19 @@ input_pickable = true
script = ExtResource("1_bbcew")
[node name="Sprite2D" type="Sprite2D" parent="."]
+visible = false
texture_filter = 1
position = Vector2(0, -4)
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_rxqq1")
region_rect = Rect2(480, 880, 96, 64)
+[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")