# XWUIGameDamageNumber

A floating combat-text layer: each `spawn(value, type, position)` call drops an absolute-positioned number at the given x/y that animates upward and fades out, with `type` (`damage`, `heal`, `crit`, or `miss`) selecting the styling - `crit` is scaled by `critScale` and `miss` renders the literal text "MISS". Configure the base `fontSize`, `duration` (ms before cleanup), and `gravity` (float-up distance); convenience helpers `spawnDamage()`, `spawnHeal()`, and `spawnCrit()` preset the type.

## Basic Usage

Mounts the damage-number layer and immediately spawns a `spawnDamage()` hit and a `spawnHeal()` tick at separate positions so both float up and fade.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A floating-text layer spawning a damage hit and a heal tick at different positions.
```

## Critical Strike

A single heavy hit spawned via `spawnCrit()`, scaled up by a boosted `critScale` so the critical number visually dominates.

```example
file: examples/CriticalStrike.ts
html: examples/CriticalStrike.html
title: Critical Strike
description: A crit number spawned with spawnCrit() and enlarged by a 2.2x critScale.
```

## Miss And Poison

A dodged attack rendering the literal "MISS" via the `miss` type, beside a small `damage` tick using a shorter `duration` and lower `gravity`.

```example
file: examples/MissAndPoison.ts
html: examples/MissAndPoison.html
title: Miss And Poison
description: A "miss" type number printing MISS next to a poison damage tick with a short float.
```

```api
```
