mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-06 07:01:16 +00:00
fragola and bullet
This commit is contained in:
parent
c9b3164362
commit
b7fb003b70
14 changed files with 383 additions and 53 deletions
79
Scenes/fragola.tscn
Normal file
79
Scenes/fragola.tscn
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
[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="Node2D"]
|
||||
|
||||
[node name="Fragola" type="RigidBody2D" parent="."]
|
||||
collision_layer = 4
|
||||
collision_mask = 7
|
||||
mass = 0.03
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Fragola"]
|
||||
sprite_frames = SubResource("SpriteFrames_7uyln")
|
||||
animation = &"idle"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Fragola"]
|
||||
shape = SubResource("CircleShape2D_bbnjh")
|
||||
Loading…
Add table
Add a link
Reference in a new issue