fix: refine board collisions and world text

This commit is contained in:
2026-03-11 06:53:47 +08:00
parent 7e65137922
commit dde92737b6
7 changed files with 80 additions and 31 deletions

View File

@@ -1,17 +1,33 @@
[gd_scene load_steps=3 format=3 uid="uid://c7k8yay002w4"]
[gd_scene load_steps=5 format=3 uid="uid://c7k8yay002w4"]
[ext_resource type="Texture2D" uid="uid://v7loa3smfkrd" path="res://assets/materials/WelcomeBoard.png" id="2_sprite"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_board"]
size = Vector2(112, 18.5)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_left_post"]
size = Vector2(16, 20)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_right_post"]
size = Vector2(16, 20)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_center_bar"]
size = Vector2(76, 4)
[node name="WelcomeBoard" type="StaticBody2D"]
z_index = 1
collision_layer = 3
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(0, -44.125)
scale = Vector2(0.25, 0.25)
texture = ExtResource("2_sprite")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 14.75)
shape = SubResource("RectangleShape2D_board")
[node name="LeftPostCollision" type="CollisionShape2D" parent="."]
position = Vector2(-49, -10)
shape = SubResource("RectangleShape2D_left_post")
[node name="RightPostCollision" type="CollisionShape2D" parent="."]
position = Vector2(47, -10)
shape = SubResource("RectangleShape2D_right_post")
[node name="CenterBottomCollision" type="CollisionShape2D" parent="."]
position = Vector2(-1, -22)
shape = SubResource("RectangleShape2D_center_bar")