29 lines
965 B
Text
29 lines
965 B
Text
[gd_scene load_steps=4 format=3 uid="uid://26601maon1a3"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://4cn5k0vmbjsq" path="res://sprites/character.png" id="1_ro4sv"]
|
|
[ext_resource type="Script" path="res://scripts/player.gd" id="2_e1n6a"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_po4nb"]
|
|
size = Vector2(12, 12)
|
|
|
|
[node name="Player" type="Area2D"]
|
|
texture_filter = 1
|
|
script = ExtResource("2_e1n6a")
|
|
|
|
[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("1_ro4sv")
|