the-crypt/magic/Projectiles/ExplosiveProjectile.tscn
2020-07-23 19:08:59 -05:00

49 lines
1.4 KiB
Plaintext

[gd_scene load_steps=8 format=2]
[ext_resource path="res://art/MineProjectile.png" type="Texture" id=1]
[ext_resource path="res://magic/Projectiles/ExplosiveProjectile.gd" type="Script" id=2]
[ext_resource path="res://Sound Effects/Explosion.wav" type="AudioStream" id=3]
[ext_resource path="res://magic/ExplosionParticles.tscn" type="PackedScene" id=4]
[ext_resource path="res://art/light.png" type="Texture" id=5]
[sub_resource type="CircleShape2D" id=1]
radius = 6.0
[sub_resource type="CircleShape2D" id=2]
radius = 50.0
[node name="ExplosiveProjectile" type="KinematicBody2D"]
collision_layer = 8
collision_mask = 6
script = ExtResource( 2 )
[node name="Light2D" type="Light2D" parent="."]
texture = ExtResource( 5 )
texture_scale = 0.5
color = Color( 1, 0, 0, 1 )
energy = 2.0
[node name="Sprite" type="Sprite" parent="."]
rotation = 0.785398
scale = Vector2( 1.5, 1.5 )
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
shape = SubResource( 1 )
[node name="Particles2D" parent="." instance=ExtResource( 4 )]
[node name="Area2D" type="Area2D" parent="."]
visible = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource( 2 )
[node name="KillTimer" type="Timer" parent="."]
one_shot = true
[node name="Explosion" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource( 3 )
[connection signal="timeout" from="KillTimer" to="." method="_on_KillTimer_timeout"]