feat: now manually settings render resolution to 1080p
parent
1f742c0a58
commit
78c3b0f6cc
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue