<commit_before>var Keymap = require('../config/keymap'),
    Strings = require('../config/strings');


var TitleState = function(){};

function _displayStartText() {
    var style = {
        fontSize: '20px',
        fill: '#3f8'
    };
    var text = this.add.text(this.game.width * 0.5, 50, Strings.startText, style);
    text.anchor.setTo(0.5);
};

function _waitForStart() {
    if (this.input.keyboard.isDown(Keymap.Start) || this.input.activePointer.isDown){
        this.game.state.start('level');
    }
};

function _playIntroMusic() {
    this.intromusic = this.add.audio('intro');
    this.intromusic.play();
}

TitleState.prototype = {
    init: function(args){
    },
    preload: function(){
        this.load.audio(
            'intro',
            ['assets/audio/intro.mp3',
             'assets/audio/intro.opus']
        );<commit_msg>Fix level call from title screen to go to sandbox<commit_after>var Keymap = require('../config/keymap'),
    Strings = require('../config/strings');


var TitleState = function(){};

function _displayStartText() {
    var style = {
        fontSize: '20px',
        fill: '#3f8'
    };
    var text = this.add.text(this.game.width * 0.5, 50, Strings.startText, style);
    text.anchor.setTo(0.5);
};

function _waitForStart() {
    if (this.input.keyboard.isDown(Keymap.Start) || this.input.activePointer.isDown){
        this.game.state.start('sandbox');
    }
};

function _playIntroMusic() {
    this.intromusic = this.add.audio('intro');
    this.intromusic.play();
}

TitleState.prototype = {
    init: function(args){
    },
    preload: function(){
        this.load.audio(
            'intro',
            ['assets/audio/intro.mp3',
             'assets/audio/intro.opus']
        );
{'fraction_non_alphanumeric': 0.16743119266055045, 'fraction_numerical': 0.01261467889908257, 'mean_word_length': 2.620331950207469, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6318844', 'n_tokens_mistral': 607, 'n_tokens_neox': 583, 'n_words': 97}