1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-30 16:01:53 +08:00
Files
Dog-Lynx-And-HCN/components/UI/ItemDropped.tscn
T
fallingshrimp bf64114633 feat(音效): 添加物品收集音效并改进数值显示
为物品收集添加音效播放功能
在EntityBase.gd中调用playSound("collect")
添加Collect.wav音效文件及导入配置

改进数值显示格式:
- 在MathTool.gd中添加signBeforeStr方法
- 修改FieldShow.gd使用新方法显示带符号的数值
- 调整FieldShow.tscn的UI布局

同时修复MakeFeed.gd中feed显示问题
2025-08-27 21:43:06 +08:00

19 lines
654 B
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://cxcvc1rjvm8i2"]
[ext_resource type="Script" path="res://scripts/Statemachine/ItemDropped.gd" id="1_v2djl"]
[ext_resource type="Texture2D" uid="uid://bks8jmctleina" path="res://resources/items/baseball.svg" id="2_4hl42"]
[sub_resource type="CircleShape2D" id="CircleShape2D_7lt1c"]
radius = 2.0
[node name="ItemDropped" type="RigidBody2D"]
script = ExtResource("1_v2djl")
[node name="texture" type="Sprite2D" parent="."]
unique_name_in_owner = true
scale = Vector2(0.5, 0.5)
texture = ExtResource("2_4hl42")
[node name="hitbox" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_7lt1c")