summaryrefslogtreecommitdiff
path: root/graphics/src/render.rs
diff options
context:
space:
mode:
authorRyan Symons <47405201+rsymons22@users.noreply.github.com>2025-11-04 22:24:23 -0500
committerRyan Symons <47405201+rsymons22@users.noreply.github.com>2025-11-04 22:24:23 -0500
commit574f3c694dcce927ac87dfb79276775f0904bdc8 (patch)
treebebe583ec5194c4a5a3187c04b79d0c84215e1b8 /graphics/src/render.rs
parentAdd SDL feature flag (fixes wayland issues) (diff)
downloadDungeonCrawl-574f3c694dcce927ac87dfb79276775f0904bdc8.tar.gz
DungeonCrawl-574f3c694dcce927ac87dfb79276775f0904bdc8.tar.bz2
DungeonCrawl-574f3c694dcce927ac87dfb79276775f0904bdc8.zip
Added enemy code structure and test movement
Diffstat (limited to 'graphics/src/render.rs')
-rw-r--r--graphics/src/render.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs
index 499301c..4166a7a 100644
--- a/graphics/src/render.rs
+++ b/graphics/src/render.rs
@@ -411,6 +411,9 @@ where
/// Draws the entities on the map
fn draw_entities(&mut self, dungeon: &Dungeon) {
self.draw_entity(&dungeon.player.entity);
+ for enemy in &dungeon.enemies {
+ self.draw_entity(&enemy.entity);
+ }
}
/// Draws an entity