summaryrefslogtreecommitdiff
path: root/src/game/assets.cpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-13 12:02:48 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-13 12:02:48 +0100
commit15f4780dd94a06bec5616155c05810c731d2e4af (patch)
tree11c6917805582f603e36bc47e7fd14f95b713a2b /src/game/assets.cpp
parentefaa4c026b60d52705b163f6886567793ef94123 (diff)
Add the alien.
Diffstat (limited to 'src/game/assets.cpp')
-rw-r--r--src/game/assets.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/assets.cpp b/src/game/assets.cpp
index c20d77b..b9b1289 100644
--- a/src/game/assets.cpp
+++ b/src/game/assets.cpp
@@ -3,8 +3,7 @@
namespace game::assets {
human_assets_t human;
-sf::Texture tile_dirt;
-sf::Texture tile_wall;
+alien_assets_t alien;
void load(void)
{
@@ -13,6 +12,9 @@ void load(void)
human.legs_idle.load("assets/units/human/legs_idle", 2, 2);
human.legs_walking.load("assets/units/human/legs_walking", 2, 2);
+ alien.idle.load("assets/units/alien/idle", 2, 2, 2);
+ alien.walking.load("assets/units/alien/walking", 2, 2, 2);
+
world::register_tile(TILE_DIRT, 0);
world::register_tile(TILE_WALL, 1);
render::register_tile(TILE_DIRT, "assets/tiles/dirt.png");