2025-04-23 16:20:00 +00:00
|
|
|
[gd_scene load_steps=5 format=3 uid="uid://b77r6f5awabe0"]
|
2023-11-20 09:35:59 +00:00
|
|
|
|
2025-04-23 16:20:00 +00:00
|
|
|
[ext_resource type="Script" path="res://script/entities/Laser.cs" id="1_qm1lv"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://b1tayknrnnrnx" path="res://assets/PNG/Lasers/laserBlue01.png" id="2_v06x5"]
|
|
|
|
|
[ext_resource type="AudioStream" uid="uid://bkmou1np8dpi6" path="res://assets/sounds/laser_fire.ogg" id="3_bsx87"]
|
2023-11-20 09:35:59 +00:00
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_odhrn"]
|
|
|
|
|
radius = 3.0
|
|
|
|
|
height = 56.0
|
|
|
|
|
|
|
|
|
|
[node name="Laser" type="Area2D"]
|
|
|
|
|
scale = Vector2(0.6, 0.6)
|
2023-12-08 14:21:45 +00:00
|
|
|
collision_layer = 8
|
2025-04-21 19:03:51 +00:00
|
|
|
collision_mask = 13
|
2025-04-23 16:20:00 +00:00
|
|
|
script = ExtResource("1_qm1lv")
|
2023-11-20 09:35:59 +00:00
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
|
shape = SubResource("CapsuleShape2D_odhrn")
|
|
|
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
2025-04-23 16:20:00 +00:00
|
|
|
texture = ExtResource("2_v06x5")
|
2023-11-20 09:35:59 +00:00
|
|
|
|
|
|
|
|
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
|
|
|
|
scale = Vector2(0.5, 2.75)
|
|
|
|
|
|
2025-04-23 16:20:00 +00:00
|
|
|
[node name="LaserSFX" type="AudioStreamPlayer2D" parent="."]
|
|
|
|
|
stream = ExtResource("3_bsx87")
|
|
|
|
|
|
2023-12-08 14:21:45 +00:00
|
|
|
[connection signal="area_entered" from="." to="." method="OnAreaEntered"]
|
2023-11-20 09:35:59 +00:00
|
|
|
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
|