34 lines
694 B
C++
34 lines
694 B
C++
/*
|
|
* main.cpp
|
|
*
|
|
* Created on: 19.07.2012
|
|
* Author: Felix
|
|
*/
|
|
|
|
#include "Game.h"
|
|
#include "util/Loader.h"
|
|
#include "util/Yaml.h"
|
|
#include "util/Log.h"
|
|
|
|
/**
|
|
* Creates Game object.
|
|
*/
|
|
int main(int argc, char* argv[]) {
|
|
Yaml::setFolder("resources/yaml/");
|
|
|
|
Loader::i().setFolder("resources/");
|
|
Loader::i().setSubFolder<sf::Texture>("textures/");
|
|
|
|
tgui::Window window(sf::VideoMode(800, 600, 32), "Dungeon Gunner",
|
|
sf::Style::Close | sf::Style::Titlebar);
|
|
|
|
if (!window.globalFont.loadFromFile("resources/DejaVuSans.ttf"))
|
|
LOG_W("Failed to load font at 'resources/DejaVuSans.ttf'");
|
|
|
|
Game game(window);
|
|
|
|
game.loop();
|
|
|
|
return 0;
|
|
}
|
|
|