Skip to content
Permalink
3d4d1c0e52
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
46 lines (33 sloc) 624 Bytes
#include <clocale>
#include <ncurses.h>
#include <libgrandmaze/map.hpp>
#include <libgrandmaze/colour.hpp>
#include <libgrandmaze/room.hpp>
#include "lib/mapview.hpp"
using namespace GrandMaze;
void initialise(void)
{
initscr();
raw();
noecho();
curs_set(0);
}
void createColour(void)
{
start_color();
initColour();
}
int main(int argc, char *argv[])
{
initialise();
createColour();
// set locale
std::setlocale(LC_ALL, "");
int maxrow, maxcol;
getmaxyx(stdscr, maxrow, maxcol);
Map m;
MapView mv(stdscr, &m);
mv.show();
endwin();
return 0;
}