git init
This commit is contained in:
commit
80f2563cdc
95 changed files with 3327 additions and 0 deletions
136
scenes/Duck/Duck.tscn
Normal file
136
scenes/Duck/Duck.tscn
Normal file
|
@ -0,0 +1,136 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://8v5mbbnddorh"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dc6grg2oaq3a6" path="res://scenes/Duck/ente.png" id="1"]
|
||||
[ext_resource type="Script" path="res://scenes/Duck/Duck.gd" id="1_pvotk"]
|
||||
|
||||
[sub_resource type="Animation" id="5"]
|
||||
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": 0,
|
||||
"values": [4]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="6"]
|
||||
resource_name = "die"
|
||||
length = 0.3
|
||||
loop_mode = 1
|
||||
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": [5]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="7"]
|
||||
resource_name = "fly"
|
||||
length = 0.5
|
||||
loop_mode = 1
|
||||
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": [2]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="2"]
|
||||
resource_name = "idle"
|
||||
loop_mode = 1
|
||||
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, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 1]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="3"]
|
||||
resource_name = "walk"
|
||||
length = 0.5
|
||||
loop_mode = 1
|
||||
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, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [3, 4]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rcmnp"]
|
||||
_data = {
|
||||
"RESET": SubResource("5"),
|
||||
"die": SubResource("6"),
|
||||
"fly": SubResource("7"),
|
||||
"idle": SubResource("2"),
|
||||
"walk": SubResource("3")
|
||||
}
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_1551i"]
|
||||
radius = 1.21655
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_46c8m"]
|
||||
radius = 6.0
|
||||
height = 14.0
|
||||
|
||||
[node name="Duck" type="CharacterBody2D"]
|
||||
script = ExtResource("1_pvotk")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
root_node = NodePath("../hitbox")
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_rcmnp")
|
||||
}
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture_filter = 3
|
||||
position = Vector2(0, -7)
|
||||
texture = ExtResource("1")
|
||||
hframes = 3
|
||||
vframes = 2
|
||||
frame = 4
|
||||
|
||||
[node name="physicsbox" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(2.38419e-07, -6)
|
||||
scale = Vector2(5, 5)
|
||||
shape = SubResource("CircleShape2D_1551i")
|
||||
|
||||
[node name="hitbox" type="Area2D" parent="."]
|
||||
position = Vector2(13, -2)
|
||||
collision_layer = 2
|
||||
collision_mask = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="hitbox"]
|
||||
position = Vector2(-13, -4)
|
||||
shape = SubResource("CapsuleShape2D_46c8m")
|
||||
debug_color = Color(0.906661, 0.254677, 0.42413, 0.42)
|
||||
|
||||
[connection signal="area_entered" from="hitbox" to="." method="_collide_with_hindernis"]
|
Loading…
Add table
Add a link
Reference in a new issue