summaryrefslogtreecommitdiff
path: root/Bomb.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'Bomb.tscn')
-rw-r--r--Bomb.tscn46
1 files changed, 46 insertions, 0 deletions
diff --git a/Bomb.tscn b/Bomb.tscn
new file mode 100644
index 0000000..1df4dbc
--- /dev/null
+++ b/Bomb.tscn
@@ -0,0 +1,46 @@
+[gd_scene load_steps=8 format=2]
+
+[ext_resource path="res://Resources/16_bit_animated_bomb/16_bit_bomb3.png" type="Texture" id=1]
+[ext_resource path="res://Bomb.gd" type="Script" id=2]
+[ext_resource path="res://Resources/16_bit_animated_bomb/16bit_bomb1.png" type="Texture" id=3]
+[ext_resource path="res://Resources/16_bit_animated_bomb/16_bit_bomb2.png" type="Texture" id=4]
+
+[sub_resource type="CircleShape2D" id=1]
+radius = 9.17698
+
+[sub_resource type="SpriteFrames" id=2]
+animations = [ {
+"frames": [ ExtResource( 1 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 1 ) ],
+"loop": false,
+"name": "default",
+"speed": 1.0
+} ]
+
+[sub_resource type="CircleShape2D" id=3]
+radius = 9.73652
+
+[node name="Bomb" type="KinematicBody2D"]
+collision_layer = 2
+collision_mask = 2
+script = ExtResource( 2 )
+
+[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
+shape = SubResource( 1 )
+
+[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
+position = Vector2( -1.19209e-07, -1.19209e-07 )
+scale = Vector2( 1.23978, 1.23978 )
+frames = SubResource( 2 )
+
+[node name="Timer" type="Timer" parent="."]
+wait_time = 4.0
+one_shot = true
+autostart = true
+
+[node name="Area2D" type="Area2D" parent="."]
+
+[node name="CollisionShape2DArea2D" type="CollisionShape2D" parent="Area2D"]
+shape = SubResource( 3 )
+
+[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
+[connection signal="body_exited" from="Area2D" to="." method="_on_Area2D_body_exited"]