Added rooms and overlays archives.
svn-id: r42035
This commit is contained in:
parent
4a4aab83d0
commit
cac39d8295
3 changed files with 8 additions and 0 deletions
|
@ -47,6 +47,8 @@ namespace Draci {
|
|||
const Common::String objectsPath("OBJEKTY.DFW");
|
||||
const Common::String palettePath("PALETY.DFW");
|
||||
const Common::String spritesPath("OBR_AN.DFW");
|
||||
const Common::String overlaysPath("OBR_MAS.DFW");
|
||||
const Common::String roomsPath("MIST.DFW");
|
||||
|
||||
DraciEngine::DraciEngine(OSystem *syst, const ADGameDescription *gameDesc)
|
||||
: Engine(syst) {
|
||||
|
@ -76,6 +78,8 @@ int DraciEngine::init() {
|
|||
_objectsArchive = new BArchive(objectsPath);
|
||||
_spritesArchive = new BArchive(spritesPath);
|
||||
_paletteArchive = new BArchive(palettePath);
|
||||
_roomsArchive = new BArchive(roomsPath);
|
||||
_overlaysArchive = new BArchive(overlaysPath);
|
||||
|
||||
_screen = new Screen(this);
|
||||
_font = new Font();
|
||||
|
|
|
@ -59,6 +59,8 @@ public:
|
|||
BArchive *_objectsArchive;
|
||||
BArchive *_spritesArchive;
|
||||
BArchive *_paletteArchive;
|
||||
BArchive *_roomsArchive;
|
||||
BArchive *_overlaysArchive;
|
||||
|
||||
private:
|
||||
Common::RandomSource _rnd;
|
||||
|
|
|
@ -133,6 +133,8 @@ Game::Game(DraciEngine *vm) : _vm(vm) {
|
|||
|
||||
loadObject(1);
|
||||
_vm->_script->run(getObject(1)->_program, getObject(1)->_init);
|
||||
|
||||
// changeRoom(_currentRoom);
|
||||
}
|
||||
|
||||
void Game::loadObject(uint16 objNum) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue