blob: c20d77b493a46625e9be0297615fd5bdaf26b08d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include "game.hpp"
namespace game::assets {
human_assets_t human;
sf::Texture tile_dirt;
sf::Texture tile_wall;
void load(void)
{
human.head_idle.load("assets/units/human/head_idle", 1, 1, 1);
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);
world::register_tile(TILE_DIRT, 0);
world::register_tile(TILE_WALL, 1);
render::register_tile(TILE_DIRT, "assets/tiles/dirt.png");
render::register_tile(TILE_WALL, "assets/tiles/wall.png");
}
} // namespace game::assets
|