2015-05-24 23:38:00 +00:00
|
|
|
#include "doorkeeper/doorkeeper2d.hpp"
|
2015-05-27 22:20:40 +00:00
|
|
|
#include "doorkeeper/helpers/maploader.hpp"
|
|
|
|
#include "doorkeeper/helpers/asciimapsource.hpp"
|
2015-05-24 23:38:00 +00:00
|
|
|
#include "gameConfig.h"
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
using dk::Tyler2d;
|
|
|
|
using dk::coords2;
|
|
|
|
using dk::Viewport2d;
|
|
|
|
using dk::Layer2d;
|
2015-05-27 22:20:40 +00:00
|
|
|
typedef dkh::MapLoaderPool2d<int, std::function<dk::BaseMapSource2d<int>*(const std::string&)>> IntPoolType;
|
2015-05-24 23:38:00 +00:00
|
|
|
|
|
|
|
std::cout << "Welcome to " GAME_NAME " v" << GAME_VER_MAJOR << '.' << GAME_VER_MINOR << '.' << GAME_VER_PATCH << '\n';
|
|
|
|
|
2015-05-27 22:20:40 +00:00
|
|
|
IntPoolType pool;
|
|
|
|
pool.opener = [](const std::string& parName) { std::cout << "Opening " << parName << std::endl; return new dkh::AsciiMapSource(parName, coords2(10, 8), dk::MapType_IsometricStaggered, coords2(64, 64)); };
|
|
|
|
Tyler2d tiler(dkh::call_map_load(pool, std::string("test_level.dk")));
|
|
|
|
|
2015-05-24 23:38:00 +00:00
|
|
|
return 0;
|
|
|
|
}
|