From 80e2158f7251d6a880c1afc50ff043c12096ef25 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 16 May 2021 11:57:48 +0200 Subject: Initial commit --- Bomb.tscn | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Bomb.tscn (limited to 'Bomb.tscn') 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"] -- cgit v1.2.3