mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-16 21:50:21 +00:00
Added rooms and overlays archives.
svn-id: r42035
This commit is contained in:
parent
4a4aab83d0
commit
cac39d8295
@ -47,6 +47,8 @@ namespace Draci {
|
|||||||
const Common::String objectsPath("OBJEKTY.DFW");
|
const Common::String objectsPath("OBJEKTY.DFW");
|
||||||
const Common::String palettePath("PALETY.DFW");
|
const Common::String palettePath("PALETY.DFW");
|
||||||
const Common::String spritesPath("OBR_AN.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)
|
DraciEngine::DraciEngine(OSystem *syst, const ADGameDescription *gameDesc)
|
||||||
: Engine(syst) {
|
: Engine(syst) {
|
||||||
@ -76,6 +78,8 @@ int DraciEngine::init() {
|
|||||||
_objectsArchive = new BArchive(objectsPath);
|
_objectsArchive = new BArchive(objectsPath);
|
||||||
_spritesArchive = new BArchive(spritesPath);
|
_spritesArchive = new BArchive(spritesPath);
|
||||||
_paletteArchive = new BArchive(palettePath);
|
_paletteArchive = new BArchive(palettePath);
|
||||||
|
_roomsArchive = new BArchive(roomsPath);
|
||||||
|
_overlaysArchive = new BArchive(overlaysPath);
|
||||||
|
|
||||||
_screen = new Screen(this);
|
_screen = new Screen(this);
|
||||||
_font = new Font();
|
_font = new Font();
|
||||||
|
@ -59,6 +59,8 @@ public:
|
|||||||
BArchive *_objectsArchive;
|
BArchive *_objectsArchive;
|
||||||
BArchive *_spritesArchive;
|
BArchive *_spritesArchive;
|
||||||
BArchive *_paletteArchive;
|
BArchive *_paletteArchive;
|
||||||
|
BArchive *_roomsArchive;
|
||||||
|
BArchive *_overlaysArchive;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Common::RandomSource _rnd;
|
Common::RandomSource _rnd;
|
||||||
|
@ -133,6 +133,8 @@ Game::Game(DraciEngine *vm) : _vm(vm) {
|
|||||||
|
|
||||||
loadObject(1);
|
loadObject(1);
|
||||||
_vm->_script->run(getObject(1)->_program, getObject(1)->_init);
|
_vm->_script->run(getObject(1)->_program, getObject(1)->_init);
|
||||||
|
|
||||||
|
// changeRoom(_currentRoom);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Game::loadObject(uint16 objNum) {
|
void Game::loadObject(uint16 objNum) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user