cirnogodot/Scenes/fragola.tscn
2024-02-27 22:54:42 +01:00

80 lines
2 KiB
Text

[gd_scene load_steps=10 format=3 uid="uid://rp4jhx0tuh24"]
[ext_resource type="Texture2D" uid="uid://cy5usvdeabi0t" path="res://Sprites/fragola.png" id="1_5wy11"]
[sub_resource type="AtlasTexture" id="AtlasTexture_j6kkb"]
atlas = ExtResource("1_5wy11")
region = Rect2(0, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ahsj2"]
atlas = ExtResource("1_5wy11")
region = Rect2(16, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_b3l4k"]
atlas = ExtResource("1_5wy11")
region = Rect2(32, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_ignt2"]
atlas = ExtResource("1_5wy11")
region = Rect2(48, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_aqfk6"]
atlas = ExtResource("1_5wy11")
region = Rect2(64, 0, 16, 16)
[sub_resource type="AtlasTexture" id="AtlasTexture_rbhio"]
atlas = ExtResource("1_5wy11")
region = Rect2(80, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_7uyln"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_j6kkb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ahsj2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_b3l4k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ignt2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_aqfk6")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_rbhio")
}],
"loop": true,
"name": &"explode",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_j6kkb")
}],
"loop": true,
"name": &"idle",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_bbnjh"]
radius = 7.0
[node name="Fragola" type="RigidBody2D"]
collision_layer = 4
collision_mask = 7
mass = 0.03
gravity_scale = 0.0
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_7uyln")
animation = &"idle"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_bbnjh")
[node name="Fragola" type="Node2D" parent="."]