<commit_before>(function() {
	'use strict';
	function Credits() {}

	Credits.prototype = {
		create: function() {
			game.stage.backgroundColor = '#333333';

			/* Keyboard */
			this.enterKey = game.input.keyboard.addKey(Phaser.Keyboard.ENTER);
			this.enterKey.onDown.add(function () { this.startState('play'); }, this);
			/* Buttons */
			this.bttBack = game.add.button(game.world.centerX  - 200, game.world.centerY + 200, 'buttons', function () { this.startState('mainmenu'); }, this, 'bttBackHover', 'bttBackInactive', 'bttBackActive');
			this.bttBack.scale.set((gameWidth/10)/this.bttBack.width);

			this.bttBack.x = game.world.centerX - (this.bttBack.width*1.5);
			this.bttBack.y = game.world.centerY + (this.bttBack.height*3);

			/* Text */
			this.text = game.add.text(game.world.centerX, game.world.centerY, "CRSG\n A one man job\n by Arlefreak \n", {
				font: (this.bttBack.height) + "px Source Code Pro",
				fill: "#f0f0f0",
				align: "center"
			});

			/* Anchords */
			this.text.anchor.setTo(0.5, 0.5);
			this.bttBack.anchor.setTo(0.5, 0.5);

			/* Transition */
			var bdmTransition =  game.add.bitmapData(gameWidth, gameHeight);
			bdmTransition.context.fillStyle = 'rgba(50, 50, 50, 1.0)';
			bdmTransition.context.fillRect(0,0, gameWidth, gameHeight);
			var transition = game.add.sprite(0,0,bdmTransition);
			var e = game.add.tween(transition);
			e.onStart.add(function(){isMoving = true;});
			e.onComplete.add(function(){isMoving = false;})
			e.to({ alpha: 0 }, 500, Phaser.Easing.Linear.None, false, 0 , 0, false);
			e.start();
		},

		startState: function(_state) {
			var bdmTransition =  game.add.bitmapData(gameWidth, gameHeight);<commit_msg>Added phaser to credits<commit_after>(function() {
	'use strict';
	function Credits() {}

	Credits.prototype = {
		create: function() {
			game.stage.backgroundColor = '#333333';

			/* Keyboard */
			this.enterKey = game.input.keyboard.addKey(Phaser.Keyboard.ENTER);
			this.enterKey.onDown.add(function () { this.startState('play'); }, this);
			/* Buttons */
			this.bttBack = game.add.button(game.world.centerX  - 200, game.world.centerY + 200, 'buttons', function () { this.startState('mainmenu'); }, this, 'bttBackHover', 'bttBackInactive', 'bttBackActive');
			this.bttBack.scale.set((gameWidth/10)/this.bttBack.width);

			this.bttBack.x = game.world.centerX - (this.bttBack.width*1.5);
			this.bttBack.y = game.world.centerY + (this.bttBack.height*3);

			/* Text */
			this.text = game.add.text(game.world.centerX, game.world.centerY, "CRSG\n A one man job\n by Arlefreak \n", {
				font: (this.bttBack.height) + "px Source Code Pro",
				fill: "#f0f0f0",
				align: "center"
			});

			this.creditsTxt = game.add.text(game.world.centerX, this.world.height - 20, " Made with Phaser", {
				font: "15px Source Code Pro",
				fill: "#ffffff",
				align: "left"
			});

			/* Anchords */
			this.text.anchor.setTo(0.5, 0.5);
			this.creditsTxt.anchor.setTo(0.5, 0.5);
			this.bttBack.anchor.setTo(0.5, 0.5);

			/* Transition */
			var bdmTransition =  game.add.bitmapData(gameWidth, gameHeight);
			bdmTransition.context.fillStyle = 'rgba(50, 50, 50, 1.0)';
			bdmTransition.context.fillRect(0,0, gameWidth, gameHeight);
			var transition = game.add.sprite(0,0,bdmTransition);
			var e = game.add.tween(transition);
			e.onStart.add(function(){isMoving = true;});
			e.onComplete.add(function(){isMoving = false;})
			e.to({ alpha: 0 }, 500, Phaser.Easing.Linear.None, false, 0 , 0, false);
			e.start();
		},

		startState: function(_state) {
			var bdmTransition =  game.add.bitmapData(gameWidth, gameHeight);
{'fraction_non_alphanumeric': 0.1782343142698501, 'fraction_numerical': 0.0277623542476402, 'mean_word_length': 3.7036553524804177, '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': '5866682', 'n_tokens_mistral': 1547, 'n_tokens_neox': 1329, 'n_words': 224}