<commit_before>//
// Created by dar on 11/27/15.
//

#include "Game.h"
#include "core/Core.h"
#include "render/Renderer.h"
#include "core/map/TiledTxtMapLoader.h"

Game::Game() {
    this->timer = new Timer();

    MapLoader *mapLoader = new TiledTxtMapLoader("test_map.txt");
    Map *bmap = mapLoader->loadMap();

    this->core = new Core(bmap);
    this->renderer = new Renderer(core);
}

void Game::run() {
    this->renderer->init();
#ifndef __ANDROID__
    SDL_StartTextInput();
#endif // __ANDROID__
    double deltaTime = timer->GetDelta();<commit_msg>Added stdio and stdlib includes (should fix rand() issues on windows)<commit_after>//
// Created by dar on 11/27/15.
//

#include <stdio.h>
#include <stdlib.h>
#include "Game.h"
#include "core/Core.h"
#include "render/Renderer.h"
#include "core/map/TiledTxtMapLoader.h"

Game::Game() {
    this->timer = new Timer();

    MapLoader *mapLoader = new TiledTxtMapLoader("test_map.txt");
    Map *bmap = mapLoader->loadMap();

    this->core = new Core(bmap);
    this->renderer = new Renderer(core);
}

void Game::run() {
    this->renderer->init();
#ifndef __ANDROID__
    SDL_StartTextInput();
#endif // __ANDROID__
    double deltaTime = timer->GetDelta();
{'fraction_non_alphanumeric': 0.1676253081347576, 'fraction_numerical': 0.009860312243221035, 'mean_word_length': 3.852589641434263, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4499262', 'n_tokens_mistral': 446, 'n_tokens_neox': 430, 'n_words': 97}