diff --git a/src/include/level.h b/src/include/level.h index 371bb5ea0ef5a61b7335aa5c09054161fee96c0a..4e7c212a185951d0bcaffdb891f69b00420c096e 100644 --- a/src/include/level.h +++ b/src/include/level.h @@ -59,6 +59,8 @@ class Level { int delay; }; + static const Coord nearby[8] = { Coord(-1,-1), Coord(0,-1), Coord(1,-1), Coord(1,0), Coord(1,1), Coord(0,1), Coord(-1,1), Coord(-1,0) }; + const int MAX_ROOMS = 9; const double GOLD_CHANCE = .333; const double ROOM_EXIST_CHANCE = 0.9; diff --git a/src/level.cpp b/src/level.cpp index 87d27baaa66f846ef8897e635471ef70f2e96784..6d5ae915fddff0a6171eecbddbac67b32e7ec973 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -345,6 +345,12 @@ std::vector<Coord> Level::traceBack(Coord end, Coord start){ path.push_back(start.copy()); return path; +} + +std::vector<Coord> Level::getAdjPassable(Coord s){ + + + } Coord Level::throwLocation(Coord start, Coord dir){ diff --git a/src/mastercontroller.cpp b/src/mastercontroller.cpp index 63b046e5f7ffa5a5a17643850e444422bdd86558..a372ce652ca210d3be892a8a45a04bbc86094943 100644 --- a/src/mastercontroller.cpp +++ b/src/mastercontroller.cpp @@ -13,7 +13,7 @@ MasterController::MasterController() void MasterController::run() { const int spacer = 5; std::cout << "Welcome to Rogue Reborn!" << std::endl; - TCODConsole::setCustomFont("assets/terminal.png"); + TCODConsole::setCustomFont("assets/terminal .png"); //Init console Coord lSize = Level::getSize(); TCODConsole::initRoot(lSize[0], lSize[1] + spacer, "Rogue Reborn", false); diff --git a/src/scores.txt b/src/scores.txt deleted file mode 100644 index 66fcc16d8337830cf5b6ab1234447119632661ce..0000000000000000000000000000000000000000 --- a/src/scores.txt +++ /dev/null @@ -1,5 +0,0 @@ -0,-1,quark,unknown, -0,-1,qwerty,unknown -0,-1,brucethebold,unknown -0,-1,arglebargle,unknown -1350,8,robert the mediocre,was killed by a grue