Entities are now constructable

Added utility function to display error window
Added textures
Added font
Added a way to choose resources location
This commit is contained in:
trotFunky 2019-06-07 22:20:34 +02:00
parent a775d846d7
commit 06841915f0
17 changed files with 155 additions and 39 deletions

View file

@ -3,6 +3,23 @@
//
#include <gtest/gtest.h>
#include <vector>
#include "Game.h"
TEST(Setup,LevelSetup)
{
// TODO : Think about parsing from file ? Currently cumbersome and error-prone
std::vector<std::string> textures = {"Head_Boy.png","Head_Significant_Boy.png","Building.png"};
std::vector<std::string> levels = {"test_level.xml"};
Game game(levels,textures);
ASSERT_FALSE(game);
game.loadLevel(0);
ASSERT_TRUE(game);
game.runGame();
}
int main(int argc, char** argv)
{