summaryrefslogtreecommitdiff
path: root/src/game/game.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-12 15:44:19 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-12 15:44:19 +0100
commitc33d0fa9c43fb316a9c6bbb2be81446dce7f49da (patch)
treea4ded215d9dd7c5098b395925f0c19956c46670c /src/game/game.cpp
parent5667984053536d855ba0917deac326d429f2c5b4 (diff)
Move tile data to src/game.
Diffstat (limited to 'src/game/game.cpp')
-rw-r--r--src/game/game.cpp8
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