<commit_before>package com.mcprog.ragnar.gui;

import com.badlogic.gdx.Application.ApplicationType;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;
import com.badlogic.gdx.math.Vector3;
import com.badlogic.gdx.Gdx;
import com.mcprog.ragnar.world.Player;

public class MobileControls {
	
	private boolean isMobile;
	private ShapeRenderer controlRenderer;
	
	public MobileControls() {
		isMobile = Gdx.app.getType().equals(ApplicationType.Android) || Gdx.app.getType().equals(ApplicationType.iOS);
		controlRenderer = new ShapeRenderer();
	}
	
	public void update (float delta) {
		if (!isMobile) {
			return;
		}
		handleInput();
	}

	private void handleInput() {
		if (Gdx.input.isTouched()) {
			drawMobileControls();
		}
		
	}

	private void drawMobileControls() {
		Vector3 fixedTouchCoords = Player.touchCoords;
		controlRenderer.begin(ShapeType.Filled);
		controlRenderer.setColor(1, 1, 1, .25f);
		controlRenderer.circle(fixedTouchCoords.x + 50, (Gdx.graphics.getHeight() - fixedTouchCoords.y) + 50, 100, 36);
		controlRenderer.end();
		
	}

}
<commit_msg>added blending to mobile controls<commit_after>package com.mcprog.ragnar.gui;

import com.badlogic.gdx.Application.ApplicationType;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;
import com.badlogic.gdx.math.Vector3;
import com.badlogic.gdx.Gdx;
import com.mcprog.ragnar.world.Player;

public class MobileControls {
	
	private boolean isMobile;
	private ShapeRenderer controlRenderer;
	
	public MobileControls() {
		isMobile = Gdx.app.getType().equals(ApplicationType.Android) || Gdx.app.getType().equals(ApplicationType.iOS);
		controlRenderer = new ShapeRenderer();
	}
	
	public void update (float delta) {
		if (!isMobile) {
			return;
		}
		handleInput();
	}

	private void handleInput() {
		if (Gdx.input.isTouched()) {
			drawMobileControls();
		}
		
	}

	private void drawMobileControls() {
		Gdx.gl.glEnable(GL20.GL_BLEND);
		Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA);
		Vector3 fixedTouchCoords = Player.touchCoords;
		controlRenderer.begin(ShapeType.Filled);
		controlRenderer.setColor(1, 1, 1, .1f);
		controlRenderer.circle(fixedTouchCoords.x + 50, (Gdx.graphics.getHeight() - fixedTouchCoords.y) + 50, 100, 36);
		controlRenderer.end();
		Gdx.gl.glDisable(GL20.GL_BLEND);
	}

}

{'fraction_non_alphanumeric': 0.12449310624493107, 'fraction_numerical': 0.01662611516626115, 'mean_word_length': 4.930288461538462, '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': '6980858', 'n_tokens_mistral': 945, 'n_tokens_neox': 837, 'n_words': 140}