You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
238 lines
6.2 KiB
238 lines
6.2 KiB
[gd_scene load_steps=13 format=3 uid="uid://d4nb1twqrmebx"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dfh0dpo7iq3eb" path="res://sprites/Axolotl.png" id="1_tbw8a"]
|
|
[ext_resource type="Script" path="res://scripts/Axolotl.gd" id="1_uo3dg"]
|
|
[ext_resource type="PackedScene" uid="uid://cf24ht1sv1yih" path="res://scenes/Camera.tscn" id="2_fge4g"]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_np4lk"]
|
|
radius = 6.0
|
|
height = 24.0
|
|
|
|
[sub_resource type="Animation" id="Animation_m4cwp"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [Vector2i(0, 3)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_hwv1x"]
|
|
resource_name = "idle"
|
|
length = 0.6
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [Vector2i(0, 0)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite2D:frame")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [0, 1, 2, 3, 4, 5]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_oelbc"]
|
|
resource_name = "munch"
|
|
length = 0.6
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [Vector2i(1, 4)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite2D:frame")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [24, 25, 26, 27, 28, 29]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_7s1x2"]
|
|
resource_name = "sprint"
|
|
length = 0.5
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [Vector2i(1, 2)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite2D:frame")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [12, 13, 14, 15, 16]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_rht3k"]
|
|
resource_name = "swim"
|
|
length = 0.7
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [Vector2i(0, 1)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite2D:frame")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [6, 7, 8, 9, 10, 11]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_k4uu0"]
|
|
resource_name = "turn"
|
|
length = 0.5
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame_coords")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [Vector2i(0, 3)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Sprite2D:frame")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [18, 19, 20, 21, 22]
|
|
}
|
|
tracks/2/type = "method"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath(".")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0.4),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"end_turn"
|
|
}]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_sojmd"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_m4cwp"),
|
|
"idle": SubResource("Animation_hwv1x"),
|
|
"munch": SubResource("Animation_oelbc"),
|
|
"sprint": SubResource("Animation_7s1x2"),
|
|
"swim": SubResource("Animation_rht3k"),
|
|
"turn": SubResource("Animation_k4uu0")
|
|
}
|
|
|
|
[sub_resource type="AnimationRootNode" id="AnimationRootNode_7r5ga"]
|
|
|
|
[node name="Axolotl" type="Node2D"]
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
|
script = ExtResource("1_uo3dg")
|
|
|
|
[node name="Camera2D" parent="CharacterBody2D" instance=ExtResource("2_fge4g")]
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="CharacterBody2D"]
|
|
texture_filter = 1
|
|
texture = ExtResource("1_tbw8a")
|
|
hframes = 6
|
|
vframes = 5
|
|
frame = 18
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
|
visible = false
|
|
rotation = 1.5708
|
|
shape = SubResource("CapsuleShape2D_np4lk")
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="CharacterBody2D"]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_sojmd")
|
|
}
|
|
tree_root = SubResource("AnimationRootNode_7r5ga")
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="CharacterBody2D"]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_sojmd")
|
|
}
|