feat: now manually settings render resolution to 1080p

main
Sara 2024-02-15 00:27:25 +01:00
parent 1f742c0a58
commit 78c3b0f6cc
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,8 @@
#include <optional> #include <optional>
#include "godot_cpp/variant/utility_functions.hpp" #include "godot_cpp/variant/utility_functions.hpp"
#include "godot_cpp/classes/viewport.hpp" #include "godot_cpp/classes/viewport.hpp"
#include "godot_cpp/classes/scene_tree.hpp"
#include "godot_cpp/classes/window.hpp"
#include "godot_macros.h" #include "godot_macros.h"
#include "level.hpp" #include "level.hpp"
#include "player.hpp" #include "player.hpp"
@ -27,6 +29,7 @@ void GameMode::_enter_tree() {
} else { } else {
GameMode::static_instance = this; GameMode::static_instance = this;
} }
this->get_tree()->get_root()->set_content_scale_size({1920, 1080});
} }
void GameMode::_exit_tree() { void GameMode::_exit_tree() {