GodotCourse/week2/updated_files/scenes/character.tscn

28 lines
810 B
Plaintext
Raw Permalink Normal View History

2024-07-16 01:10:20 +00:00
[gd_scene load_steps=3 format=3 uid="uid://go4yc8hfo1gq"]
[ext_resource type="Script" path="res://scripts/CharacterBody2D.gd" id="1_x87yo"]
[sub_resource type="CircleShape2D" id="CircleShape2D_ubfw4"]
radius = 13.0384
[node name="CharacterBody2D" type="CharacterBody2D"]
position = Vector2(-1, 0)
script = ExtResource("1_x87yo")
JUMP_VELOCITY = -500.0
PUSH_FORCE = 200
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_ubfw4")
[node name="RightRay" type="RayCast2D" parent="."]
target_position = Vector2(25, 0)
[node name="LeftRay" type="RayCast2D" parent="."]
target_position = Vector2(-25, 0)
[node name="MarkerRight" type="Node2D" parent="."]
2024-07-29 18:23:06 +00:00
position = Vector2(17, -9)
2024-07-16 01:10:20 +00:00
[node name="MarkerLeft" type="Node2D" parent="."]
position = Vector2(-16, -6)