43 lines
1016 B
Plaintext
43 lines
1016 B
Plaintext
[gd_scene load_steps=7 format=2]
|
|
|
|
[ext_resource path="res://Art/food0.png" type="Texture" id=1]
|
|
[ext_resource path="res://Art/food2.png" type="Texture" id=2]
|
|
[ext_resource path="res://Art/food1.png" type="Texture" id=3]
|
|
[ext_resource path="res://FoodSprites.gd" type="Script" id=4]
|
|
|
|
[sub_resource type="SpriteFrames" id=1]
|
|
animations = [ {
|
|
"frames": [ ExtResource( 3 ) ],
|
|
"loop": true,
|
|
"name": "1",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ ExtResource( 2 ) ],
|
|
"loop": true,
|
|
"name": "2",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ ExtResource( 1 ) ],
|
|
"loop": true,
|
|
"name": "0",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="CircleShape2D" id=2]
|
|
radius = 16.0182
|
|
|
|
[node name="Food" type="RigidBody2D" groups=["Food"]]
|
|
collision_layer = 2
|
|
mass = 0.2
|
|
linear_damp = 1.0
|
|
|
|
[node name="FoodSprites" type="AnimatedSprite" parent="."]
|
|
scale = Vector2( 0.5, 0.5 )
|
|
frames = SubResource( 1 )
|
|
animation = "2"
|
|
script = ExtResource( 4 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 0, -0.235703 )
|
|
shape = SubResource( 2 )
|