2020-07-21 18:08:31 -05:00
|
|
|
[gd_scene load_steps=7 format=2]
|
2020-07-19 18:36:36 -05:00
|
|
|
|
|
|
|
[ext_resource path="res://art/MineProjectile.png" type="Texture" id=1]
|
2020-07-20 01:18:45 -05:00
|
|
|
[ext_resource path="res://magic/Projectiles/ExplosiveProjectile.gd" type="Script" id=2]
|
2020-07-21 15:50:32 -05:00
|
|
|
[ext_resource path="res://Sound Effects/Explosion.wav" type="AudioStream" id=3]
|
2020-07-21 18:08:31 -05:00
|
|
|
[ext_resource path="res://magic/ExplosionParticles.tscn" type="PackedScene" id=4]
|
2020-07-19 18:36:36 -05:00
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id=1]
|
2020-07-20 16:36:28 -05:00
|
|
|
radius = 6.0
|
2020-07-19 18:36:36 -05:00
|
|
|
|
2020-07-22 13:12:24 -05:00
|
|
|
[sub_resource type="CircleShape2D" id=2]
|
2020-07-20 01:18:45 -05:00
|
|
|
radius = 50.0
|
|
|
|
|
2020-07-19 18:36:36 -05:00
|
|
|
[node name="ExplosiveProjectile" type="KinematicBody2D"]
|
2020-07-19 18:48:23 -05:00
|
|
|
collision_layer = 8
|
|
|
|
collision_mask = 6
|
2020-07-19 18:36:36 -05:00
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
2020-07-20 14:24:15 -05:00
|
|
|
rotation = 0.785398
|
2020-07-20 16:36:28 -05:00
|
|
|
scale = Vector2( 1.5, 1.5 )
|
2020-07-19 18:36:36 -05:00
|
|
|
texture = ExtResource( 1 )
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource( 1 )
|
2020-07-20 01:18:45 -05:00
|
|
|
|
2020-07-21 18:08:31 -05:00
|
|
|
[node name="Particles2D" parent="." instance=ExtResource( 4 )]
|
2020-07-20 01:18:45 -05:00
|
|
|
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
2020-07-20 16:36:28 -05:00
|
|
|
visible = false
|
2020-07-20 01:18:45 -05:00
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
2020-07-22 13:12:24 -05:00
|
|
|
shape = SubResource( 2 )
|
2020-07-20 01:18:45 -05:00
|
|
|
|
|
|
|
[node name="KillTimer" type="Timer" parent="."]
|
|
|
|
one_shot = true
|
2020-07-21 15:50:32 -05:00
|
|
|
|
|
|
|
[node name="Explosion" type="AudioStreamPlayer2D" parent="."]
|
|
|
|
stream = ExtResource( 3 )
|
2020-07-20 01:18:45 -05:00
|
|
|
[connection signal="timeout" from="KillTimer" to="." method="_on_KillTimer_timeout"]
|