GavinGodotGame/scenes/player.tscn

27 lines
846 B
Plaintext
Raw Permalink Normal View History

[gd_scene load_steps=3 format=3 uid="uid://dsvb5ohioaj4w"]
[ext_resource type="Script" uid="uid://cq5wc2smevldf" path="res://scripts/player.gd" id="1_3vyb7"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_8cj0n"]
height = 20.0
[node name="CharacterBody2D" type="CharacterBody2D"]
script = ExtResource("1_3vyb7")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CapsuleShape2D_8cj0n")
debug_color = Color(0.804881, 0.18457, 0.906085, 0.42)
[node name="RightCast" type="RayCast2D" parent="."]
target_position = Vector2(18, 0)
[node name="LeftCast" type="RayCast2D" parent="."]
target_position = Vector2(-18, 0)
[node name="RightSpawn" type="Node2D" parent="."]
position = Vector2(12, -6)
[node name="LeftSpawn" type="Node2D" parent="."]
position = Vector2(-12, -6)