diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-13 19:50:42 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-13 19:50:42 +0100 |
commit | 868c3ce7659b1042f27b15774976dd20a0be3f77 (patch) | |
tree | 582823b2ab1f8f684a61c2e7a92aa501e33978a2 /src/game/assets.cpp | |
parent | b3b30521e50f1ed0046091b316b19daec646b4ac (diff) |
Introduce health and damage; better alien AI.
Diffstat (limited to 'src/game/assets.cpp')
-rw-r--r-- | src/game/assets.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/assets.cpp b/src/game/assets.cpp index b9b1289..2a91a96 100644 --- a/src/game/assets.cpp +++ b/src/game/assets.cpp @@ -11,12 +11,13 @@ void load(void) human.body_idle.load("assets/units/human/body_idle", 2, 2, 2); human.legs_idle.load("assets/units/human/legs_idle", 2, 2); human.legs_walking.load("assets/units/human/legs_walking", 2, 2); + human.dead.load("assets/units/human/dead_", 1); 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); + world::register_tile(TILE_WALL, CF_SOLID | CF_HUMAN); render::register_tile(TILE_DIRT, "assets/tiles/dirt.png"); render::register_tile(TILE_WALL, "assets/tiles/wall.png"); } |