MCPcopy Create free account
hub / github.com/EasyRPG/Player / Start

Method Start

src/scene_title.cpp:52–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void Scene_Title::Start() {
53 Main_Data::game_system->ResetSystemGraphic();
54
55 // Change the resolution of the window
56 if (Player::has_custom_resolution) {
57 Player::ChangeResolution(Player::screen_width, Player::screen_height);
58 } else {
59 switch (DisplayUi->GetConfig().game_resolution.Get()) {
60 case ConfigEnum::GameResolution::Original:
61 Player::ChangeResolution(SCREEN_TARGET_WIDTH, SCREEN_TARGET_HEIGHT);
62 break;
63 case ConfigEnum::GameResolution::Widescreen:
64 Player::ChangeResolution(416, SCREEN_TARGET_HEIGHT);
65 Player::game_config.fake_resolution.Set(true);
66 break;
67 case ConfigEnum::GameResolution::Ultrawide:
68 Player::ChangeResolution(560, SCREEN_TARGET_HEIGHT);
69 Player::game_config.fake_resolution.Set(true);
70 break;
71 }
72 }
73
74 // Skip background image and music if not used
75 if (CheckEnableTitleGraphicAndMusic()) {
76 CreateTitleGraphic();
77 PlayTitleMusic();
78 }
79
80 CreateCommandWindow();
81}
82
83
84void Scene_Title::Continue(SceneType prev_scene) {

Callers 1

CreateTitleGraphicMethod · 0.45

Calls 4

ResetSystemGraphicMethod · 0.80
GetMethod · 0.45
GetConfigMethod · 0.45
SetMethod · 0.45

Tested by

no test coverage detected