<commit_before>// Game.MainMenu = function(game) {};

Game.MainMenu = {
    count : 0,
    create: function() { 
    
        isDay = true;
        
        space = game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR);
        up = game.input.keyboard.addKey(Phaser.Keyboard.UP);
        down = game.input.keyboard.addKey(Phaser.Keyboard.DOWN);
        
        dot = game.add.tileSprite(0, 0, game.width, game.height, 'dot');
        title = this.add.sprite(game.width/2, 105, 'title');
            title.anchor.setTo(0.5, 0.5);
            title.scale.setTo(1, 0.9);
        activeFill = "#093";
        deactiveFill = "#000";

        var titleText = game.add.text(game.width/2 + 6, game.height/2 - 5, 'My Little Sister Can\'t Run This Fast', {font: 'bold 13px Arial', fill: activeFill});
            titleText.anchor.setTo(0.5, 0.5);
            titleText.stroke = "#FFF";
            titleText.strokeThickness = 4;
        
         playText = game.add.text(game.width/2, game.height/2 + 100, 'Start', {fill: deactiveFill});
            playText.cssFont = "bold 50px Forte";
            playText.anchor.setTo(0.5, 0.5);
            playText.stroke = "#FFF";
            playText.strokeThickness = 5;
            playText.setShadow(0, 3, "#333333", 2, true, false);

         instructionsText = game.add.text(game.width/2 - 10, game.height/2 + 150, 'How to play', {fill: deactiveFill});
            instructionsText.cssFont = "bold 50px Forte";
            instructionsText.anchor.setTo(0.5, 0.5);
            instructionsText.stroke = "#FFF";
            instructionsText.strokeThickness = 5;
            instructionsText.setShadow(0, 3, "#333333", 2, true, false);
        
        var timeOfDay = game.add.text(game.width/2 + 180, game.height/2 + 60, 'Time of Day', {font: 'bold 18px Arial', fill: activeFill, stroke: '#000', strokeThickness: 3});
        timeOfDay.anchor.setTo(0.5, 0.5);
        
        var afternoon = game.add.graphics(0, 0);
            afternoon.lineStyle(3, 0xefd539, 1);
            afternoon.beginFill(0xffde14, 1);
            afternoon.drawCircle(game.width/2 + 180, game.height/2 + 100, 50);
        
        var sunset = game.add.graphics(0, 0);
            sunset.lineStyle(3, 0xde8017, 1);
            sunset.beginFill(0xf1860e, 1);
            sunset.arc(game.width/2 + 180, game.height/2 + 110, 25, 0.08, 3.14, true); 
            sunset.visible = false;
        
        var timeOfDayButton = game.add.text(game.width/2 + 178, game.height/2 + 105, 'O');
            timeOfDayButton.inputEnabled = true;
            timeOfDayButton.fontSize= 50;
            timeOfDayButton.anchor.setTo(0.5, 0.5);
            timeOfDayButton.alpha = 0;
        
        timeOfDayButton.events.onInputDown.add(function(){
            isDay = !isDay;
            if (isDay) {
                afternoon.visible = true;
                sunset.visible = false;
            } else {
                afternoon.visible = false;
                sunset.visible = true;
            }
        }, this);
        
              
        down.onDown.add(this._instructionsTextActive, this); 
        up.onDown.add(this._playTextActive, this);
        
        playText.fill = activeFill;<commit_msg>added left/right keys for switching the time of day<commit_after>// Game.MainMenu = function(game) {};

Game.MainMenu = {
    count : 0,
    create: function() { 
    
        isDay = true;
        
        space = game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR);
        up = game.input.keyboard.addKey(Phaser.Keyboard.UP);
        down = game.input.keyboard.addKey(Phaser.Keyboard.DOWN);
        left  = game.input.keyboard.addKey(Phaser.Keyboard.LEFT);
        right  = game.input.keyboard.addKey(Phaser.Keyboard.RIGHT);
        
        dot = game.add.tileSprite(0, 0, game.width, game.height, 'dot');
        title = this.add.sprite(game.width/2, 105, 'title');
            title.anchor.setTo(0.5, 0.5);
            title.scale.setTo(1, 0.9);
        activeFill = "#093";
        deactiveFill = "#000";

        var titleText = game.add.text(game.width/2 + 6, game.height/2 - 5, 'My Little Sister Can\'t Run This Fast', {font: 'bold 13px Arial', fill: activeFill});
            titleText.anchor.setTo(0.5, 0.5);
            titleText.stroke = "#FFF";
            titleText.strokeThickness = 4;
        
         playText = game.add.text(game.width/2, game.height/2 + 100, 'Start', {fill: deactiveFill});
            playText.cssFont = "bold 50px Forte";
            playText.anchor.setTo(0.5, 0.5);
            playText.stroke = "#FFF";
            playText.strokeThickness = 5;
            playText.setShadow(0, 3, "#333333", 2, true, false);

         instructionsText = game.add.text(game.width/2 - 10, game.height/2 + 150, 'How to play', {fill: deactiveFill});
            instructionsText.cssFont = "bold 50px Forte";
            instructionsText.anchor.setTo(0.5, 0.5);
            instructionsText.stroke = "#FFF";
            instructionsText.strokeThickness = 5;
            instructionsText.setShadow(0, 3, "#333333", 2, true, false);
        
        var timeOfDay = game.add.text(game.width/2 + 180, game.height/2 + 60, 'Time of Day', {font: 'bold 18px Arial', fill: activeFill, stroke: '#000', strokeThickness: 3});
        timeOfDay.anchor.setTo(0.5, 0.5);
        
        var afternoon = game.add.graphics(0, 0);
            afternoon.lineStyle(3, 0xefd539, 1);
            afternoon.beginFill(0xffde14, 1);
            afternoon.drawCircle(game.width/2 + 180, game.height/2 + 100, 50);
        
        var sunset = game.add.graphics(0, 0);
            sunset.lineStyle(3, 0xde8017, 1);
            sunset.beginFill(0xf1860e, 1);
            sunset.arc(game.width/2 + 180, game.height/2 + 110, 25, 0.08, 3.14, true); 
            sunset.visible = false;
        
        var timeOfDayButton = game.add.text(game.width/2 + 178, game.height/2 + 105, 'O');
            timeOfDayButton.inputEnabled = true;
            timeOfDayButton.fontSize= 50;
            timeOfDayButton.anchor.setTo(0.5, 0.5);
            timeOfDayButton.alpha = 0;
        
        timeOfDayButton.events.onInputDown.add(function(){
            isDay = !isDay;
            if (isDay) {
                afternoon.visible = true;
                sunset.visible = false;
            } else {
                afternoon.visible = false;
                sunset.visible = true;
            }
        }, this);
        
        left.onDown.add(function(){
            isDay = true;
            afternoon.visible = true;
            sunset.visible = false;
        }, this);
        
        right.onDown.add(function(){
            isDay = false;
            afternoon.visible = false;
            sunset.visible = true;
        }, this);
              
        down.onDown.add(this._instructionsTextActive, this); 
        up.onDown.add(this._playTextActive, this);
        
        playText.fill = activeFill;
{'fraction_non_alphanumeric': 0.13529156417305743, 'fraction_numerical': 0.04630299522500362, 'mean_word_length': 1.8788004997917533, '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': '6489981', 'n_tokens_mistral': 2393, 'n_tokens_neox': 2189, 'n_words': 423}