FlatWhite/Laser_enemy.tscn

69 lines
1.8 KiB
Plaintext

[gd_scene load_steps=8 format=2]
[ext_resource path="res://art/laser_frames/laser_e1.png" type="Texture" id=1]
[ext_resource path="res://art/laser_frames/laser_e2.png" type="Texture" id=2]
[ext_resource path="res://art/laser_frames/laser_e3.png" type="Texture" id=3]
[ext_resource path="res://art/laser_frames/laser_e4.png" type="Texture" id=4]
[ext_resource path="res://Laser.gd" type="Script" id=5]
[ext_resource path="res://sfx/laser_charge.wav" type="AudioStream" id=6]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ), ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 4 ) ],
"loop": true,
"name": "default",
"speed": 10.0
} ]
[node name="Laser" type="AnimatedSprite"]
z_index = 1
frames = SubResource( 1 )
animation = "default"
script = ExtResource( 5 )
_sections_unfolded = [ "Z Index" ]
[node name="Timer" type="Timer" parent="." index="0"]
process_mode = 1
wait_time = 0.25
one_shot = false
autostart = false
[node name="Line2D" type="Line2D" parent="." index="1"]
modulate = Color( 1, 1, 1, 0.464078 )
position = Vector2( 15, 0 )
points = PoolVector2Array( -1000, 0, -32, 0 )
width = 2.0
default_color = Color( 1, 1, 1, 1 )
texture_mode = -1082452802
sharp_limit = 2.0
round_precision = 8
_sections_unfolded = [ "Border", "Fill", "Transform", "Visibility" ]
[node name="Tween" type="Tween" parent="." index="2"]
repeat = false
playback_process_mode = 1
playback_speed = 1.0
playback/active = false
playback/repeat = false
playback/speed = 1.0
[node name="spawn_sfx" type="AudioStreamPlayer" parent="." index="3"]
stream = ExtResource( 6 )
volume_db = -10.0
pitch_scale = 1.0
autoplay = true
mix_target = 0
bus = "Master"
[connection signal="frame_changed" from="." to="." method="_on_Laser_frame_changed"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]