From 78c3b0f6ccf7d7f160fb28d0e1935dc82da2dd7e Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 15 Feb 2024 00:27:25 +0100 Subject: [PATCH] feat: now manually settings render resolution to 1080p --- src/game_mode.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/game_mode.cpp b/src/game_mode.cpp index def1854..1aa601f 100644 --- a/src/game_mode.cpp +++ b/src/game_mode.cpp @@ -2,6 +2,8 @@ #include #include "godot_cpp/variant/utility_functions.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 "level.hpp" #include "player.hpp" @@ -27,6 +29,7 @@ void GameMode::_enter_tree() { } else { GameMode::static_instance = this; } + this->get_tree()->get_root()->set_content_scale_size({1920, 1080}); } void GameMode::_exit_tree() {