diff options
author | tom barrett <spalf0@gmail.com> | 2019-07-10 09:43:48 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2019-07-10 09:43:48 -0500 |
commit | ced37025a37051db896443d310f5f613f1281882 (patch) | |
tree | 6faa646addcd2cfa1c49154a06846321a6e2e423 /src/npc.rs | |
parent | 503361ce70615d7c4b66bd7e49d56c61259dab32 (diff) |
animation now always works, added player spawn
Diffstat (limited to 'src/npc.rs')
-rw-r--r-- | src/npc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -72,8 +72,8 @@ impl NPC { pub fn build_npcs(tileset: &Tileset, map: &Map) -> Vec<NPC> { let mut npcs = Vec::new(); - for (_name, position) in map.get_spawns() { - npcs.push(NPC::new(tileset, position, map.get_dimensions())); + for point in map.get_spawn_points("peasant") { + npcs.push(NPC::new(tileset, point, map.get_dimensions())); } npcs |