Setup
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://assets/textures/bird.png" type="Texture" id=1]
|
||||
[ext_resource path="res://scripts/Player.cs" type="Script" id=2]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
radius = 17.7871
|
||||
height = 18.8992
|
||||
|
||||
[sub_resource type="Animation" id=2]
|
||||
resource_name = "Flap"
|
||||
length = 0.3
|
||||
loop = true
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("Sprite:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0, 0.1, 0.2 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1 ),
|
||||
"update": 1,
|
||||
"values": [ 0, 1, 2 ]
|
||||
}
|
||||
|
||||
[node name="Player" type="RigidBody2D"]
|
||||
gravity_scale = 5.0
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="."]
|
||||
texture = ExtResource( 1 )
|
||||
hframes = 3
|
||||
frame = 1
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( -1.23744, 0 )
|
||||
rotation = 1.5708
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
autoplay = "Flap"
|
||||
anims/Flap = SubResource( 2 )
|
||||
Reference in New Issue
Block a user