mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Spider bomb in FSM
This commit is contained in:
parent
d77fc7bf33
commit
4913eba12e
20 changed files with 300 additions and 48 deletions
|
|
@ -1,34 +1,57 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://64ax2lj77sr1"]
|
||||
[gd_scene load_steps=12 format=3 uid="uid://64ax2lj77sr1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_nrcj1"]
|
||||
[ext_resource type="Texture2D" uid="uid://huo14jdekj6n" path="res://Sprites/Bullets/spiderbomb.png" id="2_nrcj1"]
|
||||
[ext_resource type="Texture2D" uid="uid://r2h77ktff10m" path="res://Sprites/Bullets/Snowball.png" id="2_lhjit"]
|
||||
[ext_resource type="Texture2D" uid="uid://cf2855sd3hqty" path="res://Sprites/Actors/Aiming_Reticule_Small.png" id="3_lhjit"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_jxptd"]
|
||||
radius = 2.23607
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lhjit"]
|
||||
atlas = ExtResource("2_nrcj1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ibnjy"]
|
||||
atlas = ExtResource("2_lhjit")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ibnjy"]
|
||||
atlas = ExtResource("2_nrcj1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w1jch"]
|
||||
atlas = ExtResource("2_lhjit")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w1jch"]
|
||||
atlas = ExtResource("2_nrcj1")
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_o2e4e"]
|
||||
atlas = ExtResource("2_lhjit")
|
||||
region = Rect2(32, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_co0jb"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ea6l6"]
|
||||
atlas = ExtResource("2_lhjit")
|
||||
region = Rect2(48, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_f4bqv"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lhjit")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ibnjy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_w1jch")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_o2e4e")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ea6l6")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_co0jb"]
|
||||
atlas = ExtResource("3_lhjit")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_o2e4e"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_co0jb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
|
|
@ -48,10 +71,14 @@ shape = SubResource("CircleShape2D_jxptd")
|
|||
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_co0jb")
|
||||
sprite_frames = SubResource("SpriteFrames_f4bqv")
|
||||
autoplay = "default"
|
||||
frame = 1
|
||||
frame_progress = 0.375255
|
||||
frame = 3
|
||||
frame_progress = 0.54531
|
||||
|
||||
[node name="AnimatedSprite2D2" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(18.545, 0)
|
||||
sprite_frames = SubResource("SpriteFrames_o2e4e")
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue