<commit_before>#include "gamestates/introstate.hpp"

#include <SFML/Window/Event.hpp>
#include <SFML/Graphics/Texture.hpp>
#include <SFML/Graphics/Sprite.hpp>
#include <SFML/Graphics/RenderWindow.hpp>

#include <iostream>

namespace qrw
{

IntroState::IntroState(sf::RenderWindow* renderWindow)
	: GameState(renderWindow, EGameStateId::EGSID_INTRO_STATE)
{
}

IntroState::~IntroState()
{
}

void IntroState::init(GameState* previousState)
{
	// Create render window
	_renderWindow->create(
		sf::VideoMode(640, 480),
		"Quad-Ruled War - Loading...",
		sf::Style::None
	);

	_quit = false;

	_splashTexture = new sf::Texture();
	_splashTexture->loadFromFile("./res/img/splash.png");
	_splashSprite = new sf::Sprite();
	_splashSprite->setTexture(*_splashTexture);
}

EGameStateId IntroState::update()
{
	if(_quit)
	{
		delete _splashTexture;
		delete _splashSprite;

		return EGameStateId::EGSID_QUIT;
	}

	return EGameStateId::EGSID_NO_CHANGE;
}

void IntroState::draw()<commit_msg>Adjusted intro state render window size.<commit_after>#include "gamestates/introstate.hpp"

#include <SFML/Window/Event.hpp>
#include <SFML/Graphics/Texture.hpp>
#include <SFML/Graphics/Sprite.hpp>
#include <SFML/Graphics/RenderWindow.hpp>

#include <iostream>

namespace qrw
{

IntroState::IntroState(sf::RenderWindow* renderWindow)
	: GameState(renderWindow, EGameStateId::EGSID_INTRO_STATE)
{
}

IntroState::~IntroState()
{
}

void IntroState::init(GameState* previousState)
{
	// Create render window
	_renderWindow->create(
		sf::VideoMode(640, 240),
		"Quad-Ruled War - Loading...",
		sf::Style::None
	);

	_quit = false;

	_splashTexture = new sf::Texture();
	_splashTexture->loadFromFile("./res/img/splash.png");
	_splashSprite = new sf::Sprite();
	_splashSprite->setTexture(*_splashTexture);
}

EGameStateId IntroState::update()
{
	if(_quit)
	{
		delete _splashTexture;
		delete _splashSprite;

		return EGameStateId::EGSID_QUIT;
	}

	return EGameStateId::EGSID_NO_CHANGE;
}

void IntroState::draw()
{'fraction_non_alphanumeric': 0.1452991452991453, 'fraction_numerical': 0.006033182503770739, 'mean_word_length': 6.031802120141343, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, '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': '5805766', 'n_tokens_mistral': 781, 'n_tokens_neox': 754, 'n_words': 114}