summaryrefslogtreecommitdiff
path: root/graphics/src
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src')
-rw-r--r--graphics/src/render.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs
index 6a566ce..1164953 100644
--- a/graphics/src/render.rs
+++ b/graphics/src/render.rs
@@ -1,4 +1,4 @@
-use dungeon::Dungeon;
+use dungeon::{Dungeon, Entity};
use raylib::{
color::Color,
prelude::{RaylibDraw, RaylibDrawHandle},
@@ -76,7 +76,12 @@ impl<'a> Renderer<'a> {
}
/// Draw the player sprite
- pub fn draw_player(&mut self, _dungeon: &Dungeon) {
+ pub fn draw_player(&mut self, dungeon: &Dungeon) {
+ self.draw_entity(dungeon.player());
+ }
+
+ /// Draws an entity
+ pub fn draw_entity(&mut self, _entity: &Entity) {
// TODO:
}