31 lines
976 B
Plaintext
31 lines
976 B
Plaintext
|
|
[gd_scene load_steps=5 format=3 uid="uid://pwxmgtdyo48e"]
|
||
|
|
|
||
|
|
[ext_resource type="Texture2D" uid="uid://bqcadowyi7s5v" path="res://Assets/player_laser.png" id="1_ncg07"]
|
||
|
|
[ext_resource type="Script" path="res://Scenes/PlayerLaser.gd" id="1_pqlo3"]
|
||
|
|
|
||
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_chvsx"]
|
||
|
|
radius = 3.0
|
||
|
|
height = 64.0
|
||
|
|
|
||
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_u0b0p"]
|
||
|
|
radius = 3.0
|
||
|
|
height = 64.0
|
||
|
|
|
||
|
|
[node name="PlayerLaser" type="Area2D"]
|
||
|
|
collision_layer = 8
|
||
|
|
collision_mask = 5
|
||
|
|
script = ExtResource("1_pqlo3")
|
||
|
|
|
||
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||
|
|
texture = ExtResource("1_ncg07")
|
||
|
|
|
||
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||
|
|
position = Vector2(-9, -2)
|
||
|
|
shape = SubResource("CapsuleShape2D_chvsx")
|
||
|
|
|
||
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="."]
|
||
|
|
position = Vector2(9, -2)
|
||
|
|
shape = SubResource("CapsuleShape2D_u0b0p")
|
||
|
|
|
||
|
|
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|