diff options
-rw-r--r-- | src/main.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 0af3228..6f16771 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,12 +1,15 @@ -use ggez::{conf::Conf, event, ContextBuilder, GameResult}; +use ggez::conf::{NumSamples, WindowSetup}; +use ggez::{event, ContextBuilder, GameResult}; use pax_romana::state::State; fn main() -> GameResult { - let conf = Conf::new(); - let (ref mut context, ref mut event_loop) = ContextBuilder::new("pax-romana", "tom barrett") - .conf(conf) + .window_setup( + WindowSetup::default() + .title("pax_romana") + .samples(NumSamples::Two), + ) .add_resource_path("./resources") .build()?; |