2025-12-02 19:01:24 +00:00
|
|
|
[gd_scene load_steps=8 format=3 uid="uid://dgj3hd5wlaoc0"]
|
2025-12-02 18:40:18 +00:00
|
|
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://b7te10evkqwhy" path="res://scripts/laser.gd" id="1_a7dhc"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bb0v0jtreyba3" path="res://textures/laser.png" id="2_jjj73"]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="Curve" id="Curve_ir15t"]
|
|
|
|
|
_data = [Vector2(0, 0.5393259), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
|
|
|
|
point_count = 2
|
|
|
|
|
|
|
|
|
|
[sub_resource type="CurveTexture" id="CurveTexture_ca42v"]
|
|
|
|
|
curve = SubResource("Curve_ir15t")
|
|
|
|
|
|
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_rysoc"]
|
|
|
|
|
gravity = Vector3(0, 98, 0)
|
|
|
|
|
alpha_curve = SubResource("CurveTexture_ca42v")
|
|
|
|
|
|
2025-12-02 19:01:24 +00:00
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_trtic"]
|
|
|
|
|
radius = 12.0
|
|
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_a7dhc"]
|
|
|
|
|
radius = 2.0
|
|
|
|
|
height = 20.0
|
|
|
|
|
|
2025-12-02 18:40:18 +00:00
|
|
|
[node name="Laser" type="RigidBody2D"]
|
|
|
|
|
linear_damp = 6.247
|
|
|
|
|
script = ExtResource("1_a7dhc")
|
|
|
|
|
|
2025-12-02 19:01:24 +00:00
|
|
|
[node name="Trail" type="GPUParticles2D" parent="."]
|
|
|
|
|
amount = 24
|
|
|
|
|
texture = ExtResource("2_jjj73")
|
|
|
|
|
lifetime = 0.05
|
|
|
|
|
process_material = SubResource("ParticleProcessMaterial_rysoc")
|
|
|
|
|
|
2025-12-02 18:40:18 +00:00
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
|
|
|
texture = ExtResource("2_jjj73")
|
|
|
|
|
|
|
|
|
|
[node name="Hitbox" type="Area2D" parent="."]
|
|
|
|
|
|
2025-12-02 19:01:24 +00:00
|
|
|
[node name="Large" type="CollisionShape2D" parent="Hitbox"]
|
2025-12-02 18:40:18 +00:00
|
|
|
shape = SubResource("CircleShape2D_trtic")
|
|
|
|
|
debug_color = Color(1, 0, 0, 0.41960785)
|
|
|
|
|
|
2025-12-02 19:01:24 +00:00
|
|
|
[node name="Small" type="CollisionShape2D" parent="Hitbox"]
|
|
|
|
|
shape = SubResource("CapsuleShape2D_a7dhc")
|
|
|
|
|
debug_color = Color(0.77871144, 0.126396, 0.9999997, 0.41960785)
|
2025-12-02 18:40:18 +00:00
|
|
|
|
|
|
|
|
[connection signal="body_shape_entered" from="Hitbox" to="." method="_on_hitbox_body_shape_entered"]
|