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,20 +1,35 @@
[gd_scene load_steps=4 format=3 uid="uid://rdmrm7j4iokr"]
[gd_scene load_steps=6 format=3 uid="uid://rdmrm7j4iokr"]
[ext_resource type="Script" uid="uid://pnlgf420wktn" path="res://scenes/prefabs/items/NoticeBoard.gd" id="1_script"]
[ext_resource type="Script" uid="uid://cia2i6wew103b" path="res://scenes/prefabs/items/NoticeBoard.gd" id="1_script"]
[ext_resource type="Texture2D" uid="uid://b4aildrnhbpl4" path="res://assets/materials/NoticeBoard.png" id="2_sprite"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_nb"]
size = Vector2(160, 40)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_left_post"]
size = Vector2(14, 16)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_right_post"]
size = Vector2(14, 16)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_center_bar"]
size = Vector2(125, 4.666666)
[node name="NoticeBoard" type="StaticBody2D"]
z_index = 1
scale = Vector2(0.6, 0.6)
script = ExtResource("1_script")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(0, -16)
position = Vector2(0, -45.3)
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_sprite")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, 6.6666665)
shape = SubResource("RectangleShape2D_nb")
[node name="LeftPostCollision" type="CollisionShape2D" parent="."]
position = Vector2(-75, 10)
shape = SubResource("RectangleShape2D_left_post")
[node name="RightPostCollision" type="CollisionShape2D" parent="."]
position = Vector2(73.33333, 6.666667)
shape = SubResource("RectangleShape2D_right_post")
[node name="CenterBottomCollision" type="CollisionShape2D" parent="."]
position = Vector2(-2.5, -2.6666667)
shape = SubResource("RectangleShape2D_center_bar")