summaryrefslogtreecommitdiff
path: root/src/game/assets.cpp
blob: 1b5780006773e4e185a118cb4cbfa43a34cf2dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "game.hpp"

namespace game::assets {

human_assets_t human;
alien_assets_t alien;
fx_assets_t fx;

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.body_aiming.load("assets/units/human/body_aiming", 2, 2, 2);
	human.body_firing.load("assets/units/human/body_firing", 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);
	alien.dead.load("assets/units/alien/dead_", 1);

	fx.blood.load("assets/units/blood_", 4);

	world::register_tile(TILE_DIRT, 0);
	world::register_tile(TILE_WALL, CF_SOLID);
	render::register_tile(TILE_DIRT, "assets/tiles/dirt.png");
	render::register_tile(TILE_WALL, "assets/tiles/wall.png");
}

} // namespace game::assets