[gd_scene load_steps=6 format=1]

[ext_resource path="res://scripts/missile.gd" type="Script" id=1]
[ext_resource path="res://sprites/cannon.png" type="Texture" id=2]
[ext_resource path="res://colors/ramp_asteroid.tres" type="ColorRamp" id=3]
[ext_resource path="res://samplelibrary.tres" type="SampleLibrary" id=4]

[sub_resource type="CapsuleShape2D" id=1]

custom_solver_bias = 0.0
radius = 1.36986
height = 10.1431

[node name="Missile" type="KinematicBody2D"]

input/pickable = false
collision/layers = 1
collision/mask = 1
collision/margin = 0.08
script/script = ExtResource( 1 )
speed_mult = 200

[node name="MissileSprite" type="Sprite" parent="."]

transform/pos = Vector2( 0.0276022, 0.0552044 )
transform/scale = Vector2( 0.1, 0.2 )
texture = ExtResource( 2 )

[node name="FlameParticles" type="Particles2D" parent="."]

transform/pos = Vector2( 0, 5.52227 )
z/z = -1
config/amount = 64
config/lifetime = 1.0
config/process_mode = 1
config/half_extents = Vector2( 0.5, 0 )
config/local_space = false
params/direction = 0.0
params/spread = 20.0
params/linear_velocity = 5.0
params/spin_velocity = 5.0
params/orbit_velocity = 0.0
params/gravity_direction = 0.0
params/gravity_strength = 0.0
params/radial_accel = 0.0
params/tangential_accel = 0.0
params/damping = 0.0
params/initial_angle = 0.0
params/initial_size = 2.0
params/final_size = 0.0
params/hue_variation = 0.0
params/anim_speed_scale = 1.0
params/anim_initial_pos = 0.0
randomness/direction = 1.0
randomness/spread = 5.0
color/color_ramp = ExtResource( 3 )

[node name="CollisionArea" type="Area2D" parent="."]

input/pickable = true
shapes/0/shape = SubResource( 1 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/0/trigger = true
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0

[node name="CollisionShape2D" type="CollisionShape2D" parent="CollisionArea"]

shape = SubResource( 1 )
trigger = true
_update_shape_index = 0

[node name="Audio" type="SamplePlayer2D" parent="."]

params/volume_db = 0.0
params/pitch_scale = 1.0
params/attenuation/min_distance = 1.0
params/attenuation/max_distance = 2048.0
params/attenuation/distance_exp = 1.0
config/polyphony = 5
config/samples = ExtResource( 4 )
config/pitch_random = 0.0


