Files
whale_town/Scenes/Player.tscn
WangXiang 6119faf53e init
2025-12-22 18:57:51 +08:00

49 lines
1.3 KiB
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://6gpuqttnllfc"]
[ext_resource type="Script" uid="uid://c2oq8ax5dl7s2" path="res://Scripts/Player.gd" id="1_script"]
[ext_resource type="Texture2D" uid="uid://cdi4mj5buwmyb" path="res://Assets/WhalePlayer.png" id="2_whale"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_kyqiw"]
[node name="Player" type="CharacterBody2D"]
z_index = 1
collision_layer = 2
script = ExtResource("1_script")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(0, -1)
scale = Vector2(0.266, 0.278)
texture = ExtResource("2_whale")
offset = Vector2(7, 0)
hframes = 3
vframes = 4
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 8)
shape = SubResource("RectangleShape2D_kyqiw")
[node name="RayCast2D" type="RayCast2D" parent="."]
target_position = Vector2(0, 24)
collide_with_areas = true
[node name="NameLabel" type="Label" parent="."]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -60.0
offset_top = -50.0
offset_right = 60.0
offset_bottom = -25.0
grow_horizontal = 2
grow_vertical = 0
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 12
text = "Player"
horizontal_alignment = 1
vertical_alignment = 1