//Main.cpp
#include "map.h"
int main()
{
Map TestMap("TestTable.txt", "TestTileset.txt", "TestMap");
//todo: dinamicno alociraj mape da ih mozes delete[], a promjene pohrani u fajl
sf::Event Event;
while (TestMap.GetWindow().IsOpened())
{
while (TestMap.GetWindow().PollEvent(Event))
{
if ((Event.Type == sf::Event::KeyPressed) && (Event.Key.Code == sf::Keyboard::Escape))
TestMap.GetWindow().Close();
}
}
return 0;
}
Mmm no, that wouldnt solve my problem. Bool array is dreadful idea beacuse there will be more than 2 tiles in my game... Tiles with IDs 0 and 1 are only ones I created atm.