<commit_before>var gameTitle = function(game){}

gameTitle.prototype = {
  	create: function(){
                this.game.physics.startSystem(Phaser.Physics.ARCADE);
		var gameTitle = this.game.add.sprite(this.game.world.width * 0.5,this.game.world.height * .1,"game_title");
		gameTitle.anchor.setTo(0.5,0.5);
		var playButton = this.game.add.button(this.game.world.width * 0.5,this.game.world.height * .2,"play_btn",this.playTheGame,this);
		playButton.anchor.setTo(0.5,0.5);

		simon = this.game.add.sprite(this.game.world.width * 0.5,this.game.world.height * .9,"simon");
                simon.inputEnabled = true;
                simon.events.onInputDown.add(this.simonWeb,this);
                simon.anchor.setTo(0.5,0.5);
                this.game.physics.arcade.enable(simon);
                simon.body.immovable = true;

                this.load_player("player", 0, 0, "right");
                //go full screen on click
                this.game.input.onDown.add(this.fullscreen, this);
	},
        update: function(){
                this.game.physics.arcade.collide(player, simon);
            
                if(player.position.x > this.game.world.width){
                    this.load_player("player2", this.game.world.width, 0, "left");
                }else if(player.position.x < 0){
                    this.load_player("player", 0, 0, "right");
                }
        },
        simonWeb: function(){
            window.open("http://multi8it.blogspot.com", "_blank");
        },
	playTheGame: function(){
                click.play();
		this.game.state.start("TheGame");
	},
        fullscreen: function(){
            this.game.scale.fullScreenScaleMode = Phaser.ScaleManager.SHOW_ALL;
            this.game.scale.startFullScreen();
        },

        load_player: function(pl, posx, posy, direction){
            //animations
            player = this.game.add.sprite(posx,posy, pl);
            player.animations.add('left', [0, 1, 2, 3, 4, 5], 10, true);
            player.animations.add('right', [6, 7, 8, 9, 10, 11], 10, true);
            this.game.physics.arcade.enable(player);
            player.body.gravity.y = 500;
            player.body.bounce.y = 0.2;
            //player.body.collideWorldBounds = true;
            if(direction == "right"){
                player.body.velocity.x = 150;
                player.animations.play('right');
            }else{
                player.animations.play('left');
                player.body.velocity.x = -150;
            }

        }
}
<commit_msg>Created create funcion for Simon logo<commit_after>var gameTitle = function(game){}

gameTitle.prototype = {
  	create: function(){
                this.game.physics.startSystem(Phaser.Physics.ARCADE);
		var gameTitle = this.game.add.sprite(this.game.world.width * 0.5,this.game.world.height * .1,"game_title");
		gameTitle.anchor.setTo(0.5,0.5);
		var playButton = this.game.add.button(this.game.world.width * 0.5,this.game.world.height * .2,"play_btn",this.playTheGame,this);
		playButton.anchor.setTo(0.5,0.5);

                this.create_simon();
                this.load_player("player", 0, 0, "right");

                //go full screen on click
                this.game.input.onDown.add(this.fullscreen, this);
	},
        update: function(){
                this.game.physics.arcade.collide(player, simon);
            
                if(player.position.x > this.game.world.width){
                    this.load_player("player2", this.game.world.width, 0, "left");
                }else if(player.position.x < 0){
                    this.load_player("player", 0, 0, "right");
                }
        },
        simonWeb: function(){
            window.open("http://multi8it.blogspot.com", "_blank");
        },
	playTheGame: function(){
                click.play();
		this.game.state.start("TheGame");
	},
        fullscreen: function(){
            this.game.scale.fullScreenScaleMode = Phaser.ScaleManager.SHOW_ALL;
            this.game.scale.startFullScreen();
        },

        load_player: function(pl, posx, posy, direction){
            //animations
            player = this.game.add.sprite(posx,posy, pl);
            player.animations.add('left', [0, 1, 2, 3, 4, 5], 10, true);
            player.animations.add('right', [6, 7, 8, 9, 10, 11], 10, true);
            this.game.physics.arcade.enable(player);
            player.body.gravity.y = 500;
            player.body.bounce.y = 0.2;
            //player.body.collideWorldBounds = true;
            if(direction == "right"){
                player.body.velocity.x = 150;
                player.animations.play('right');
            }else{
                player.animations.play('left');
                player.body.velocity.x = -150;
            }

        },
        create_simon: function(){
		simon = this.game.add.sprite(this.game.world.width * 0.5,this.game.world.height * .9,"simon");
                simon.inputEnabled = true;
                simon.events.onInputDown.add(this.simonWeb,this);
                simon.anchor.setTo(0.5,0.5);
                this.game.physics.arcade.enable(simon);
                simon.body.immovable = true;
        }
}   

{'fraction_non_alphanumeric': 0.14705882352941177, 'fraction_numerical': 0.021870286576168928, 'mean_word_length': 1.7416020671834624, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '713985', 'n_tokens_mistral': 1772, 'n_tokens_neox': 1604, 'n_words': 236}