summaryrefslogtreecommitdiff
path: root/src/main.rs
blob: a1fee192adc7effbf2fd406b2e6936dda28d1ec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use ggez::event::{self};
use ggez::{ContextBuilder, GameResult};

use gems::game::Game;

pub fn main() -> GameResult {
    let (ref mut context, ref mut event_loop) = ContextBuilder::new("gems", "jw&tb")
        .add_resource_path("./resources")
        .build()?;
    let game = &mut Game::new(context)?;
    event::run(context, event_loop, game)
}