forked from jaildesigner-jailgames/jaildoctors_dilemma
Mensajes de consola opcionales
This commit is contained in:
@@ -22,7 +22,7 @@ void Resource::loadTextures(std::vector<std::string> list)
|
||||
|
||||
res_texture_t t;
|
||||
t.name = l;
|
||||
t.texture = new Texture(renderer, asset->get(l));
|
||||
t.texture = new Texture(renderer, asset->get(l), options->console);
|
||||
textures.push_back(t);
|
||||
}
|
||||
}
|
||||
@@ -45,7 +45,7 @@ void Resource::loadAnimations(std::vector<std::string> list)
|
||||
|
||||
res_animation_t as;
|
||||
as.name = l;
|
||||
as.animation = new animatedSprite_t(loadAnimationFromFile(getTexture(pngFile), asset->get(l)));
|
||||
as.animation = new animatedSprite_t(loadAnimationFromFile(getTexture(pngFile), asset->get(l), options->console));
|
||||
animations.push_back(as);
|
||||
}
|
||||
}
|
||||
@@ -57,7 +57,7 @@ void Resource::loadOffsets(std::vector<std::string> list)
|
||||
{
|
||||
res_textOffset_t to;
|
||||
to.name = l;
|
||||
to.textFile = new textFile_t(LoadTextFile(asset->get(l)));
|
||||
to.textFile = new textFile_t(LoadTextFile(asset->get(l), options->console));
|
||||
offsets.push_back(to);
|
||||
}
|
||||
}
|
||||
@@ -69,7 +69,7 @@ void Resource::loadTileMaps(std::vector<std::string> list)
|
||||
{
|
||||
res_tileMap_t tm;
|
||||
tm.name = l;
|
||||
tm.tileMap = new std::vector<int>(loadRoomTileFile(asset->get(l)));
|
||||
tm.tileMap = new std::vector<int>(loadRoomTileFile(asset->get(l), options->console));
|
||||
tileMaps.push_back(tm);
|
||||
}
|
||||
}
|
||||
@@ -81,7 +81,7 @@ void Resource::loadRooms(std::vector<std::string> list)
|
||||
{
|
||||
res_room_t r;
|
||||
r.name = l;
|
||||
r.room = new room_t(loadRoomFile(asset->get(l)));
|
||||
r.room = new room_t(loadRoomFile(asset->get(l), options->console));
|
||||
r.room->tileMap = getTileMap(r.room->tileMapFile);
|
||||
for (auto &e : r.room->enemies)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user