飘字提示
获得物品/金币时飘起的文字:'+100 金币''任务完成'从屏幕中央上飘。比弹窗更轻,比 Toast 更有游戏味。
实现提示词
Floating text: on pickup, spawn text at screen center ('+100 Gold'), float up 60px and fade over 1s.Float-up 60px + fade over 1000ms, slight scale-in on spawn.设计规范条目
### Floating Text (#floattext)
Category: Game FX
Floating pickup text: '+100 Gold' or 'Quest Complete' drifts up from center. Lighter than modals, more game-y than toasts.
- Do: Floating text: on pickup, spawn text at screen center ('+100 Gold'), float up 60px and fade over 1s
With motion: Float-up 60px + fade over 1000ms, slight scale-in on spawn.
Live demo: https://uidesignmd.com/guides/floattext/