rename game setting
This commit is contained in:
@@ -12,6 +12,6 @@
|
|||||||
|
|
||||||
namespace Demo {
|
namespace Demo {
|
||||||
|
|
||||||
const bool IS_REAL_PS2 = false;
|
const bool IS_REAL_PS2_VIA_USB = false;
|
||||||
|
|
||||||
} // namespace Demo
|
} // namespace Demo
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@
|
|||||||
int main() {
|
int main() {
|
||||||
Tyra::EngineOptions options;
|
Tyra::EngineOptions options;
|
||||||
|
|
||||||
if (Demo::IS_REAL_PS2) {
|
if (Demo::IS_REAL_PS2_VIA_USB) {
|
||||||
options.writeLogsToFile = true;
|
options.writeLogsToFile = true;
|
||||||
options.loadUsbDriver = true;
|
options.loadUsbDriver = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ EnemyManager::EnemyManager(Engine* engine, const Heightmap& heightmap) {
|
|||||||
auto* death = engine->audio.adpcm.load(
|
auto* death = engine->audio.adpcm.load(
|
||||||
FileUtils::fromCwd("game/models/zombie/death.adpcm"));
|
FileUtils::fromCwd("game/models/zombie/death.adpcm"));
|
||||||
|
|
||||||
const int enemyCount = IS_REAL_PS2 ? 8 : 12;
|
const int enemyCount = IS_REAL_PS2_VIA_USB ? 8 : 12;
|
||||||
for (int i = 0; i < enemyCount; i++) {
|
for (int i = 0; i < enemyCount; i++) {
|
||||||
EnemyInfo info;
|
EnemyInfo info;
|
||||||
info.adpcmChannel = 9 + i;
|
info.adpcmChannel = 9 + i;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ void GameState::onStart() {
|
|||||||
|
|
||||||
engine->audio.song.setVolume(85);
|
engine->audio.song.setVolume(85);
|
||||||
|
|
||||||
if (IS_REAL_PS2) engine->renderer.setFrameLimit(false);
|
if (IS_REAL_PS2_VIA_USB) engine->renderer.setFrameLimit(false);
|
||||||
|
|
||||||
initialized = true;
|
initialized = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user