ENTITY_DEFS = {
  ['player'] = {
    walkSpeed = PLAYER_WALK_SPEED,
    height = 16,
    width = 16,
    animations = {
      ['walk-left'] = {
        frames = {6, 5},
        interval = 0.3,
        texture = 'character-walk',
        looping = true
      },
      ['walk-right'] = {
        frames = {7, 8}, --ADD THESE DIRECTION SPRITES TO THE ATLAS
        interval = 0.3,
        texture = 'character-walk',
        looping = true
      },
      ['walk-up'] = {
        frames = {3, 4},
        interval = 0.3,
        texture = 'character-walk',
        looping = true
      },
      ['walk-down'] = {
        frames = {1, 2},
        interval = 0.3,
        texture = 'character-walk',
        looping = true
      },
      ['idle-left'] = {
        frames = {5},
        interval = 0.3,
        texture = 'character-walk',
        looping = true
      },
      ['idle-right'] = {
        frames = {8},
        interval = 0.3,
        texture = 'character-walk',
        looping = true
      },
      ['idle-up'] = {
        frames = {4},
        interval = 0.3,
        texture = 'character-walk',
        looping = true
      },
      ['idle-down'] = {
        frames = {2},
        interval = 0.3,
        texture = 'character-walk',
        looping = true
      },
      ['sleep-down'] = {
        frames = {1},
        interval = 0.3,
        texture = 'character-sleep',
        looping = false
      },
      ['sleep-left'] = {
        frames = {5},
        interval = 0.3,
        texture = 'character-sleep',
        looping = false
      },
      ['sleep-right'] = {
        frames = {8},
        interval = 0.3,
        texture = 'character-sleep',
        looping = false
      },
      ['falling'] = {
        frames = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10},
        interval = 0.1,
        texture = 'character-fall',
        looping = false
      },
      ['push-down'] = {
        frames = {1, 2},
        interval = 0.3,
        texture = 'character-push',
        looping = true
      },
      ['push-up'] = {
        frames = {3, 4},
        interval = 0.3,
        texture = 'character-push',
        looping = true
      },
      ['push-left'] = {
        frames = {6, 5},
        interval = 0.3,
        texture = 'character-push',
        looping = true
      },
      ['push-right'] = {
        frames = {8, 7},
        interval = 0.3,
        texture = 'character-push',
        looping = true
      },
      ['showOff'] = {
        frames = {1},
        interval = 0,
        texture = 'character-showOff',
        looping = true
      },
      ['death'] = {
        frames = {1, 2, 3, 4, 5, 6, 7, 8, 9},
        interval = .1,
        texture = 'player-death',
        looping = false,
      },
      ['chasm-fall'] = {
        frames = {2, 3, 4, 5, 6, 7},
        interval = .1,
        texture = 'player-death',
        looping = true,
      }
    }
  },
  ['character-element'] = {
    animations = {
      ['walk-left'] = {
        frames = {6, 5},
        interval = 0.3,
        texture = 'character-element',
        looping = true
      },
      ['walk-right'] = {
        frames = {7, 8}, --ADD THESE DIRECTION SPRITES TO THE ATLAS
        interval = 0.3,
        texture = 'character-element',
        looping = true
      },
      ['walk-up'] = {
        frames = {3, 4},
        interval = 0.3,
        texture = 'character-element',
        looping = true
      },
      ['walk-down'] = {
        frames = {1, 2},
        interval = 0.3,
        texture = 'character-element',
        looping = true
      },
      ['idle-left'] = {
        frames = {5},
        interval = 0.3,
        texture = 'character-element',
        looping = true
      },
      ['idle-right'] = {
        frames = {8},
        interval = 0.3,
        texture = 'character-element',
        looping = true
      },
      ['idle-up'] = {
        frames = {4},
        interval = 0.3,
        texture = 'character-element',
        looping = true
      },
      ['idle-down'] = {
        frames = {2},
        interval = 0.3,
        texture = 'character-element',
        looping = true
      },
    }
  },
  ['villager1'] = {
    walkSpeed = PLAYER_WALK_SPEED / 2,
    height = 16,
    width = 16,
    animations = {
      ['walk-left'] = {
        frames = {6, 5},
        interval = 0.3,
        texture = 'villager1-walk',
        looping = true
      },
      ['walk-right'] = {
        frames = {7, 8},
        interval = 0.3,
        texture = 'villager1-walk',
        looping = true
      },
      ['walk-up'] = {
        frames = {3, 4},
        interval = 0.3,
        texture = 'villager1-walk',
        looping = true
      },
      ['walk-down'] = {
        frames = {1, 2},
        interval = 0.3,
        texture = 'villager1-walk',
        looping = true
      },
      ['idle-left'] = {
        frames = {5},
        interval = 0.3,
        texture = 'villager1-walk',
        looping = true
      },
      ['idle-right'] = {
        frames = {8},
        interval = 0.3,
        texture = 'villager1-walk',
        looping = true
      },
      ['idle-up'] = {
        frames = {4},
        interval = 0.3,
        texture = 'villager1-walk',
        looping = true
      },
      ['idle-down'] = {
        frames = {2},
        interval = 0.3,
        texture = 'villager1-walk',
        looping = true
      },
    }
  },
  ['villager2'] = {
    walkSpeed = PLAYER_WALK_SPEED / 2,
    height = 16,
    width = 16,
    animations = {
      ['walk-left'] = {
        frames = {6, 5},
        interval = 0.3,
        texture = 'villager2-walk',
        looping = true
      },
      ['walk-right'] = {
        frames = {7, 8},
        interval = 0.3,
        texture = 'villager2-walk',
        looping = true
      },
      ['walk-up'] = {
        frames = {3, 4},
        interval = 0.3,
        texture = 'villager2-walk',
        looping = true
      },
      ['walk-down'] = {
        frames = {1, 2},
        interval = 0.3,
        texture = 'villager2-walk',
        looping = true
      },
      ['idle-left'] = {
        frames = {5},
        interval = 0.3,
        texture = 'villager2-walk',
        looping = true
      },
      ['idle-right'] = {
        frames = {8},
        interval = 0.3,
        texture = 'villager2-walk',
        looping = true
      },
      ['idle-up'] = {
        frames = {4},
        interval = 0.3,
        texture = 'villager2-walk',
        looping = true
      },
      ['idle-down'] = {
        frames = {2},
        interval = 0.3,
        texture = 'villager2-walk',
        looping = true
      },
    }
  },
  ['villagerKid'] = {
    walkSpeed = PLAYER_WALK_SPEED / 2,
    height = 16,
    width = 16,
    animations = {
      ['walk-left'] = {
        frames = {6, 5},
        interval = 0.3,
        texture = 'villagerKid-walk',
        looping = true
      },
      ['walk-right'] = {
        frames = {7, 8},
        interval = 0.3,
        texture = 'villagerKid-walk',
        looping = true
      },
      ['walk-up'] = {
        frames = {3, 4},
        interval = 0.3,
        texture = 'villagerKid-walk',
        looping = true
      },
      ['walk-down'] = {
        frames = {1, 2},
        interval = 0.3,
        texture = 'villagerKid-walk',
        looping = true
      },
      ['idle-left'] = {
        frames = {5},
        interval = 0.3,
        texture = 'villagerKid-walk',
        looping = true
      },
      ['idle-right'] = {
        frames = {8},
        interval = 0.3,
        texture = 'villagerKid-walk',
        looping = true
      },
      ['idle-up'] = {
        frames = {4},
        interval = 0.3,
        texture = 'villagerKid-walk',
        looping = true
      },
      ['idle-down'] = {
        frames = {2},
        interval = 0.3,
        texture = 'villagerKid-walk',
        looping = true
      },
    }
  },
  ['mage'] = {
    walkSpeed = PLAYER_WALK_SPEED / 2,
    height = 16,
    width = 16,
    animations = {
      ['walk-left'] = {
        frames = {6, 5},
        interval = 0.3,
        texture = 'mage-walk',
        looping = true
      },
      ['walk-right'] = {
        frames = {7, 8},
        interval = 0.3,
        texture = 'mage-walk',
        looping = true
      },
      ['walk-up'] = {
        frames = {3, 4},
        interval = 0.3,
        texture = 'mage-walk',
        looping = true
      },
      ['walk-down'] = {
        frames = {1, 2},
        interval = 0.3,
        texture = 'mage-walk',
        looping = true
      },
      ['idle-left'] = {
        frames = {5},
        interval = 0.3,
        texture = 'mage-walk',
        looping = true
      },
      ['idle-right'] = {
        frames = {8},
        interval = 0.3,
        texture = 'mage-walk',
        looping = true
      },
      ['idle-up'] = {
        frames = {4},
        interval = 0.3,
        texture = 'mage-walk',
        looping = true
      },
      ['idle-down'] = {
        frames = {2},
        interval = 0.3,
        texture = 'mage-walk',
        looping = true
      },
    }
  },
  ['ren'] = {
    walkSpeed = PLAYER_WALK_SPEED / 2,
    height = 16,
    width = 16,
    animations = {
      ['walk-left'] = {
        frames = {6, 5},
        interval = 0.3,
        texture = 'ren-walk',
        looping = true
      },
      ['walk-right'] = {
        frames = {7, 8},
        interval = 0.3,
        texture = 'ren-walk',
        looping = true
      },
      ['walk-up'] = {
        frames = {3, 4},
        interval = 0.3,
        texture = 'ren-walk',
        looping = true
      },
      ['walk-down'] = {
        frames = {1, 2},
        interval = 0.3,
        texture = 'ren-walk',
        looping = true
      },
      ['idle-left'] = {
        frames = {5},
        interval = 0.3,
        texture = 'ren-walk',
        looping = true
      },
      ['idle-right'] = {
        frames = {8},
        interval = 0.3,
        texture = 'ren-walk',
        looping = true
      },
      ['idle-up'] = {
        frames = {4},
        interval = 0.3,
        texture = 'ren-walk',
        looping = true
      },
      ['idle-down'] = {
        frames = {2},
        interval = 0.3,
        texture = 'ren-walk',
        looping = true
      },
    }
  },
  ['crate'] = {
    animations = {
      ['defaultCrate'] = {
        frames = {1},
        interval = 0.1,
        texture = 'crate',
        looping = true
      },
      ['breakCrate'] = {
        frames = {1, 2, 3, 4, 5, 6, 7, 8, 9},
        interval = 0.1,
        texture = 'crate',
        looping = false
      }
    }
  },
  ['spellcast'] = {
    animations = {
      ['flame'] = {
        frames = {1, 2, 3, 4, 5},
        interval = 0.1,
        texture = 'flame',
        looping = true
      },
    },
  },
  ['gecko'] = {
    animations = {
      ['idle-up'] = {
        frames = {5},
        interval = 0.5,
        texture = 'gecko',
        looping = true
      },
      ['idle-left'] = {
        frames = {10},
        interval = 0.5,
        texture = 'gecko',
        looping = true
      },
      ['idle-down'] = {
        frames = {15},
        interval = 0.5,
        texture = 'gecko',
        looping = true
      },
      ['idle-right'] = {
        frames = {20},
        interval = 0.5,
        texture = 'gecko',
        looping = true
      },
      ['walk-up'] = {
        frames = {1, 2, 3, 4, 5},
        interval = 0.07,
        texture = 'gecko',
        looping = true
      },
      ['walk-down'] = {
        frames = {11, 12, 13, 14, 15},
        interval = 0.07,
        texture = 'gecko',
        looping = true
      },
      ['walk-left'] = {
        frames = {6, 7, 8, 9, 10},
        interval = 0.07,
        texture = 'gecko',
        looping = true
      },
      ['walk-right'] = {
        frames = {16, 17, 18, 19, 20},
        interval = 0.07,
        texture = 'gecko',
        looping = true
      },
    }
  },
  ['geckoC'] = {
    animations = {
      ['idle-up'] = {
        frames = {5},
        interval = 0.5,
        texture = 'geckoC',
        looping = true
      },
      ['idle-left'] = {
        frames = {10},
        interval = 0.5,
        texture = 'geckoC',
        looping = true
      },
      ['idle-down'] = {
        frames = {15},
        interval = 0.5,
        texture = 'geckoC',
        looping = true
      },
      ['idle-right'] = {
        frames = {20},
        interval = 0.5,
        texture = 'geckoC',
        looping = true
      },
      ['walk-up'] = {
        frames = {1, 2, 3, 4, 5},
        interval = 0.07,
        texture = 'geckoC',
        looping = true
      },
      ['walk-down'] = {
        frames = {11, 12, 13, 14, 15},
        interval = 0.07,
        texture = 'geckoC',
        looping = true
      },
      ['walk-left'] = {
        frames = {6, 7, 8, 9, 10},
        interval = 0.07,
        texture = 'geckoC',
        looping = true
      },
      ['walk-right'] = {
        frames = {16, 17, 18, 19, 20},
        interval = 0.07,
        texture = 'geckoC',
        looping = true
      },
    }
  },
  ['bat'] = {
    animations = {
      ['pursue'] = {
        frames = {1, 2},
        interval = 0.17,
        texture = 'batC',
        looping = true
      },
      ['flee'] = {
        frames = {1, 2},
        interval = 0.17,
        texture = 'bat',
        looping = true
      },
    },
  },
}

