Entities

Enemies

Enemies start at 0x1000 and go up from there. They are defined in the enemies.xml file.

Animations

  1. Idle
  2. Walk
  3. Attack
  4. Attack 2

Properties

Enemy

PropertyTypeDescriptionDefault Value
TypeStringThe type of object. This should always be Enemy.Enemy
TextureTextureThe texture of the enemy.null
ProjectileProjectileThe projectile of the enemy.null
HealthModFloatThe health modifier of the enemy.1
LootTierIntThe loot tier of the enemy.0
DefenseIntThe 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.

Info

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

PropertyTypeDescriptionDefault Value
TypeStringThe type of object. This should always be Projectile.Projectile
SpriteStringThe sprite of the projectile.required

Attributes

AttributeTypeDescriptionDefault Value
idStringThe Hex Id for the projectile.required
nameStringThe name for the projectile.required

Example

<Object id="0x300" name="Simple Slash">
    <Type>Projectile</Type>
    <Sprite>Simple Slash</Sprite>
</Object>

Projectile Data