<commit_before>// src/game.js

import Phaser from 'phaser';
import { Load } from './states/load';
import { Menu } from './states/menu';
import { Play } from './states/play';
import { GameOver } from './states/gameover';
import { Victory } from './states/victory';

export class Game extends Phaser.Game {
    constructor() {
        super(800, 600, Phaser.AUTO, 'phaser-canvas', null);
        
        this.state.add('load', Load);
        this.state.add('menu', Menu);
        this.state.add('play', Play);
        this.state.add('gameover', GameOver);
        this.state.add('victory', Victory);
        
        this.state.start('load');
    }
}<commit_msg>moved  construction logic to default initial state<commit_after>// src/game.js

import Phaser from 'phaser';
import { Load } from './states/load';
import { Menu } from './states/menu';
import { Play } from './states/play';
import { GameOver } from './states/gameover';
import { Victory } from './states/victory';

export class Game extends Phaser.Game {
    constructor() {
        super(800, 600, Phaser.AUTO, 'phaser-canvas', { create : () => {            
            this.state.add('load', Load);
            this.state.add('menu', Menu);
            this.state.add('play', Play);
            this.state.add('gameover', GameOver);
            this.state.start('load');
        }});        
    }  
}
{'fraction_non_alphanumeric': 0.1693548387096774, 'fraction_numerical': 0.008797653958944282, 'mean_word_length': 2.482142857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1294142', 'n_tokens_mistral': 421, 'n_tokens_neox': 405, 'n_words': 100}