summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2019-08-19 02:26:17 -0500
committertom barrett <spalf0@gmail.com>2019-08-19 02:26:17 -0500
commitebf13bcd8e8ab799c56961e6bc1779bd8031a8dc (patch)
tree914274f75890fb754e698be2b06a8b2a2ef9b1d1 /src/main.rs
parent7d2c0954cd95bdabcb7ecf26f9225382ab078289 (diff)
created abstraction between world and game, added temlate for dialogtrees
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 78c60f9..e2465d9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,7 +1,7 @@
use ggez::conf::{NumSamples, WindowSetup};
use ggez::{event, ContextBuilder, GameResult};
-use pax_romana::world::World;
+use pax_romana::game::Game;
fn main() -> GameResult {
let (ref mut context, ref mut event_loop) = ContextBuilder::new("pax-romana", "tom barrett")
@@ -13,7 +13,7 @@ fn main() -> GameResult {
.add_resource_path("./resources")
.build()?;
- let state = &mut World::new(context)?;
+ let game = &mut Game::new(context)?;
- event::run(context, event_loop, state)
+ event::run(context, event_loop, game)
}