伤害数字
攻击命中时从目标头顶飘出的数字:暴击放大变色,普通伤害白色,治疗绿色。数字上飘+淡出,节奏感极强。
👾
实现提示词
Damage numbers: on hit, spawn a floating number above the target—crits in large red, normal in white, heals in green; float up 40px and fade over 0.8s.Damage numbers with 800ms float-up keyframes, crit scale 1.5x with red color, staggered spawn.设计规范条目
### Damage Numbers (#dmgnum) Category: Game FX Floating damage numbers on hit: crits scale up in red, normal hits white, heals green. Numbers float up and fade—pure game feel. - Do: Damage numbers: on hit, spawn a floating number above the target—crits in large red, normal in white, heals in green - Do: float up 40px and fade over 0.8s With motion: Damage numbers with 800ms float-up keyframes, crit scale 1.5x with red color, staggered spawn. Live demo: https://uidesignmd.com/guides/dmgnum/