the-crypt/magic/Projectiles/ExplosiveProjectile.tscn
2020-07-20 16:36:28 -05:00

60 lines
1.6 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]
[sub_resource type="CircleShape2D" id=1]
radius = 6.0
[sub_resource type="Gradient" id=3]
offsets = PoolRealArray( 0.0120482, 0.192771, 0.534137, 1 )
colors = PoolColorArray( 1, 0.449219, 0.449219, 1, 1, 0, 0, 1, 1, 0.351563, 0, 1, 0.155762, 0.155762, 0.155762, 1 )
[sub_resource type="GradientTexture" id=4]
gradient = SubResource( 3 )
[sub_resource type="ParticlesMaterial" id=5]
emission_shape = 1
emission_sphere_radius = 1.0
flag_disable_z = true
spread = 180.0
gravity = Vector3( 0, 0, 0 )
initial_velocity = 50.0
orbit_velocity = 0.0
orbit_velocity_random = 0.0
color_ramp = SubResource( 4 )
[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="Sprite" type="Sprite" parent="."]
rotation = 0.785398
scale = Vector2( 1.5, 1.5 )
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Particles2D" type="Particles2D" parent="."]
emitting = false
amount = 200
one_shot = true
speed_scale = 2.5
explosiveness = 0.8
process_material = SubResource( 5 )
[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
[connection signal="timeout" from="KillTimer" to="." method="_on_KillTimer_timeout"]