refactor
This commit is contained in:
@@ -157,7 +157,9 @@ void LevelScreen::updateHotkeys() {
|
||||
hudVisible = !hudVisible;
|
||||
}
|
||||
if (Events::jpressed(keycode::F3)) {
|
||||
player->debug = !player->debug;
|
||||
debug = !debug;
|
||||
hud->setDebug(debug);
|
||||
worldRenderer->setDebug(debug);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ class LevelScreen : public Screen {
|
||||
void saveWorldPreview();
|
||||
|
||||
bool hudVisible = true;
|
||||
bool debug = false;
|
||||
void updateHotkeys();
|
||||
void initializeContent();
|
||||
void initializePack(ContentPackRuntime* pack);
|
||||
|
||||
Reference in New Issue
Block a user