<commit_before>/**
 * Main game object.
 */

var transitions = null;
var run = false;
var ran = false;


function PixelEvolution(width, height, renderer, parent, state, transparent, antialias)
{
    // game variables
    this._pause = false;
    this._showMinimap = false;

    this._level = 0;
    Phaser.Game.call(this, width, height, renderer, parent, state, transparent, antialias);
}

PixelEvolution.prototype = Object.create(Phaser.Game.prototype);
PixelEvolution.prototype.constructor = PixelEvolution;

//preload all sprites in advance before actually starting the game.
function preload(){
};

function create()
{
    //Add all different states/phases
    //general
    this.state.add('boot', boot);
    this.state.add('loader', loader);
    this.state.add('menu', mainMenu);
    this.state.add('evolution', evolution);
    this.state.add('end', end);

    //phases
    this.state.add('pixel', pixelPhase);
    this.state.add('pacman', pacmanPhase);
    this.state.add('dungeon', dungeonPhase);
    this.state.add('rpg', rpgPhase);

    //initialise music
    pixelEvolution._music = this.add.audio('music');
    pixelEvolution._sfx = this.add.audio('music');

    pixelEvolution._music.addMarker('8bbg1', 41.629, 7.696, 1, true);
    pixelEvolution._music.addMarker('bg1', 0.028, 10.216, 1, true);
    pixelEvolution._music.addMarker('bg2', 10.244, 10.214, 1, true);
    pixelEvolution._music.addMarker('bg3', 20.458, 10.238, 1, true);
    pixelEvolution._music.addMarker('bg4', 30.696, 10.188, 1, true);

    pixelEvolution._sfx.addMarker('chat', 40.884, 0.314, 1, false);
    pixelEvolution._sfx.addMarker('itempickup', 41.198, 0.494, 1, false);
    
    //and start the menu one
    this.state.start('end');

    //set up transition plugin to smoothly transition between states.
    transitions = this.game.plugins.add(Phaser.Plugin.StateTransition);
    transitions.settings({
        duration: 700,
        properties: {
            alpha: 0,
            scale: {
                x: 1.5,
                y: 1.5<commit_msg>FOUTJE :D:D:D:D:<commit_after>/**
 * Main game object.
 */

var transitions = null;
var run = false;
var ran = false;


function PixelEvolution(width, height, renderer, parent, state, transparent, antialias)
{
    // game variables
    this._pause = false;
    this._showMinimap = false;

    this._level = 0;
    Phaser.Game.call(this, width, height, renderer, parent, state, transparent, antialias);
}

PixelEvolution.prototype = Object.create(Phaser.Game.prototype);
PixelEvolution.prototype.constructor = PixelEvolution;

//preload all sprites in advance before actually starting the game.
function preload(){
};

function create()
{
    //Add all different states/phases
    //general
    this.state.add('boot', boot);
    this.state.add('loader', loader);
    this.state.add('menu', mainMenu);
    this.state.add('evolution', evolution);
    this.state.add('end', end);

    //phases
    this.state.add('pixel', pixelPhase);
    this.state.add('pacman', pacmanPhase);
    this.state.add('dungeon', dungeonPhase);
    this.state.add('rpg', rpgPhase);

    //initialise music
    pixelEvolution._music = this.add.audio('music');
    pixelEvolution._sfx = this.add.audio('music');

    pixelEvolution._music.addMarker('8bbg1', 41.629, 7.696, 1, true);
    pixelEvolution._music.addMarker('bg1', 0.028, 10.216, 1, true);
    pixelEvolution._music.addMarker('bg2', 10.244, 10.214, 1, true);
    pixelEvolution._music.addMarker('bg3', 20.458, 10.238, 1, true);
    pixelEvolution._music.addMarker('bg4', 30.696, 10.188, 1, true);

    pixelEvolution._sfx.addMarker('chat', 40.884, 0.314, 1, false);
    pixelEvolution._sfx.addMarker('itempickup', 41.198, 0.494, 1, false);
    
    //and start the menu one
    this.state.start('boot');

    //set up transition plugin to smoothly transition between states.
    transitions = this.game.plugins.add(Phaser.Plugin.StateTransition);
    transitions.settings({
        duration: 700,
        properties: {
            alpha: 0,
            scale: {
                x: 1.5,
                y: 1.5
{'fraction_non_alphanumeric': 0.14786660127513487, 'fraction_numerical': 0.04315841098577734, 'mean_word_length': 3.2313278008298756, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '590041', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1309, 'n_words': 296}