godot-ultimate-tutorial/scenes/projectiles/laser.tscn
2023-10-08 19:29:32 +02:00

24 lines
727 B
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://byavoshqwjcwu"]
[ext_resource type="Script" path="res://scenes/projectiles/laser.gd" id="1_kk2rs"]
[ext_resource type="Texture2D" uid="uid://c4snnjwk4uayk" path="res://graphics/projectiles/blue.png" id="1_tx35m"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_gbwda"]
radius = 7.0
height = 108.0
[node name="Laser" type="Area2D"]
collision_layer = 8
collision_mask = 7
script = ExtResource("1_kk2rs")
speed = 2000
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
rotation = 1.5708
shape = SubResource("CapsuleShape2D_gbwda")
[node name="LaserImage" type="Sprite2D" parent="."]
position = Vector2(-9, 0)
rotation = 1.5708
texture = ExtResource("1_tx35m")