Search in sources :

Example 1 with GameSettings

use of com.almasb.fxgl.settings.GameSettings in project FXGL by AlmasB.

the class GameApplication method initAppSettings.

/**
 * Take app settings from user.
 */
private void initAppSettings() {
    GameSettings localSettings = new GameSettings();
    initSettings(localSettings);
    settings = localSettings.toReadOnly();
}
Also used : GameSettings(com.almasb.fxgl.settings.GameSettings) ReadOnlyGameSettings(com.almasb.fxgl.settings.ReadOnlyGameSettings)

Example 2 with GameSettings

use of com.almasb.fxgl.settings.GameSettings in project FXGL by AlmasB.

the class MockGameApplication method get.

public static MockGameApplication get() {
    if (INSTANCE == null) {
        mockStage();
        GameSettings settings = new GameSettings();
        MockGameApplication app = new MockGameApplication();
        app.initSettings(settings);
        app.injectSettings(settings.toReadOnly());
        INSTANCE = app;
    }
    return INSTANCE;
}
Also used : GameSettings(com.almasb.fxgl.settings.GameSettings)

Aggregations

GameSettings (com.almasb.fxgl.settings.GameSettings)2 ReadOnlyGameSettings (com.almasb.fxgl.settings.ReadOnlyGameSettings)1