2020-07-20 01:18:45 -05:00
|
|
|
[gd_scene load_steps=5 format=2]
|
2020-07-19 18:36:36 -05:00
|
|
|
|
|
|
|
[ext_resource path="res://art/PhantomProjectile.png" type="Texture" id=1]
|
2020-07-20 01:18:45 -05:00
|
|
|
[ext_resource path="res://magic/Projectiles/PhantomProjectile.gd" type="Script" id=2]
|
2020-07-19 18:36:36 -05:00
|
|
|
|
2020-07-20 16:36:28 -05:00
|
|
|
[sub_resource type="RectangleShape2D" id=3]
|
|
|
|
extents = Vector2( 3, 6 )
|
2020-07-20 01:18:45 -05:00
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape2D" id=2]
|
2020-07-20 16:36:28 -05:00
|
|
|
radius = 4.0
|
|
|
|
height = 7.99999
|
2020-07-19 18:36:36 -05:00
|
|
|
|
|
|
|
[node name="PhantomProjectile" type="KinematicBody2D"]
|
2020-07-19 18:48:23 -05:00
|
|
|
collision_layer = 8
|
2020-07-20 01:18:45 -05:00
|
|
|
collision_mask = 2
|
2020-07-19 18:36:36 -05:00
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
2020-07-20 01:18:45 -05:00
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
2020-07-20 16:36:28 -05:00
|
|
|
scale = Vector2( 1.5, 1.5 )
|
2020-07-20 01:18:45 -05:00
|
|
|
texture = ExtResource( 1 )
|
|
|
|
|
2020-07-19 18:36:36 -05:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
rotation = 1.5708
|
2020-07-20 16:36:28 -05:00
|
|
|
shape = SubResource( 3 )
|
2020-07-19 20:06:49 -05:00
|
|
|
|
2020-07-20 01:18:45 -05:00
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
|
|
monitorable = false
|
|
|
|
collision_layer = 0
|
|
|
|
collision_mask = 4
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
|
|
rotation = 1.5708
|
|
|
|
shape = SubResource( 2 )
|
|
|
|
[connection signal="body_entered" from="Area2D" to="." method="_on_body_entered"]
|