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:
parent
a775d846d7
commit
06841915f0
17 changed files with 155 additions and 39 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue