Skip to content

Commit

Permalink
DM: Add some draw dungeon dependencies
Browse files Browse the repository at this point in the history
I forgot to do commits and it was already too late to revert back the
changes I've because they were too numerous.
  • Loading branch information
WinterGrascph committed Aug 26, 2016
1 parent 6d5f8e2 commit a8c82c1
Show file tree
Hide file tree
Showing 6 changed files with 1,222 additions and 159 deletions.
14 changes: 9 additions & 5 deletions engines/dm/dm.cpp
Expand Up @@ -53,22 +53,26 @@ Common::Error DMEngine::run() {
_console = new Console(this);
_displayMan = new DisplayMan(this);
_dungeonMan = new DungeonMan(this);

_dungeonMan->loadDungeonFile();

_displayMan->setUpScreens(320, 200);
_displayMan->loadGraphics();
_dungeonMan->loadDungeonFile();
_displayMan->loadFloorSet(kFloorSetStone);
_displayMan->loadWallSet(kWallSetStone);

_displayMan->loadPalette(kPalCredits);

_dungeonMan->setCurrentMap(0);
_displayMan->loadCurrentMapGraphics();

_displayMan->loadPalette(gPalCredits);

_dungeonMan->setCurrentMapAndPartyMap(0);

uint16 i = 0; //TODO: testing, please delete me
while (true) {
_displayMan->clearScreen(kColorBlack);
_displayMan->drawDungeon(kDirNorth, i++, 0);
_displayMan->updateScreen();
_system->delayMillis(1000); //TODO: testing, please set me to 10
if (i == 3) break;
}


Expand Down
2 changes: 1 addition & 1 deletion engines/dm/dm.h
Expand Up @@ -33,8 +33,8 @@ class DMEngine : public Engine {

private:
Console *_console;
Common::RandomSource *_rnd;
public:
Common::RandomSource *_rnd;
DisplayMan *_displayMan;
DungeonMan *_dungeonMan;
};
Expand Down

0 comments on commit a8c82c1

Please sign in to comment.