<commit_before>var GumpleRush = GumpleRush || {};
var hrac = hrac || {};

GumpleRush.Gympl = function() {};
GumpleRush.Gympl.prototype = {

		preload: function() {
			this.time.advancedTiming = true;
		},
		create: function() {
		this.mapa = this.game.add.tilemap("gymplik");
		this.game.stage.backgroundColor = "#0b7cb4";
		this.mapa.addTilesetImage("final_version", "textury");

		this.vzhled = this.mapa.createLayer("vzhled");
		this.kolize = this.mapa.createLayer("kolize");
		this.mapa.setCollisionBetween(1, 100000, true, "kolize");
		this.game.world.setBounds(0, 0, 1200, 720);

		this.seznam_dlazdic_vzhledu = this.vzhled.getTiles(0, 0, this.game.world.width, this.game.world.height);
		for (var i = 0; i < this.seznam_dlazdic_vzhledu.length; i++) {
			if (this.seznam_dlazdic_vzhledu[i].index == 49 || this.seznam_dlazdic_vzhledu[i].index == 48) {
				this.seznam_dlazdic_vzhledu[i].setCollision(false, false, true, false); // left, right, top, bottom
			}
		}
		this.seznam_dlazdic_kolize = this.kolize.getTiles(0, 0, this.game.world.width, this.game.world.height);
		for (var i = 0; i < this.seznam_dlazdic_kolize.length; i++) {
			if (this.seznam_dlazdic_kolize[i].index == 18) {
				this.seznam_dlazdic_kolize[i].setCollision(false, false, true, false); // left, right, top, bottom
			}
		}

		//stvoření hráče
		this.hrac = this.add.sprite(300, 600, "ruza");
		this.game.physics.arcade.enable(this.hrac);
		this.hrac.body.gravity.y = 1000;
		this.hrac.animations.add("beh", [2, 3], 5, true);
		this.hrac.animations.add("klid", [0, 4], 1, true);
		this.hrac.animations.add("skrceni", [4, 4], 1, true);

		this.game.camera.follow(this.hrac);

		//stvoření Vlasty
		this.vlasta = this.add.sprite(500, 600, "vlasta");
		this.game.physics.arcade.enable(this.vlasta);
		this.vlasta.body.gravity.y = 1000;
		this.vlasta.animations.add("beh", [0, 1], 5, true);
		this.vlasta.animations.play("beh");
		this.vlasta.body.velocity.x = 50;
		this.vlasta.body.bounce.x = 1;
		this.vlasta.anchor.setTo(0.5, 0.5);

		this.gaudeamus = this.game.add.audio("gaudeamus");
		this.gaudeamus.loop = true;
		this.gaudeamus.play();

		this.cursors = this.game.input.keyboard.createCursorKeys();
		this.wasd = {
			up: this.game.input.keyboard.addKey(Phaser.Keyboard.W),
			down: this.game.input.keyboard.addKey(Phaser.Keyboard.S),
			left: this.game.input.keyboard.addKey(Phaser.Keyboard.A),
			right: this.game.input.keyboard.addKey(Phaser.Keyboard.D),
		};
		this.skok = this.game.add.audio("skok");

		this.klavesaF = this.game.input.keyboard.addKey(Phaser.Keyboard.F);
		this.klavesaF.onDown.add(this.celaObrazovka, this);

		stisk_a = false;
		stisk_b = false;
		stisk_l = false;
		stisk_p = false;

		if (!this.game.device.desktop) {
			this.button_a = this.game.add.button(524, 307, "button_a", null, this, 1, 0, 1);
			this.button_a.fixedToCamera = true;
			this.button_a.events.onInputOver.add(function() {
				stisk_a = true;
			});
			this.button_a.events.onInputOut.add(function() {
				stisk_a = false;
			});<commit_msg>Režim celé obrazovky na mobilech<commit_after>var GumpleRush = GumpleRush || {};
var hrac = hrac || {};

GumpleRush.Gympl = function() {};
GumpleRush.Gympl.prototype = {

		preload: function() {
			this.time.advancedTiming = true;
		},
		create: function() {
		this.mapa = this.game.add.tilemap("gymplik");
		this.game.stage.backgroundColor = "#0b7cb4";
		this.mapa.addTilesetImage("final_version", "textury");

		this.vzhled = this.mapa.createLayer("vzhled");
		this.kolize = this.mapa.createLayer("kolize");
		this.mapa.setCollisionBetween(1, 100000, true, "kolize");
		this.game.world.setBounds(0, 0, 1200, 720);

		this.seznam_dlazdic_vzhledu = this.vzhled.getTiles(0, 0, this.game.world.width, this.game.world.height);
		for (var i = 0; i < this.seznam_dlazdic_vzhledu.length; i++) {
			if (this.seznam_dlazdic_vzhledu[i].index == 49 || this.seznam_dlazdic_vzhledu[i].index == 48) {
				this.seznam_dlazdic_vzhledu[i].setCollision(false, false, true, false); // left, right, top, bottom
			}
		}
		this.seznam_dlazdic_kolize = this.kolize.getTiles(0, 0, this.game.world.width, this.game.world.height);
		for (var i = 0; i < this.seznam_dlazdic_kolize.length; i++) {
			if (this.seznam_dlazdic_kolize[i].index == 18) {
				this.seznam_dlazdic_kolize[i].setCollision(false, false, true, false); // left, right, top, bottom
			}
		}

		//stvoření hráče
		this.hrac = this.add.sprite(300, 600, "ruza");
		this.game.physics.arcade.enable(this.hrac);
		this.hrac.body.gravity.y = 1000;
		this.hrac.animations.add("beh", [2, 3], 5, true);
		this.hrac.animations.add("klid", [0, 4], 1, true);
		this.hrac.animations.add("skrceni", [4, 4], 1, true);

		this.game.camera.follow(this.hrac);

		//stvoření Vlasty
		this.vlasta = this.add.sprite(500, 600, "vlasta");
		this.game.physics.arcade.enable(this.vlasta);
		this.vlasta.body.gravity.y = 1000;
		this.vlasta.animations.add("beh", [0, 1], 5, true);
		this.vlasta.animations.play("beh");
		this.vlasta.body.velocity.x = 50;
		this.vlasta.body.bounce.x = 1;
		this.vlasta.anchor.setTo(0.5, 0.5);

		this.gaudeamus = this.game.add.audio("gaudeamus");
		this.gaudeamus.loop = true;
		this.gaudeamus.play();

		this.cursors = this.game.input.keyboard.createCursorKeys();
		this.wasd = {
			up: this.game.input.keyboard.addKey(Phaser.Keyboard.W),
			down: this.game.input.keyboard.addKey(Phaser.Keyboard.S),
			left: this.game.input.keyboard.addKey(Phaser.Keyboard.A),
			right: this.game.input.keyboard.addKey(Phaser.Keyboard.D),
		};
		this.skok = this.game.add.audio("skok");

		this.klavesaF = this.game.input.keyboard.addKey(Phaser.Keyboard.F);
		this.klavesaF.onDown.add(this.celaObrazovka, this);

		stisk_a = false;
		stisk_b = false;
		stisk_l = false;
		stisk_p = false;

		if (!this.game.device.desktop) {
			this.game.input.onDown.add(this.celaObrazovka, this);

			this.button_a = this.game.add.button(524, 307, "button_a", null, this, 1, 0, 1);
			this.button_a.fixedToCamera = true;
			this.button_a.events.onInputOver.add(function() {
				stisk_a = true;
			});
			this.button_a.events.onInputOut.add(function() {
				stisk_a = false;
			});
{'fraction_non_alphanumeric': 0.17426098317818062, 'fraction_numerical': 0.025804344275681856, 'mean_word_length': 4.052805280528053, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2453155', 'n_tokens_mistral': 2909, 'n_tokens_neox': 2584, 'n_words': 358}