Skip to content

Commit

Permalink
Change default resolution and sf style
Browse files Browse the repository at this point in the history
Signed-off-by: Wojciech Madry <[email protected]>
  • Loading branch information
wojciechmadry committed Aug 18, 2023
1 parent 5c41993 commit e88183f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <SFML/Graphics.hpp>
#include <SFML/Window/WindowStyle.hpp>
#include <cmath>

#include "load.hpp"
Expand Down Expand Up @@ -34,15 +35,15 @@ int main() {
PathFont = std::move(path);
}
font = load_font(PathFont.value());
GLOBAL::INIT(Resource, font, {record, old_score}, 800,
600); // Load textures, init default
GLOBAL::INIT(Resource, font, {record, old_score}, 1280,
720); // Load textures, init default
// settings, draw started object etc

RedBox redbox(
Resource,
GLOBAL::RED_BOX_TEXTURE()); // picked redbox (can be textured or not)

sf::RenderWindow window(sf::VideoMode(800, 600), VERSION, sf::Style::Default,
sf::RenderWindow window(sf::VideoMode(1280, 720), VERSION, sf::Style::Resize,
sf::ContextSettings{0, 0, 8});
auto fps = load_fps();
window.setFramerateLimit(fps);
Expand Down

0 comments on commit e88183f

Please sign in to comment.