Entities
Enemies
Enemies start at 0x1000 and go up from there. They are defined in the enemies.xml file.
Animations
- Idle
- Walk
- Attack
- Attack 2
Properties
Enemy
| Property | Type | Description | Default Value |
|---|---|---|---|
Type | String | The type of object. This should always be Enemy. | Enemy |
Texture | Texture | The texture of the enemy. | null |
Projectile | Projectile | The projectile of the enemy. | null |
HealthMod | Float | The health modifier of the enemy. | 1 |
LootTier | Int | The loot tier of the enemy. | 0 |
Defense | Int | The defense of the enemy. | 0 |
Projectile
See Projectile Data
Example
<Object id="0x1000" name="Goblin Spearman">
<Type>Enemy</Type>
<Texture>
<Type>Entity</Type>
<Set>goblin_spearman</Set>
</Texture>
<Projectile name="Simple Slash">
<Speed>7</Speed>
<Range>6</Range>
<DamageMod>0.67</DamageMod>
</Projectile>
<HealthMod>0.25</HealthMod>
<LootTier>0</LootTier>
<Defense>5</Defense>
</Object>
NPCs
Items
Equipment
Projectiles
Projectiles start at 0x300 and go up from there. They are defined in the projectiles.xml file.
Projectiles are declared in the projectiles.xml file. They can then be attached with the Projectile property in the enemies.xml file or on items.
Properties
| Property | Type | Description | Default Value |
|---|---|---|---|
Type | String | The type of object. This should always be Projectile. | Projectile |
Sprite | String | The sprite of the projectile. | required |
Attributes
| Attribute | Type | Description | Default Value |
|---|---|---|---|
id | String | The Hex Id for the projectile. | required |
name | String | The name for the projectile. | required |
Example
<Object id="0x300" name="Simple Slash">
<Type>Projectile</Type>
<Sprite>Simple Slash</Sprite>
</Object>