<commit_before>/*global setTimeout, State, Config, Phaser*/
var GameIntro3Properties = {
	background: 'assets/images/introgamefase2_1920-1080.jpg',
	x: 0,
	y: 0
};

State.GameIntro3 = function (game) {
	"use strict";
	this.game = game;
};
State.GameIntro3.prototype = {
	preload: function () {
		"use strict";
		this.sprite = this.game.add.sprite(GameIntro3Properties.x, GameIntro3Properties.y, 'game-intro3'); // Carregar bg
		this.sprite.alpha = 0;
		
		var button = this.game.add.button(Config.button.back.x, Config.button.back.y, 'button-back', this.onBack, this, 1, 0, 1, 0);
		button.anchor.setTo(Config.button.back.anchor.x, Config.button.back.anchor.y);
		
		var button2 = this.game.add.button(Config.button.next.x, Config.button.next.y, 'button-next', this.onNext, this, 1, 0, 1, 0);
		button2.anchor.setTo(Config.button.next.anchor.x, Config.button.next.anchor.y);		
		
		var style = { font: "40px Helvetica", fill: "#ffffff" };
        this.text1 = game.add.text(330, 800, 'Que lugar é esse? Que criaturas são essas? A cidade está tomada pelo caos', style);
		this.text1.alpha = 0;
        var text2 = game.add.text(620, 850, 'e não encontro ninguém pra me ajudar...', style);	
		this.text2.alpha = 0;
		
		game.add.tween(this.sprite).to( { alpha: 1 }, 3000, Phaser.Easing.Linear.None).start();
		game.add.tween(this.text1).to( { alpha: 1 }, 3000, Phaser.Easing.Linear.None).start();
		game.add.tween(this.text2).to( { alpha: 1 }, 3000, Phaser.Easing.Linear.None).start();						                          
	},
	create: function () {
		"use strict";
	},
	update: function () {
		"use strict";
		Config.screen.resize(this.game);
	},
	onBack: function () {
		"use strict";
		var FadeOut = game.add.tween(this.sprite).to( { alpha: 0 }, 1000, Phaser.Easing.Linear.None);
		FadeOut.onComplete.add(function(){
			game.state.start('Phase1');
		});<commit_msg>correcao bug<commit_after>/*global setTimeout, State, Config, Phaser*/
var GameIntro3Properties = {
	background: 'assets/images/introgamefase2_1920-1080.jpg',
	x: 0,
	y: 0
};

State.GameIntro3 = function (game) {
	"use strict";
	this.game = game;
};
State.GameIntro3.prototype = {
	preload: function () {
		"use strict";
		this.sprite = this.game.add.sprite(GameIntro3Properties.x, GameIntro3Properties.y, 'game-intro3'); // Carregar bg
		this.sprite.alpha = 0;
		
		var button = this.game.add.button(Config.button.back.x, Config.button.back.y, 'button-back', this.onBack, this, 1, 0, 1, 0);
		button.anchor.setTo(Config.button.back.anchor.x, Config.button.back.anchor.y);
		
		var button2 = this.game.add.button(Config.button.next.x, Config.button.next.y, 'button-next', this.onNext, this, 1, 0, 1, 0);
		button2.anchor.setTo(Config.button.next.anchor.x, Config.button.next.anchor.y);		
		
		var style = { font: "40px Helvetica", fill: "#ffffff" };
        this.text1 = game.add.text(330, 800, 'Que lugar é esse? Que criaturas são essas? A cidade está tomada pelo caos', style);
		this.text1.alpha = 0;
        this.text2 = game.add.text(620, 850, 'e não encontro ninguém pra me ajudar...', style);	
		this.text2.alpha = 0;
		
		game.add.tween(this.sprite).to( { alpha: 1 }, 3000, Phaser.Easing.Linear.None).start();
		game.add.tween(this.text1).to( { alpha: 1 }, 3000, Phaser.Easing.Linear.None).start();
		game.add.tween(this.text2).to( { alpha: 1 }, 3000, Phaser.Easing.Linear.None).start();						                          
	},
	create: function () {
		"use strict";
	},
	update: function () {
		"use strict";
		Config.screen.resize(this.game);
	},
	onBack: function () {
		"use strict";
		var FadeOut = game.add.tween(this.sprite).to( { alpha: 0 }, 1000, Phaser.Easing.Linear.None);
		FadeOut.onComplete.add(function(){
			game.state.start('Phase1');
		});
{'fraction_non_alphanumeric': 0.1738312735088662, 'fraction_numerical': 0.03815153143471252, 'mean_word_length': 3.5291970802919708, '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': '1552197', 'n_tokens_mistral': 1562, 'n_tokens_neox': 1376, 'n_words': 274}