23cf6a85bd
Part of #4196.
173 lines
4.7 KiB
Plaintext
173 lines
4.7 KiB
Plaintext
[gd_scene load_steps=10 format=1]
|
|
|
|
[ext_resource path="res://shoot.gd" type="Script" id=1]
|
|
[ext_resource path="res://energy.png" type="Texture" id=2]
|
|
[ext_resource path="res://shoot_halo.png" type="Texture" id=3]
|
|
|
|
[sub_resource type="CircleShape2D" id=1]
|
|
|
|
custom_solver_bias = 0.0
|
|
radius = 10.0
|
|
|
|
[sub_resource type="CanvasItemMaterial" id=2]
|
|
|
|
shader/shading_mode = 0
|
|
|
|
[sub_resource type="Animation" id=3]
|
|
|
|
length = 1.0
|
|
loop = false
|
|
step = 0.1
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("explosion:config/emitting")
|
|
tracks/0/interp = 1
|
|
tracks/0/keys = { "cont":false, "times":FloatArray( 0, 0.3 ), "transitions":FloatArray( 1, 1 ), "values":[ true, false ] }
|
|
tracks/1/type = "value"
|
|
tracks/1/path = NodePath("Sprite:visibility/opacity")
|
|
tracks/1/interp = 1
|
|
tracks/1/keys = { "cont":true, "times":FloatArray( 0, 0.2 ), "transitions":FloatArray( 1, 1 ), "values":[ 1.0, 0.0 ] }
|
|
tracks/2/type = "value"
|
|
tracks/2/path = NodePath("energy1:config/emitting")
|
|
tracks/2/interp = 1
|
|
tracks/2/keys = { "cont":false, "times":FloatArray( 0 ), "transitions":FloatArray( 1 ), "values":[ false ] }
|
|
tracks/3/type = "value"
|
|
tracks/3/path = NodePath("light:color")
|
|
tracks/3/interp = 1
|
|
tracks/3/keys = { "cont":true, "times":FloatArray( 0, 0.5 ), "transitions":FloatArray( 1, 1 ), "values":[ Color( 1, 3, 2, 1 ), Color( 0, 0, 0, 0 ) ] }
|
|
tracks/4/type = "method"
|
|
tracks/4/path = NodePath(".")
|
|
tracks/4/interp = 1
|
|
tracks/4/keys = { "times":FloatArray( 0.9 ), "transitions":FloatArray( 1 ), "values":[ { "args":[ ], "method":"queue_free" } ] }
|
|
|
|
[sub_resource type="Animation" id=4]
|
|
|
|
length = 1.0
|
|
loop = true
|
|
step = 0.1
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("Sprite:transform/rot")
|
|
tracks/0/interp = 1
|
|
tracks/0/keys = { "cont":true, "times":FloatArray( 0, 1 ), "transitions":FloatArray( 1, 1 ), "values":[ 0.0, 360.0 ] }
|
|
|
|
[sub_resource type="ColorRamp" id=5]
|
|
|
|
offsets = FloatArray( 0, 1 )
|
|
colors = ColorArray( 1, 1, 1, 1, 1, 0.617074, 0.704795, 0.0653235 )
|
|
|
|
[sub_resource type="ColorRamp" id=6]
|
|
|
|
offsets = FloatArray( 0, 1 )
|
|
colors = ColorArray( 1, 1, 1, 1, 1, 0.617074, 0.704795, 0.0653235 )
|
|
|
|
[node name="shoot" type="KinematicBody2D"]
|
|
|
|
input/pickable = false
|
|
shapes/0/shape = SubResource( 1 )
|
|
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
|
|
shapes/0/trigger = false
|
|
collision/layers = 1
|
|
collision/mask = 1
|
|
collision/margin = 0.08
|
|
script/script = ExtResource( 1 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
|
|
|
material/material = SubResource( 2 )
|
|
transform/pos = Vector2( -1.46303, -58.521 )
|
|
texture = ExtResource( 2 )
|
|
|
|
[node name="anim" type="AnimationPlayer" parent="."]
|
|
|
|
playback/process_mode = 1
|
|
playback/default_blend_time = 0.0
|
|
root/root = NodePath("..")
|
|
anims/explode = SubResource( 3 )
|
|
anims/spin = SubResource( 4 )
|
|
playback/active = true
|
|
playback/speed = 1.0
|
|
blend_times = [ ]
|
|
autoplay = ""
|
|
|
|
[node name="light" type="Light2D" parent="."]
|
|
|
|
enabled = true
|
|
texture = ExtResource( 3 )
|
|
offset = Vector2( 0, 0 )
|
|
scale = 1.0
|
|
color = Color( 1, 3, 2, 1 )
|
|
energy = 1.0
|
|
mode = 0
|
|
range/height = 80.0
|
|
range/z_min = -1024
|
|
range/z_max = 1024
|
|
range/layer_min = 0
|
|
range/layer_max = 0
|
|
range/item_mask = 1
|
|
shadow/enabled = true
|
|
shadow/color = Color( 0, 0, 0, 0 )
|
|
shadow/buffer_size = 2048
|
|
shadow/esm_multiplier = 80.0
|
|
shadow/item_mask = 1
|
|
|
|
[node name="shape" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource( 1 )
|
|
trigger = false
|
|
_update_shape_index = -1
|
|
|
|
[node name="energy1" type="Particles2D" parent="."]
|
|
|
|
visibility/blend_mode = 1
|
|
transform/pos = Vector2( -1.06581, -61.3015 )
|
|
config/amount = 32
|
|
config/lifetime = 0.6
|
|
config/local_space = false
|
|
config/texture = ExtResource( 2 )
|
|
params/direction = 0.0
|
|
params/spread = 180.0
|
|
params/linear_velocity = 60.0
|
|
params/spin_velocity = 0.0
|
|
params/orbit_velocity = 0.0
|
|
params/gravity_direction = 0.0
|
|
params/gravity_strength = 9.8
|
|
params/radial_accel = 0.0
|
|
params/tangential_accel = 0.0
|
|
params/damping = 0.0
|
|
params/initial_angle = 0.0
|
|
params/initial_size = 0.8
|
|
params/final_size = 0.1
|
|
params/hue_variation = 0.0
|
|
params/anim_speed_scale = 1.0
|
|
params/anim_initial_pos = 0.0
|
|
color/color_ramp = SubResource( 5 )
|
|
|
|
[node name="explosion" type="Particles2D" parent="."]
|
|
|
|
visibility/blend_mode = 1
|
|
transform/pos = Vector2( -1.06581, -61.3015 )
|
|
config/amount = 32
|
|
config/lifetime = 0.6
|
|
config/emitting = false
|
|
config/local_space = false
|
|
config/explosiveness = 0.1
|
|
config/texture = ExtResource( 2 )
|
|
params/direction = 0.0
|
|
params/spread = 180.0
|
|
params/linear_velocity = 200.0
|
|
params/spin_velocity = 0.0
|
|
params/orbit_velocity = 0.0
|
|
params/gravity_direction = 0.0
|
|
params/gravity_strength = 200.0
|
|
params/radial_accel = 0.0
|
|
params/tangential_accel = 0.0
|
|
params/damping = 0.0
|
|
params/initial_angle = 0.0
|
|
params/initial_size = 0.8
|
|
params/final_size = 0.1
|
|
params/hue_variation = 0.0
|
|
params/anim_speed_scale = 1.0
|
|
params/anim_initial_pos = 0.0
|
|
color/color_ramp = SubResource( 6 )
|
|
|
|
|