diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2021-03-19 19:21:11 +0100 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2021-03-19 19:21:11 +0100 |
commit | d2c59a4d07efa3ec4418d7e82352a1cdf38e1518 (patch) | |
tree | bfd1953f35732b0577b260d0fb24c4706e6dd9bb /src/main.rs | |
parent | 91a902278617f4981372b0f93612a7bfe902bc9b (diff) |
branch trying out bevy
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/main.rs b/src/main.rs index a1fee19..30df8fb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,12 +1,8 @@ -use ggez::event::{self}; -use ggez::{ContextBuilder, GameResult}; +use bevy::prelude::App; -use gems::game::Game; +struct Gem; +struct Position { x: f32, y: f32} -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) +pub fn main() { + App::build().run(); } |