Browse Source

Clear screen at end of game

master
Graham Northup 3 years ago
parent
commit
e606ad0494
Signed by: grissess GPG Key ID: 5D000E6F539376FB
  1. 4
      src/world/mod.rs

4
src/world/mod.rs

@ -166,6 +166,10 @@ impl World {
e.set_pos(p + dp);
},
Quit => {
eprintln!("{}{}",
termion::clear::All,
termion::cursor::Goto(1, 1),
);
panic!("Thank you for playing Wing Commander");
},
}

Loading…
Cancel
Save