|
@@ -1,9 +1,8 @@
|
|
-[gd_scene load_steps=21 format=3 uid="uid://bdni5iw2j108j"]
|
|
|
|
|
|
+[gd_scene load_steps=19 format=3 uid="uid://bdni5iw2j108j"]
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://b240sdxvva6wr" path="res://grid_movement/pawns/walker.gd" id="1"]
|
|
[ext_resource type="Script" uid="uid://b240sdxvva6wr" path="res://grid_movement/pawns/walker.gd" id="1"]
|
|
[ext_resource type="Texture2D" uid="uid://ba5rklp7brg7" path="res://grid_movement/pawns/character.png" id="2"]
|
|
[ext_resource type="Texture2D" uid="uid://ba5rklp7brg7" path="res://grid_movement/pawns/character.png" id="2"]
|
|
-[ext_resource type="Texture2D" uid="uid://c7n37h1euodch" path="res://grid_movement/pawns/player_exploration.png" id="3"]
|
|
|
|
-[ext_resource type="Texture2D" uid="uid://c5mr2yqxvctld" path="res://grid_movement/pawns/player_exploration_bump.png" id="4"]
|
|
|
|
|
|
+[ext_resource type="SpriteFrames" uid="uid://gucxux3cqds3" path="res://grid_movement/pawns/anim_player.tres" id="4_1c7h6"]
|
|
|
|
|
|
[sub_resource type="Animation" id="3"]
|
|
[sub_resource type="Animation" id="3"]
|
|
length = 0.001
|
|
length = 0.001
|
|
@@ -15,7 +14,7 @@ step = 0.01
|
|
tracks/0/type = "value"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/enabled = true
|
|
-tracks/0/path = NodePath("Pivot/Sprite2D:position")
|
|
|
|
|
|
+tracks/0/path = NodePath("Pivot/FacingDirection:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
tracks/0/keys = {
|
|
@@ -48,18 +47,6 @@ tracks/2/keys = {
|
|
"update": 0,
|
|
"update": 0,
|
|
"values": [Vector2(1, 1), Vector2(1, 1)]
|
|
"values": [Vector2(1, 1), Vector2(1, 1)]
|
|
}
|
|
}
|
|
-tracks/3/type = "value"
|
|
|
|
-tracks/3/imported = false
|
|
|
|
-tracks/3/enabled = true
|
|
|
|
-tracks/3/path = NodePath("Pivot/Slime:texture")
|
|
|
|
-tracks/3/interp = 1
|
|
|
|
-tracks/3/loop_wrap = true
|
|
|
|
-tracks/3/keys = {
|
|
|
|
-"times": PackedFloat32Array(0, 0.24, 0.25),
|
|
|
|
-"transitions": PackedFloat32Array(1, 1, 1),
|
|
|
|
-"update": 1,
|
|
|
|
-"values": [ExtResource("4"), ExtResource("4"), ExtResource("3")]
|
|
|
|
-}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="4"]
|
|
[sub_resource type="Animation" id="4"]
|
|
resource_name = "idle"
|
|
resource_name = "idle"
|
|
@@ -89,18 +76,6 @@ tracks/1/keys = {
|
|
"update": 0,
|
|
"update": 0,
|
|
"values": [Vector2(1, 1), Vector2(1.125, 0.844), Vector2(0.906, 1.141), Vector2(1, 1)]
|
|
"values": [Vector2(1, 1), Vector2(1.125, 0.844), Vector2(0.906, 1.141), Vector2(1, 1)]
|
|
}
|
|
}
|
|
-tracks/2/type = "value"
|
|
|
|
-tracks/2/imported = false
|
|
|
|
-tracks/2/enabled = false
|
|
|
|
-tracks/2/path = NodePath("Pivot/Slime:texture")
|
|
|
|
-tracks/2/interp = 1
|
|
|
|
-tracks/2/loop_wrap = true
|
|
|
|
-tracks/2/keys = {
|
|
|
|
-"times": PackedFloat32Array(0, 1.5),
|
|
|
|
-"transitions": PackedFloat32Array(1, 1),
|
|
|
|
-"update": 1,
|
|
|
|
-"values": [ExtResource("3"), ExtResource("3")]
|
|
|
|
-}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="2"]
|
|
[sub_resource type="Animation" id="2"]
|
|
resource_name = "walk"
|
|
resource_name = "walk"
|
|
@@ -108,8 +83,8 @@ length = 0.25
|
|
step = 0.05
|
|
step = 0.05
|
|
tracks/0/type = "value"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/imported = false
|
|
-tracks/0/enabled = false
|
|
|
|
-tracks/0/path = NodePath("Pivot/Sprite2D:self_modulate")
|
|
|
|
|
|
+tracks/0/enabled = true
|
|
|
|
+tracks/0/path = NodePath("Pivot/FacingDirection:self_modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
tracks/0/keys = {
|
|
@@ -121,7 +96,7 @@ tracks/0/keys = {
|
|
tracks/1/type = "value"
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/enabled = true
|
|
-tracks/1/path = NodePath("Pivot/Sprite2D:position")
|
|
|
|
|
|
+tracks/1/path = NodePath("Pivot/FacingDirection:position")
|
|
tracks/1/interp = 1
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
tracks/1/keys = {
|
|
@@ -133,7 +108,7 @@ tracks/1/keys = {
|
|
tracks/2/type = "value"
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/enabled = true
|
|
-tracks/2/path = NodePath("Pivot/Sprite2D:scale")
|
|
|
|
|
|
+tracks/2/path = NodePath("Pivot/FacingDirection:scale")
|
|
tracks/2/interp = 1
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
tracks/2/keys = {
|
|
@@ -166,18 +141,6 @@ tracks/4/keys = {
|
|
"update": 0,
|
|
"update": 0,
|
|
"values": [Vector2(1, 1), Vector2(1.2, 0.917), Vector2(0.917, 1.135), Vector2(1, 1)]
|
|
"values": [Vector2(1, 1), Vector2(1.2, 0.917), Vector2(0.917, 1.135), Vector2(1, 1)]
|
|
}
|
|
}
|
|
-tracks/5/type = "value"
|
|
|
|
-tracks/5/imported = false
|
|
|
|
-tracks/5/enabled = false
|
|
|
|
-tracks/5/path = NodePath("Pivot/Slime:texture")
|
|
|
|
-tracks/5/interp = 1
|
|
|
|
-tracks/5/loop_wrap = true
|
|
|
|
-tracks/5/keys = {
|
|
|
|
-"times": PackedFloat32Array(0, 0.25),
|
|
|
|
-"transitions": PackedFloat32Array(1, 1),
|
|
|
|
-"update": 1,
|
|
|
|
-"values": [ExtResource("3"), ExtResource("3")]
|
|
|
|
-}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_yxglf"]
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_yxglf"]
|
|
_data = {
|
|
_data = {
|
|
@@ -222,28 +185,27 @@ states/walk/position = Vector2(310, 116)
|
|
transitions = ["walk", "idle", SubResource("11"), "bump", "idle", SubResource("12"), "idle", "walk", SubResource("13"), "idle", "bump", SubResource("14"), "Start", "idle", SubResource("AnimationNodeStateMachineTransition_ed7tp"), "idle", "End", SubResource("AnimationNodeStateMachineTransition_j3wgi")]
|
|
transitions = ["walk", "idle", SubResource("11"), "bump", "idle", SubResource("12"), "idle", "walk", SubResource("13"), "idle", "bump", SubResource("14"), "Start", "idle", SubResource("AnimationNodeStateMachineTransition_ed7tp"), "idle", "End", SubResource("AnimationNodeStateMachineTransition_j3wgi")]
|
|
graph_offset = Vector2(-609, -158)
|
|
graph_offset = Vector2(-609, -158)
|
|
|
|
|
|
-[sub_resource type="AnimationNodeStateMachinePlayback" id="6"]
|
|
|
|
-
|
|
|
|
[node name="Character" type="Node2D"]
|
|
[node name="Character" type="Node2D"]
|
|
z_index = 1
|
|
z_index = 1
|
|
-position = Vector2(32, 32)
|
|
|
|
script = ExtResource("1")
|
|
script = ExtResource("1")
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
libraries = {
|
|
-"": SubResource("AnimationLibrary_yxglf")
|
|
|
|
|
|
+&"": SubResource("AnimationLibrary_yxglf")
|
|
}
|
|
}
|
|
|
|
|
|
[node name="Pivot" type="Marker2D" parent="."]
|
|
[node name="Pivot" type="Marker2D" parent="."]
|
|
|
|
|
|
-[node name="Slime" type="Sprite2D" parent="Pivot"]
|
|
|
|
-position = Vector2(0, -4.37912)
|
|
|
|
-scale = Vector2(0.908741, 1.13728)
|
|
|
|
-texture = ExtResource("3")
|
|
|
|
|
|
+[node name="Slime" type="AnimatedSprite2D" parent="Pivot"]
|
|
|
|
+position = Vector2(0, -3.21718)
|
|
|
|
+scale = Vector2(0.932767, 1.10085)
|
|
|
|
+sprite_frames = ExtResource("4_1c7h6")
|
|
|
|
+animation = &"idle"
|
|
centered = false
|
|
centered = false
|
|
offset = Vector2(-32, -32)
|
|
offset = Vector2(-32, -32)
|
|
|
|
|
|
-[node name="Sprite2D" type="Sprite2D" parent="Pivot"]
|
|
|
|
|
|
+[node name="FacingDirection" type="Sprite2D" parent="Pivot"]
|
|
|
|
+editor_description = "Enable this node to see the character's facing direction."
|
|
visible = false
|
|
visible = false
|
|
self_modulate = Color(0, 0, 0, 1)
|
|
self_modulate = Color(0, 0, 0, 1)
|
|
scale = Vector2(1e-05, 1e-05)
|
|
scale = Vector2(1e-05, 1e-05)
|
|
@@ -254,5 +216,3 @@ offset = Vector2(-32, -32)
|
|
[node name="AnimationTree" type="AnimationTree" parent="."]
|
|
[node name="AnimationTree" type="AnimationTree" parent="."]
|
|
tree_root = SubResource("5")
|
|
tree_root = SubResource("5")
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
-active = true
|
|
|
|
-parameters/playback = SubResource("6")
|
|
|