29 lines
967 B
Text
29 lines
967 B
Text
[gd_scene load_steps=4 format=3 uid="uid://fy2lyvc0riic"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/shadow.gd" id="1_0ifcu"]
|
|
[ext_resource type="Texture2D" uid="uid://bunpl1u42ouw5" path="res://sprites/character2.png" id="2_tt2yu"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_po4nb"]
|
|
size = Vector2(12, 12)
|
|
|
|
[node name="Shadow" type="Area2D"]
|
|
texture_filter = 1
|
|
script = ExtResource("1_0ifcu")
|
|
|
|
[node name="RayCastDown" type="RayCast2D" parent="."]
|
|
target_position = Vector2(0, 15)
|
|
|
|
[node name="RayCastUp" type="RayCast2D" parent="."]
|
|
target_position = Vector2(0, -15)
|
|
|
|
[node name="RayCastRight" type="RayCast2D" parent="."]
|
|
target_position = Vector2(15, 0)
|
|
|
|
[node name="RayCastLeft" type="RayCast2D" parent="."]
|
|
target_position = Vector2(-15, 0)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("RectangleShape2D_po4nb")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture = ExtResource("2_tt2yu")
|