This repository has been archived on 2024-09-30. You can view files and clone it, but cannot push or open issues/pull-requests.
gbjam12/entities/player/player.tscn

269 lines
6.9 KiB
Plaintext

[gd_scene load_steps=29 format=3 uid="uid://dpn82ibpmpb6u"]
[ext_resource type="Script" path="res://entities/player/player.gd" id="1_jrd75"]
[ext_resource type="Texture2D" uid="uid://384kxu6h01cg" path="res://entities/assets/player.png" id="2_la6m6"]
[sub_resource type="AtlasTexture" id="AtlasTexture_7830n"]
atlas = ExtResource("2_la6m6")
region = Rect2(0, 16, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_hxarw"]
atlas = ExtResource("2_la6m6")
region = Rect2(8, 16, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_ldeja"]
atlas = ExtResource("2_la6m6")
region = Rect2(16, 16, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_okcjq"]
atlas = ExtResource("2_la6m6")
region = Rect2(24, 16, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_uckr3"]
atlas = ExtResource("2_la6m6")
region = Rect2(0, 0, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_l6ht8"]
atlas = ExtResource("2_la6m6")
region = Rect2(8, 0, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_f5bxb"]
atlas = ExtResource("2_la6m6")
region = Rect2(16, 0, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_580lu"]
atlas = ExtResource("2_la6m6")
region = Rect2(24, 0, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_m6w0l"]
atlas = ExtResource("2_la6m6")
region = Rect2(0, 8, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_xoslx"]
atlas = ExtResource("2_la6m6")
region = Rect2(8, 8, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_efl5l"]
atlas = ExtResource("2_la6m6")
region = Rect2(16, 8, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_xuq2e"]
atlas = ExtResource("2_la6m6")
region = Rect2(24, 8, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_vr7nv"]
atlas = ExtResource("2_la6m6")
region = Rect2(0, 32, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_sxg7e"]
atlas = ExtResource("2_la6m6")
region = Rect2(8, 32, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_npc0u"]
atlas = ExtResource("2_la6m6")
region = Rect2(16, 32, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_uruo7"]
atlas = ExtResource("2_la6m6")
region = Rect2(24, 32, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_uc5kf"]
atlas = ExtResource("2_la6m6")
region = Rect2(0, 24, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_m5dpf"]
atlas = ExtResource("2_la6m6")
region = Rect2(8, 24, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_5ihc5"]
atlas = ExtResource("2_la6m6")
region = Rect2(16, 24, 8, 8)
[sub_resource type="AtlasTexture" id="AtlasTexture_c1p0s"]
atlas = ExtResource("2_la6m6")
region = Rect2(24, 24, 8, 8)
[sub_resource type="SpriteFrames" id="SpriteFrames_icodh"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_7830n")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hxarw")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ldeja")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_okcjq")
}],
"loop": true,
"name": &"move_down",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_uckr3")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_l6ht8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_f5bxb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_580lu")
}],
"loop": true,
"name": &"move_right",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_m6w0l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xoslx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_efl5l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xuq2e")
}],
"loop": true,
"name": &"move_up",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_vr7nv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sxg7e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_npc0u")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uruo7")
}],
"loop": false,
"name": &"punch",
"speed": 10.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_uc5kf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m5dpf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5ihc5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c1p0s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uc5kf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_m5dpf")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_5ihc5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_c1p0s")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uc5kf")
}],
"loop": false,
"name": &"spin",
"speed": 12.0
}]
[sub_resource type="Animation" id="Animation_ve5nf"]
resource_name = "RESET"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("CanvasModulate:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_jmi7y"]
resource_name = "fade_out"
length = 10.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("CanvasModulate:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 10),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(0, 0, 0, 1)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_dx4e7"]
_data = {
"RESET": SubResource("Animation_ve5nf"),
"end": SubResource("Animation_jmi7y")
}
[sub_resource type="RectangleShape2D" id="RectangleShape2D_l7fhd"]
size = Vector2(8, 8)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_x0fgp"]
size = Vector2(6, 6)
[node name="Player" type="CharacterBody2D"]
z_index = 10
collision_mask = 15
script = ExtResource("1_jrd75")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_icodh")
animation = &"move_right"
[node name="Camera2D" type="Camera2D" parent="AnimatedSprite2D"]
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_dx4e7")
}
autoplay = "move"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
shape = SubResource("RectangleShape2D_l7fhd")
[node name="RayCast2D" type="RayCast2D" parent="."]
target_position = Vector2(0, 8)
collision_mask = 3
[node name="Area2D" type="Area2D" parent="."]
visible = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("RectangleShape2D_x0fgp")
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
[node name="CanvasModulate" type="CanvasModulate" parent="."]
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_player_animation_finished"]
[connection signal="area_entered" from="Area2D" to="." method="_on_area_entered"]