<commit_before>#include "Game.hpp"

#include <iostream>

const float Game::WIDTH = 400;
const float Game::HEIGHT = 600;
const std::string Game::TITLE = "Yet Another 2048 Clone!";

Game::Game()
	: m_Window(sf::VideoMode(WIDTH, HEIGHT), TITLE)
	, m_Grid({ WIDTH / 2.f - WIDTH * (2.f / 2.3f) / 2.f, HEIGHT / 2.f - WIDTH * (2.f / 2.3f) / 2.f },
			 { WIDTH * (2.f / 2.3f), WIDTH * (2.f / 2.3f) })
	, m_GameOver(false)
{
	m_GameOverOverlay.setSize({ WIDTH, HEIGHT });
	m_GameOverOverlay.setFillColor(sf::Color(128, 0, 0, 128));

	m_GameOverFont.loadFromFile("res/fonts/Ubuntu-M.ttf");
	m_GameOverText.setFont(m_GameOverFont);
	m_GameOverText.setCharacterSize(24);
	m_GameOverText.setString("          Game Over!\nPress [SPACE] to retry");
	auto localBounds = m_GameOverText.getLocalBounds();
	m_GameOverText.setOrigin(localBounds.left + localBounds.width / 2.f, localBounds.top + localBounds.height / 2.f);
	m_GameOverText.setPosition(WIDTH / 2.f, HEIGHT / 2.f);<commit_msg>The window can no longer be resized<commit_after>#include "Game.hpp"

#include <iostream>

const float Game::WIDTH = 400;
const float Game::HEIGHT = 600;
const std::string Game::TITLE = "Yet Another 2048 Clone!";

Game::Game()
	: m_Window(sf::VideoMode(WIDTH, HEIGHT), TITLE, sf::Style::Close)
	, m_Grid({ WIDTH / 2.f - WIDTH * (2.f / 2.3f) / 2.f, HEIGHT / 2.f - WIDTH * (2.f / 2.3f) / 2.f },
			 { WIDTH * (2.f / 2.3f), WIDTH * (2.f / 2.3f) })
	, m_GameOver(false)
{
	m_GameOverOverlay.setSize({ WIDTH, HEIGHT });
	m_GameOverOverlay.setFillColor(sf::Color(128, 0, 0, 128));

	m_GameOverFont.loadFromFile("res/fonts/Ubuntu-M.ttf");
	m_GameOverText.setFont(m_GameOverFont);
	m_GameOverText.setCharacterSize(24);
	m_GameOverText.setString("          Game Over!\nPress [SPACE] to retry");
	auto localBounds = m_GameOverText.getLocalBounds();
	m_GameOverText.setOrigin(localBounds.left + localBounds.width / 2.f, localBounds.top + localBounds.height / 2.f);
	m_GameOverText.setPosition(WIDTH / 2.f, HEIGHT / 2.f);
{'fraction_non_alphanumeric': 0.1673407482305359, 'fraction_numerical': 0.04044489383215369, 'mean_word_length': 4.348648648648648, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3250089', 'n_tokens_mistral': 872, 'n_tokens_neox': 785, 'n_words': 150}