new Animation(name, loop)
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
name | string | animation | Animation name (e.g., "walk", "idle", "attack"). |
loop | boolean | true | Whether animation loops. |
- Source