123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- [gd_scene load_steps=18 format=3 uid="uid://dt5uhvofl318g"]
- [ext_resource type="Script" path="res://scenes/player/player.gd" id="1_mu74c"]
- [ext_resource type="Texture2D" uid="uid://dgd7foy2lynlw" path="res://sprites/player.png" id="2_js4dt"]
- [sub_resource type="Animation" id="Animation_hjp2n"]
- length = 0.001
- 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)]
- }
- [sub_resource type="Animation" id="Animation_bg7is"]
- resource_name = "idle_down"
- length = 0.8
- 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, 0.4),
- "transitions": PackedFloat32Array(1, 1),
- "update": 1,
- "values": [Vector2i(0, 0), Vector2i(1, 0)]
- }
- [sub_resource type="Animation" id="Animation_dj4o0"]
- resource_name = "rotate_down_left"
- length = 0.9
- 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, 0.3, 0.6),
- "transitions": PackedFloat32Array(1, 1, 1),
- "update": 1,
- "values": [Vector2i(0, 0), Vector2i(0, 4), Vector2i(0, 1)]
- }
- [sub_resource type="Animation" id="Animation_fvuck"]
- resource_name = "rotate_down_right"
- length = 0.9
- 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, 0.3, 0.6),
- "transitions": PackedFloat32Array(1, 1, 1),
- "update": 1,
- "values": [Vector2i(0, 0), Vector2i(3, 4), Vector2i(0, 3)]
- }
- [sub_resource type="Animation" id="Animation_q2ysl"]
- resource_name = "rotate_left_left"
- length = 0.9
- 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, 0.3, 0.6),
- "transitions": PackedFloat32Array(1, 1, 1),
- "update": 1,
- "values": [Vector2i(0, 3), Vector2i(3, 4), Vector2i(0, 0)]
- }
- [sub_resource type="Animation" id="Animation_tj0l1"]
- resource_name = "rotate_left_right"
- length = 0.9
- 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, 0.3, 0.6),
- "transitions": PackedFloat32Array(1, 1, 1),
- "update": 1,
- "values": [Vector2i(0, 3), Vector2i(2, 4), Vector2i(0, 2)]
- }
- [sub_resource type="Animation" id="Animation_ornxw"]
- resource_name = "rotate_right_left"
- length = 0.9
- 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, 0.3, 0.6),
- "transitions": PackedFloat32Array(1, 1, 1),
- "update": 1,
- "values": [Vector2i(0, 1), Vector2i(1, 4), Vector2i(0, 2)]
- }
- [sub_resource type="Animation" id="Animation_3suf2"]
- resource_name = "rotate_right_right"
- length = 0.9
- 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, 0.3, 0.6),
- "transitions": PackedFloat32Array(1, 1, 1),
- "update": 1,
- "values": [Vector2i(0, 1), Vector2i(0, 4), Vector2i(0, 0)]
- }
- [sub_resource type="Animation" id="Animation_7b8pm"]
- resource_name = "rotate_up_left"
- length = 0.9
- 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, 0.3, 0.6),
- "transitions": PackedFloat32Array(1, 1, 1),
- "update": 1,
- "values": [Vector2i(0, 2), Vector2i(2, 4), Vector2i(0, 3)]
- }
- [sub_resource type="Animation" id="Animation_hw307"]
- resource_name = "rotate_up_right"
- length = 0.9
- 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, 0.3, 0.6),
- "transitions": PackedFloat32Array(1, 1, 1),
- "update": 1,
- "values": [Vector2i(0, 2), Vector2i(1, 4), Vector2i(0, 1)]
- }
- [sub_resource type="Animation" id="Animation_omr3c"]
- resource_name = "run_down"
- length = 0.8
- 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, 0.4),
- "transitions": PackedFloat32Array(1, 1),
- "update": 1,
- "values": [Vector2i(2, 0), Vector2i(3, 0)]
- }
- [sub_resource type="Animation" id="Animation_qu7c2"]
- resource_name = "run_left"
- length = 0.8
- 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, 0.4),
- "transitions": PackedFloat32Array(1, 1),
- "update": 1,
- "values": [Vector2i(2, 3), Vector2i(3, 3)]
- }
- [sub_resource type="Animation" id="Animation_kkuhf"]
- resource_name = "run_right"
- length = 0.8
- 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, 0.4),
- "transitions": PackedFloat32Array(1, 1),
- "update": 1,
- "values": [Vector2i(2, 1), Vector2i(3, 1)]
- }
- [sub_resource type="Animation" id="Animation_g7wgf"]
- resource_name = "run_up"
- length = 0.8
- 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, 0.4),
- "transitions": PackedFloat32Array(1, 1),
- "update": 1,
- "values": [Vector2i(2, 2), Vector2i(3, 2)]
- }
- [sub_resource type="AnimationLibrary" id="AnimationLibrary_88fu0"]
- _data = {
- "RESET": SubResource("Animation_hjp2n"),
- "idle_down": SubResource("Animation_bg7is"),
- "rotate_down_left": SubResource("Animation_dj4o0"),
- "rotate_down_right": SubResource("Animation_fvuck"),
- "rotate_left_left": SubResource("Animation_q2ysl"),
- "rotate_left_right": SubResource("Animation_tj0l1"),
- "rotate_right_left": SubResource("Animation_ornxw"),
- "rotate_right_right": SubResource("Animation_3suf2"),
- "rotate_up_left": SubResource("Animation_7b8pm"),
- "rotate_up_right": SubResource("Animation_hw307"),
- "run_down": SubResource("Animation_omr3c"),
- "run_left": SubResource("Animation_qu7c2"),
- "run_right": SubResource("Animation_kkuhf"),
- "run_up": SubResource("Animation_g7wgf")
- }
- [node name="Player" type="Node2D"]
- script = ExtResource("1_mu74c")
- [node name="Sprite2D" type="Sprite2D" parent="."]
- texture = ExtResource("2_js4dt")
- centered = false
- offset = Vector2(-8, -8)
- hframes = 7
- vframes = 5
- [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
- libraries = {
- "": SubResource("AnimationLibrary_88fu0")
- }
|