Bare minimum with renderer

This commit is contained in:
2022-04-29 13:58:45 +02:00
parent 404c5b91a7
commit 32f58b03cf
4 changed files with 70 additions and 9 deletions
+8
View File
@@ -7,6 +7,7 @@ pub enum State {
Dead,
Immune,
}
#[derive(Clone)]
pub struct Human {
pub present_state : State,
pub x : i32,
@@ -20,4 +21,11 @@ impl Human{
y : pos_y
}
}
pub fn new_empty() -> Self{
Self{
present_state:State::Normal,
x : 0,
y : 0,
}
}
}