From 46556d864b9685c3b09a0038f5de83966fe7ff94 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 10 Aug 2023 11:48:05 +0200 Subject: Initial commit --- Scenes/Entities/Bombs/Explosion.tscn | 63 ++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Scenes/Entities/Bombs/Explosion.tscn (limited to 'Scenes/Entities/Bombs/Explosion.tscn') diff --git a/Scenes/Entities/Bombs/Explosion.tscn b/Scenes/Entities/Bombs/Explosion.tscn new file mode 100644 index 0000000..2521dfb --- /dev/null +++ b/Scenes/Entities/Bombs/Explosion.tscn @@ -0,0 +1,63 @@ +[gd_scene load_steps=8 format=3 uid="uid://c8cg25hagp4lj"] + +[ext_resource type="Texture2D" uid="uid://5dk0c1kpvdgs" path="res://Assets/bomb_party_v4.png" id="1"] +[ext_resource type="Script" path="res://Scenes/Entities/Bombs/Explosion.gd" id="2"] + +[sub_resource type="AtlasTexture" id="3"] +atlas = ExtResource("1") +region = Rect2(224, 288, 16, 16) + +[sub_resource type="AtlasTexture" id="4"] +atlas = ExtResource("1") +region = Rect2(224, 272, 16, 16) + +[sub_resource type="AtlasTexture" id="5"] +atlas = ExtResource("1") +region = Rect2(224, 256, 16, 16) + +[sub_resource type="SpriteFrames" id="1"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": SubResource("3") +}, { +"duration": 1.0, +"texture": SubResource("3") +}, { +"duration": 1.0, +"texture": SubResource("4") +}, { +"duration": 1.0, +"texture": SubResource("4") +}, { +"duration": 1.0, +"texture": SubResource("4") +}, { +"duration": 1.0, +"texture": SubResource("5") +}, { +"duration": 1.0, +"texture": SubResource("5") +}], +"loop": false, +"name": &"default", +"speed": 60.0 +}] + +[sub_resource type="CircleShape2D" id="2"] +radius = 7.5 + +[node name="Explosion" type="Area2D"] +collision_layer = 32 +collision_mask = 62 +script = ExtResource("2") + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] +position = Vector2(-2.98023e-08, -2.98023e-08) +scale = Vector2(0.913346, 0.913346) +sprite_frames = SubResource("1") + +[node name="CollisionShape2D" type="CollisionShape2D" parent="."] +shape = SubResource("2") + +[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_AnimatedSprite_animation_finished"] -- cgit v1.2.3