41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://magic/Beams/PhantomBeam.png" type="Texture" id=1]
|
|
[ext_resource path="res://magic/Beams/PhantomBeam.gd" type="Script" id=2]
|
|
[ext_resource path="res://Sound Effects/PhantomProjectile.wav" type="AudioStream" id=3]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 4, 4 )
|
|
|
|
[node name="PhantomBeam" type="Node2D"]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="Beam" type="Sprite" parent="."]
|
|
position = Vector2( 0, -4 )
|
|
texture = ExtResource( 1 )
|
|
centered = false
|
|
region_enabled = true
|
|
region_rect = Rect2( 0, 0, 8, 8 )
|
|
|
|
[node name="Begin" type="Sprite" parent="."]
|
|
|
|
[node name="RayCast2D" type="RayCast2D" parent="."]
|
|
enabled = true
|
|
cast_to = Vector2( 400, 0 )
|
|
collision_mask = 2
|
|
|
|
[node name="End" type="Position2D" parent="."]
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
monitorable = false
|
|
collision_layer = 0
|
|
collision_mask = 2147483652
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
modulate = Color( 0.945313, 1, 0, 1 )
|
|
position = Vector2( 4, 0 )
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="FireSound" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource( 3 )
|