~jpgleeson/RustyDagger

8ae1807e1fe9a709f8c7ba2b46b0fde9f29a080f — jpgleeson 3 months ago 4f8823e
Randomly selects between the two generation methods to create the map.
1 files changed, 10 insertions(+), 2 deletions(-)

M src/main.rs
M src/main.rs => src/main.rs +10 -2
@@ 313,8 313,16 @@ fn main() {

    let mut objects = [player, NPC];

    //let game = Game{ map: buildMap(&mut objects[0]),};
    let game = Game{map: buildCaveMap(&mut objects[0]),};
    let game;

    if (rand::random())
    {
        game = Game{ map: buildMap(&mut objects[0]),};
    }
    else
    {
        game = Game{map: buildCaveMap(&mut objects[0]),};
    }

    while(!tcod.root.window_closed())
    {