@@ -80,8 +80,11 @@ class ProjectProperties {
8080 gameTitle = JsonHelper::Get<std::string>(projectConfigurationsJson, " game_title" );
8181 initialScenePath = JsonHelper::Get<std::string>(projectConfigurationsJson, " initial_scene" );
8282 nlohmann::json baseResolutionJson = JsonHelper::Get<nlohmann::json>(projectConfigurationsJson, " base_resolution" );
83- windowWidth = JsonHelper::Get<int >(baseResolutionJson, " width" );
84- windowHeight = JsonHelper::Get<int >(baseResolutionJson, " height" );
83+ resolutionWidth = JsonHelper::Get<int >(baseResolutionJson, " width" );
84+ resolutionHeight = JsonHelper::Get<int >(baseResolutionJson, " height" );
85+ nlohmann::json windowSizeJson = JsonHelper::Get<nlohmann::json>(projectConfigurationsJson, " window_size" );
86+ intitialWindowWidth = JsonHelper::Get<int >(windowSizeJson, " width" );
87+ intitialWindowHeight = JsonHelper::Get<int >(windowSizeJson, " height" );
8588 areColliderVisible = JsonHelper::Get<bool >(projectConfigurationsJson, " colliders_visible" );
8689 pixelSnap = JsonHelper::GetDefault<bool >(projectConfigurationsJson, " pixel_snap" , false );
8790 targetFPS = JsonHelper::Get<unsigned int >(projectConfigurationsJson, " target_fps" );
@@ -167,8 +170,10 @@ class ProjectProperties {
167170 }
168171 public:
169172 std::string gameTitle = " Seika Engine" ;
170- int windowWidth = 800 ;
171- int windowHeight = 600 ;
173+ int resolutionWidth = 800 ;
174+ int resolutionHeight = 600 ;
175+ int intitialWindowWidth = resolutionWidth;
176+ int intitialWindowHeight = resolutionHeight;
172177 Color backgroundDrawColor = Color::NormalizedColor(20 , 20 , 20 );
173178 bool areColliderVisible = false ;
174179 std::string initialScenePath;
0 commit comments