DariusGodotGame/dariusgodotproject/scenes/player.tscn
2025-01-13 20:58:53 -05:00

26 lines
818 B
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://b75mow511wmmb"]
[ext_resource type="Script" path="res://scripts/charactercontroller.gd" id="1_racyk"]
[sub_resource type="CircleShape2D" id="CircleShape2D_i8a0m"]
[node name="CharacterBody2D" type="CharacterBody2D" groups=["player"]]
script = ExtResource("1_racyk")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_i8a0m")
debug_color = Color(1, 0, 0, 0.419608)
[node name="RightRay" type="RayCast2D" parent="."]
target_position = Vector2(25, 0)
[node name="LeftRay" type="RayCast2D" parent="."]
target_position = Vector2(-25, 0)
[node name="RightTarget" type="Node2D" parent="."]
position = Vector2(10, -5)
[node name="LeftTarget" type="Node2D" parent="."]
position = Vector2(-10, -5)