Exemplo n.º 1
0
void ReplayMaster::init() {
    init_globals();

    SoundDriver::driver()->set_global_volume(8);  // Max volume.

    world = Rect(Point(0, 0), Preferences::preferences()->screen_size());
    play_screen = Rect(
                      world.left + kLeftPanelWidth, world.top,
                      world.right - kRightPanelWidth, world.bottom);
    viewport = play_screen;

    gRealWorld = new ArrayPixMap(world.width(), world.height());
    gRealWorld->fill(RgbColor::kBlack);
    CreateOffscreenWorld();
    InitSpriteCursor();
    RotationInit();
    InterfaceHandlingInit();
    InitDirectText();
    ScreenLabelInit();
    InitMessageScreen();
    InstrumentInit();
    SpriteHandlingInit();
    AresCheatInit();
    ScenarioMakerInit();
    SpaceObjectHandlingInit();  // MUST be after ScenarioMakerInit()
    InitSoundFX();
    MusicInit();
    InitMotion();
    AdmiralInit();
    InitBeams();
}
Exemplo n.º 2
0
void ReplayMaster::init() {
    init_globals();

    sys.audio->set_global_volume(8);  // Max volume.

    sys_init();
    Label::init();
    Messages::init();
    InstrumentInit();
    SpriteHandlingInit();
    PluginInit();
    SpaceObjectHandlingInit();  // MUST be after PluginInit()
    InitMotion();
    Admiral::init();
    Vectors::init();
}