From 15f4780dd94a06bec5616155c05810c731d2e4af Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Wed, 13 Dec 2017 12:02:48 +0100 Subject: Add the alien. --- src/game/assets.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/game/assets.cpp') 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"); -- cgit