summaryrefslogtreecommitdiff
path: root/Bomb.tscn
blob: 1df4dbc66d17236f65628ff72feeb53f2fe6bd1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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"]