ape-ame/ircle.tscn
2024-04-18 19:45:52 -04:00

51 lines
1.6 KiB
Text

[gd_scene load_steps=6 format=3 uid="uid://4lc6bvf7b8a0"]
[ext_resource type="Texture2D" uid="uid://djfjdlri5xdkn" path="res://dotted line.png" id="2_3i0n3"]
[ext_resource type="Script" path="res://laser_enemy.gd" id="2_lyi2i"]
[ext_resource type="Script" path="res://Laser.gd" id="3_hosl5"]
[ext_resource type="SpriteFrames" uid="uid://d320lntdiw2kj" path="res://ircle.gif" id="3_ys12y"]
[sub_resource type="CircleShape2D" id="CircleShape2D_yns8h"]
radius = 128.0
[node name="Ircle" type="StaticBody2D" groups=["destructible"]]
scale = Vector2(0.2, 0.2)
script = ExtResource("2_lyi2i")
[node name="Line2D" type="Line2D" parent="."]
z_index = -2
texture_filter = 1
texture_repeat = 2
position = Vector2(-65, 0)
points = PackedVector2Array(0, 0, 1075, 0)
width = 144.33
texture = ExtResource("2_3i0n3")
texture_mode = 1
script = ExtResource("3_hosl5")
[node name="VisibleTimer" type="Timer" parent="Line2D"]
wait_time = 0.2
[node name="RayCast2D" type="RayCast2D" parent="Line2D"]
target_position = Vector2(50000, 2.08165e-12)
collision_mask = 3
[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
position = Vector2(-7.62939e-06, 7.62939e-06)
scale = Vector2(10.8333, 10.8333)
sprite_frames = ExtResource("3_ys12y")
animation = &"gif"
frame = 1
frame_progress = 0.670607
speed_scale = 2.6
[node name="Timer" type="Timer" parent="."]
wait_time = 3.0
autostart = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_yns8h")
[connection signal="timeout" from="Line2D/VisibleTimer" to="Line2D" method="hide_self"]
[connection signal="timeout" from="Timer" to="." method="fire_laser"]