diff options
Diffstat (limited to 'character/character.tscn')
-rw-r--r-- | character/character.tscn | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/character/character.tscn b/character/character.tscn new file mode 100644 index 0000000..3a1b0e8 --- /dev/null +++ b/character/character.tscn @@ -0,0 +1,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 |