<commit_before>var game = function() {
	// Set up an instance of the Quintus engine and include
	// the Sprites, Scenes, Input and 2D module. The 2D module
	// includes the `TileLayer` class as well as the `2d` componet.
	var Q = window.Q = Quintus({ audioSupported: [ 'ogg', 'mp3' ]})
		 .include("Sprites, Scenes, Input, 2D, TMX, Anim, Touch, UI, Audio")
		 // Maximize this game to whatever the size of the browser is
		 .setup({ maximize: true })
		 // And turn on default input controls and touch input (for UI)
		 .controls().touch().enableSound();
	var levelwin = false;
	var currentLevel = 1;
	var lost = false;
	
	Q.state.set({coins: 0, lives: 3});
	Q.state.on("change.coins, change.lives", function(){Q.stageScene("HUD", 1, {label: "Lives: "+Q.state.get("lives")+"	Coins: "+Q.state.get("coins")});});
	
	
	Q.load(["mario_small.png","mario_small.json","bloopa.png", "mainTitle.png",
			"nigga.png", "nigga.json","white.png","white.json","pardillos.png","pardillos.json",
			"unicornio.png","unicornio.json",
				"bloopa.json","goomba.png","goomba.json", "princess.png", 
					"coin.png", "coin.json","wynot.mp3", "music_main.mp3", "coin.mp3", "music_die.mp3"], function(){
		Q.compileSheets("mario_small.png","mario_small.json");
		Q.compileSheets("bloopa.png","bloopa.json");
		Q.compileSheets("goomba.png","goomba.json");
		Q.compileSheets("coin.png", "coin.json");
		Q.compileSheets("nigga.png", "nigga.json");
		Q.compileSheets("unicornio.png", "unicornio.json");
		Q.compileSheets("pardillos.png", "pardillos.json");
		Q.compileSheets("white.png", "white.json");
		Q.audio.play("wynot.mp3",{ loop: true });
	});
	
	//------------Unicornio
	//-----------------------------------------------------
	//-----------------------------------------------------
	Q.Sprite.extend("Unicornio", {
	  
	  init: function(p) {
		this._super(p, {
			sprite: "unicornio anim",
			sheet: "unicornioRun",
			x: 150,
			y: 230,
			jumpSpeed: -850,
			dead: false
		});
		this.add('2d, platformerControls, animation');
	  },
	  
	  step: function(dt) {
		if(this.p.y > 600 && !this.p.dead){
			this.death();
		}
		if(!this.p.dead){
			this.play("run");
		}
	  },
	  
	  death: function(){
		if(!levelwin && !this.p.dead)
			this.del('platformerControls');
			this.p.vx = 0;
			this.play("die");
			this.p.dead = true;<commit_msg>salta menos<commit_after>var game = function() {
	// Set up an instance of the Quintus engine and include
	// the Sprites, Scenes, Input and 2D module. The 2D module
	// includes the `TileLayer` class as well as the `2d` componet.
	var Q = window.Q = Quintus({ audioSupported: [ 'ogg', 'mp3' ]})
		 .include("Sprites, Scenes, Input, 2D, TMX, Anim, Touch, UI, Audio")
		 // Maximize this game to whatever the size of the browser is
		 .setup({ maximize: true })
		 // And turn on default input controls and touch input (for UI)
		 .controls().touch().enableSound();
	var levelwin = false;
	var currentLevel = 1;
	var lost = false;
	
	Q.state.set({coins: 0, lives: 3});
	Q.state.on("change.coins, change.lives", function(){Q.stageScene("HUD", 1, {label: "Lives: "+Q.state.get("lives")+"	Coins: "+Q.state.get("coins")});});
	
	
	Q.load(["mario_small.png","mario_small.json","bloopa.png", "mainTitle.png",
			"nigga.png", "nigga.json","white.png","white.json","pardillos.png","pardillos.json",
			"unicornio.png","unicornio.json",
				"bloopa.json","goomba.png","goomba.json", "princess.png", 
					"coin.png", "coin.json","wynot.mp3", "music_main.mp3", "coin.mp3", "music_die.mp3"], function(){
		Q.compileSheets("mario_small.png","mario_small.json");
		Q.compileSheets("bloopa.png","bloopa.json");
		Q.compileSheets("goomba.png","goomba.json");
		Q.compileSheets("coin.png", "coin.json");
		Q.compileSheets("nigga.png", "nigga.json");
		Q.compileSheets("unicornio.png", "unicornio.json");
		Q.compileSheets("pardillos.png", "pardillos.json");
		Q.compileSheets("white.png", "white.json");
		Q.audio.play("wynot.mp3",{ loop: true });
	});
	
	//------------Unicornio
	//-----------------------------------------------------
	//-----------------------------------------------------
	Q.Sprite.extend("Unicornio", {
	  
	  init: function(p) {
		this._super(p, {
			sprite: "unicornio anim",
			sheet: "unicornioRun",
			x: 150,
			y: 230,
			jumpSpeed: -650,
			dead: false
		});
		this.add('2d, platformerControls, animation');
	  },
	  
	  step: function(dt) {
		if(this.p.y > 600 && !this.p.dead){
			this.death();
		}
		if(!this.p.dead){
			this.play("run");
		}
	  },
	  
	  death: function(){
		if(!levelwin && !this.p.dead)
			this.del('platformerControls');
			this.p.vx = 0;
			this.play("die");
			this.p.dead = true;
{'fraction_non_alphanumeric': 0.24429125376992675, 'fraction_numerical': 0.012063765618267988, 'mean_word_length': 3.0514834205933683, 'pattern_counts': {'":': 0, '<': 3, '<?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': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '171855', 'n_tokens_mistral': 1921, 'n_tokens_neox': 1679, 'n_words': 330}