diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-12 15:44:19 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-12 15:44:19 +0100 |
commit | c33d0fa9c43fb316a9c6bbb2be81446dce7f49da (patch) | |
tree | a4ded215d9dd7c5098b395925f0c19956c46670c /src/game/game.cpp | |
parent | 5667984053536d855ba0917deac326d429f2c5b4 (diff) |
Move tile data to src/game.
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r-- | src/game/game.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp index eb3966d..385a940 100644 --- a/src/game/game.cpp +++ b/src/game/game.cpp @@ -216,6 +216,8 @@ void state_t::start(void) { human_t *human; + world.generator = worldgen; + human = new human_t; human->place(&world, v2f_t(0.5, 0.5)); units.insert(human); @@ -267,4 +269,10 @@ void state_t::tick(double now_, double dt_) unit->keep_moving(now, dt); } +bool load_assets(void) +{ + assets::load(); + return true; +} + } //namespace game |