package net.mueller_martin.turirun.gameobjects;

import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer.ShapeType;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.Color;

/**
 * Created by DM on 06.11.15.
 */
public class GameObject {
	public Vector2 position;
	public Vector2 size;
	public Rectangle bounds;
	public int id = 0;

	private ShapeRenderer shapeRenderer;

	public GameObject (float x, float y, float width, float height) {
		this.position = new Vector2(x, y);
		this.size = new Vector2(width, height);
		this.bounds = new Rectangle(x - width / 2, y - height / 2, width, height);

		this.shapeRenderer = new ShapeRenderer();
	}

	public void update()
	{
		System.out.print("Player Position: " + position.x + ", " + position.y);
	}

	public void draw(SpriteBatch batch) {
		batch.begin();
		shapeRenderer.begin(ShapeType.Filled);
		shapeRenderer.setColor(Color.BLUE);
		shapeRenderer.rect(this.position.x, this.position.y, this.size.x, this.size.y);
		shapeRenderer.end();
		batch.end();
	}

}

@@ -832,82 +832,8 @@
 %0A%09%7B%0A
-%09%09System.out.print(%22Player Position: %22 + position.x + %22, %22 + position.y);%0A
 %09%7D%0A%0A

Delete Debug Output