damage-numbers

Render floating damage numbers above targets in React Three Fiber scenes.

31|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/verekia/r3f-gamedev --skill damage-numbers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: damage-numbers
Source: https://github.com/verekia/r3f-gamedev/tree/main/skills/damage-numbers
Command: npx skills add https://github.com/verekia/r3f-gamedev --skill damage-numbers

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Floating combat feedback is often unclear in 3D scenes; this skill renders damage numbers that rise and fade, improving readability and player feedback.

Core Features & Use Cases

  • In-game feedback: show damage values above targets, with optional larger/colored crit styling.
  • 3D UI integration: uses Drei's Html to render DOM elements in 3D space.
  • Lifecycle control: numbers spawn, animate, and disappear after the animation completes.

Quick Start

Spawn a damage-number above the target's position when a damage event occurs.

Frequently Asked Questions about damage-numbers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I display floating damage numbers in a React Three Fiber scene?

To display floating damage numbers in a React Three Fiber scene, you can use Drei's Html component to render DOM elements in 3D space, animating them with CSS as they rise and fade above targets.

Can I show critical hit damage numbers with different styling in 3D?

Yes, you can show critical hit damage numbers with different styling in 3D by applying optional larger or colored crit styling to the DOM elements rendered via Drei's Html.

How does Drei Html render UI feedback in a 3D game scene?

Drei Html renders UI feedback in a 3D game scene by anchoring DOM elements to 3D coordinates, allowing standard CSS animations for damage numbers to execute directly within the React Three Fiber environment.

What is the best way to spawn and despawn combat damage numbers in real-time?

The best way to spawn and despawn combat damage numbers in real-time is using React state management to trigger their appearance on damage events and remove them automatically after the CSS animation completes.

Do I need external dependencies to animate damage numbers in React Three Fiber?

No, you do not need external dependencies to animate damage numbers in React Three Fiber, because the effect utilizes Drei's Html for DOM-in-3D rendering and standard CSS animations for the fade-out lifecycle.

Why use CSS animations for 3D damage numbers instead of 3D text geometry?

Using CSS animations for 3D damage numbers instead of 3D text geometry improves readability and player feedback by leveraging DOM-in-3D rendering via Drei Html, which simplifies styling for crits and fade-out effects.