Frontier-of-Hell/scenes/bullets/bullet_1.tscn

113 lines
3.4 KiB
Text
Raw Normal View History

2023-12-05 16:29:34 +01:00
[gd_scene load_steps=16 format=3 uid="uid://dqa80ptcc8p70"]
2023-10-06 11:40:11 +02:00
2023-10-25 11:52:24 +02:00
[ext_resource type="Script" path="res://scripts/bullets/bullet.gd" id="1_lacqw"]
2023-10-06 17:47:24 +02:00
[ext_resource type="Texture2D" uid="uid://c57taqe4k3mi2" path="res://assets/spritesheets/bullet-1.png" id="2_o8iut"]
2023-12-05 16:29:34 +01:00
[ext_resource type="Texture2D" uid="uid://vpx6vs4ufycr" path="res://assets/spritesheets/explosion.png" id="3_wtt2i"]
2023-10-06 11:40:11 +02:00
[sub_resource type="CircleShape2D" id="CircleShape2D_3cgpo"]
radius = 6.0
2023-12-05 16:29:34 +01:00
[sub_resource type="CircleShape2D" id="CircleShape2D_dyohr"]
radius = 88.0511
[sub_resource type="AtlasTexture" id="AtlasTexture_2161y"]
atlas = ExtResource("3_wtt2i")
region = Rect2(0, 0, 1500, 1125)
[sub_resource type="AtlasTexture" id="AtlasTexture_iaa62"]
atlas = ExtResource("3_wtt2i")
region = Rect2(1500, 0, 1500, 1125)
[sub_resource type="AtlasTexture" id="AtlasTexture_6haw2"]
atlas = ExtResource("3_wtt2i")
region = Rect2(3000, 0, 1500, 1125)
[sub_resource type="AtlasTexture" id="AtlasTexture_k4fug"]
atlas = ExtResource("3_wtt2i")
region = Rect2(0, 1100, 1500, 1700)
[sub_resource type="AtlasTexture" id="AtlasTexture_icmj8"]
atlas = ExtResource("3_wtt2i")
region = Rect2(1500, 1100, 1500, 1700)
[sub_resource type="AtlasTexture" id="AtlasTexture_cckbs"]
atlas = ExtResource("3_wtt2i")
region = Rect2(3000, 1100, 1500, 1700)
[sub_resource type="AtlasTexture" id="AtlasTexture_s5xhq"]
atlas = ExtResource("3_wtt2i")
region = Rect2(0, 2700, 1500, 1500)
[sub_resource type="AtlasTexture" id="AtlasTexture_sxyjv"]
atlas = ExtResource("3_wtt2i")
region = Rect2(1500, 2700, 1500, 1500)
[sub_resource type="AtlasTexture" id="AtlasTexture_50qmh"]
atlas = ExtResource("3_wtt2i")
region = Rect2(3000, 2700, 1500, 1500)
[sub_resource type="SpriteFrames" id="SpriteFrames_88q0q"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_2161y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_iaa62")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_6haw2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_k4fug")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_icmj8")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_cckbs")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_s5xhq")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_sxyjv")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_50qmh")
}],
"loop": true,
"name": &"default",
"speed": 12.0
}]
2023-10-06 17:47:24 +02:00
[node name="bullet" type="Area2D"]
script = ExtResource("1_lacqw")
2023-10-06 11:40:11 +02:00
[node name="Sprite2D" type="Sprite2D" parent="."]
2023-10-06 17:47:24 +02:00
texture = ExtResource("2_o8iut")
2023-10-06 11:40:11 +02:00
hframes = 2
frame = 1
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_3cgpo")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
2023-12-05 16:29:34 +01:00
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_dyohr")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
visible = false
scale = Vector2(0.15, 0.15)
sprite_frames = SubResource("SpriteFrames_88q0q")
frame = 7
frame_progress = 0.957328
2023-10-06 11:40:11 +02:00
[connection signal="body_entered" from="." to="." method="_on_Bullet_body_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
2023-12-05 16:29:34 +01:00
[connection signal="body_entered" from="Area2D" to="." method="_on_body_entered"]
[connection signal="body_exited" from="Area2D" to="." method="_on_body_exited"]