summaryrefslogtreecommitdiff
path: root/character/character.tscn
blob: 3a1b0e851f2fcb59bec8acdd598f9a14899d1236 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[gd_scene load_steps=4 format=3 uid="uid://d21spw8y5yiuu"]

[ext_resource type="Script" path="res://character/character.gd" id="1_wqxem"]
[ext_resource type="SpriteFrames" uid="uid://cvbw222po7psr" path="res://character/character_sprite_frames.tres" id="2_xbkcg"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_wfm33"]
size = Vector2(12, 12)

[node name="Character" type="Node2D"]
script = ExtResource("1_wqxem")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
texture_filter = 1
position = Vector2(-10, -10)
sprite_frames = ExtResource("2_xbkcg")
animation = &"scissors_idle"
centered = false

[node name="Collision" type="Area2D" parent="."]
collision_layer = 0
collision_mask = 256

[node name="CollisionShape2D" type="CollisionShape2D" parent="Collision"]
shape = SubResource("RectangleShape2D_wfm33")

[node name="RayLeft" type="RayCast2D" parent="."]
target_position = Vector2(-8, 0)
collision_mask = 256

[node name="RayRight" type="RayCast2D" parent="."]
target_position = Vector2(8, 0)
collision_mask = 256

[node name="RayUpLeft" type="RayCast2D" parent="."]
position = Vector2(-6, 0)
target_position = Vector2(0, -10)
collision_mask = 256

[node name="RayUpRight" type="RayCast2D" parent="."]
position = Vector2(6, 0)
target_position = Vector2(0, -10)
collision_mask = 256

[node name="RayDownLeft" type="RayCast2D" parent="."]
position = Vector2(-6, 0)
target_position = Vector2(0, 9)
collision_mask = 768

[node name="RayDownRight" type="RayCast2D" parent="."]
position = Vector2(6, 0)
target_position = Vector2(0, 9)
collision_mask = 768