This repository has been archived on 2024-05-12. You can view files and clone it, but cannot push or open issues or pull requests.
GMTK-2023/Game/King/foolish.tscn

128 lines
3.4 KiB
Text
Raw Normal View History

2024-05-12 09:49:07 +02:00
[gd_scene load_steps=10 format=3 uid="uid://bx6gg3cuw8vu3"]
[ext_resource type="Script" path="res://Game/King/script/foolishKing.gd" id="1_fsdft"]
[ext_resource type="Texture2D" uid="uid://dm22v1jb8offb" path="res://Game/King/assets/Foolish_King_Sprite_Sheet.png" id="2_pok3b"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vmonq"]
size = Vector2(54, 94)
[sub_resource type="Animation" id="Animation_xf6bx"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../RigidBody2D/Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [6]
}
[sub_resource type="Animation" id="Animation_osef7"]
resource_name = "idle"
length = 1.4
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../RigidBody2D/Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.6),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [0, 1]
}
[sub_resource type="Animation" id="Animation_hjh7u"]
resource_name = "turn"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../RigidBody2D/Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [11]
}
[sub_resource type="Animation" id="Animation_8481o"]
resource_name = "walkDown"
length = 0.8
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../RigidBody2D/Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [6, 7, 8, 9]
}
[sub_resource type="Animation" id="Animation_ocuj5"]
resource_name = "walkUp"
length = 0.8
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../RigidBody2D/Sprite2D:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 1,
"values": [2, 3, 4, 5]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_cfq5j"]
_data = {
"RESET": SubResource("Animation_xf6bx"),
"idle": SubResource("Animation_osef7"),
"turn": SubResource("Animation_hjh7u"),
"walkDown": SubResource("Animation_8481o"),
"walkUp": SubResource("Animation_ocuj5")
}
[node name="King" type="Node2D"]
[node name="RigidBody2D" type="RigidBody2D" parent="."]
position = Vector2(350, 471)
collision_layer = 2
mass = 20.0
gravity_scale = 0.0
max_contacts_reported = 1
contact_monitor = true
lock_rotation = true
constant_force = Vector2(9.88, 0)
script = ExtResource("1_fsdft")
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
shape = SubResource("RectangleShape2D_vmonq")
[node name="Sprite2D" type="Sprite2D" parent="RigidBody2D"]
texture_filter = 1
scale = Vector2(0.67, 0.67)
texture = ExtResource("2_pok3b")
hframes = 12
frame = 6
[node name="AnimationPlayer" type="AnimationPlayer" parent="RigidBody2D"]
libraries = {
"": SubResource("AnimationLibrary_cfq5j")
}
[connection signal="body_entered" from="RigidBody2D" to="RigidBody2D" method="_on_body_entered"]