summaryrefslogtreecommitdiff
path: root/Player/arrow.tscn
blob: a9f7c9836ab922fad612b9cb2153987679a91053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[gd_scene load_steps=4 format=3 uid="uid://ctkfjrwg171fr"]

[ext_resource type="Texture2D" uid="uid://b6mkb436giuns" path="res://Player/Assets/arrow.png" id="1_1lalc"]
[ext_resource type="Script" path="res://Player/arrow.gd" id="1_q6ess"]
[ext_resource type="Shape2D" uid="uid://vny1lmq7xr3s" path="res://Player/arrow_head_shape.tres" id="3_b2q2f"]

[node name="Arrow" type="CharacterBody2D"]
z_index = 1
collision_layer = 0
collision_mask = 8
script = ExtResource("1_q6ess")

[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
rotation = -3.14159
texture = ExtResource("1_1lalc")

[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
position = Vector2(-7.15256e-07, -3.27826e-07)
scale = Vector2(0.8, 0.5)

[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-4.5, 0)
shape = ExtResource("3_b2q2f")

[node name="ArrowHead" type="Area2D" parent="." groups=["arrow"]]
collision_layer = 2
collision_mask = 4

[node name="CollisionShape2D" type="CollisionShape2D" parent="ArrowHead"]
position = Vector2(-4.5, 0)
shape = ExtResource("3_b2q2f")
disabled = true

[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]