First commit that disconnects this game from the game framework so it can be its own thing.
This commit is contained in:
parent
8073997eb3
commit
db60f75bd9
29 changed files with 37 additions and 36 deletions
|
|
@ -11,13 +11,13 @@ TEST_CASE("test texture management", "[textures]") {
|
|||
components::init();
|
||||
textures::init();
|
||||
|
||||
auto spider = textures::get_sprite("rat_with_sword");
|
||||
auto spider = textures::get_sprite("spider_bot");
|
||||
REQUIRE(spider.sprite != nullptr);
|
||||
REQUIRE(spider.texture != nullptr);
|
||||
REQUIRE(spider.frame_size.x == TEXTURE_WIDTH);
|
||||
REQUIRE(spider.frame_size.y == TEXTURE_HEIGHT);
|
||||
|
||||
auto image = textures::load_image("assets/sprites/rat_with_sword.png");
|
||||
auto image = textures::load_image("assets/sprites/spider_bot.png");
|
||||
|
||||
size_t floor_tile = textures::get_id("floor_tile");
|
||||
size_t gray_stone = textures::get_id("door_plain");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue