#include <SFML\Graphics.hpp>
#include "Map.h"
int main()
{
sf::RenderWindow window(sf::VideoMode(800,600), "Fo:E");
sf::View view2(sf::Vector2f(400, 300), sf::Vector2f(800, 600));
// create the tilemap from the level definition
Map NewMap;
if (!NewMap.load("graphics/hex.png", sf::Vector2u(128, 64), level, 16, 8)) return -1;
//Game Loop
while(window.isOpen()) {
sf::Event Event;
while(window.pollEvent(Event)) {
/* Do Keyboard Stuff*/
}
window.clear(sf::Color::Black);
window.setView(view2);
window.draw(NewMap);
window.display();
}
return 0;
}