godot-ultimate-tutorial/scenes/projectiles/laser.tscn

24 lines
727 B
Plaintext
Raw Normal View History

2023-08-15 20:51:29 +00:00
[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"]
2023-10-08 17:29:32 +00:00
collision_layer = 8
collision_mask = 7
2023-08-15 20:51:29 +00:00
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")