summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: 6ec13db48f207adf3fd023a96a4c25da93bbc41d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use ggez::conf::{NumSamples, WindowSetup};
use ggez::{event, ContextBuilder, GameResult};

use pax_romana::game::Game;

fn main() -> GameResult {
    let (mut context, event_loop) = ContextBuilder::new("pax-romana", "tom barrett")
        .window_setup(
            WindowSetup::default()
                .title("pax_romana")
                .samples(NumSamples::Two),
        )
        .add_resource_path("./resources")
        .build()?;

    let game = Game::new(&mut context)?;

    event::run(context, event_loop, game)
}