Monster in Level

This commit is contained in:
2023-12-03 09:25:03 +01:00
parent ee1f11cd1f
commit 1ba1ed7de4
3 changed files with 92 additions and 25 deletions

View File

@@ -11,8 +11,8 @@ pub struct Game<'game> {
impl Game<'_> {
pub fn new(p: &mut Player) -> Game {
let mut v: Vec<Level> = Vec::with_capacity(LEVELS);
for _ in 0..LEVELS {
let l = Level::new();
for d in 0..LEVELS {
let l = Level::new(d);
v.push(l);
}
Game {