Back to project page bbg-gdx-project-setup.
The source code is released under:
MIT License
If you think the Android project bbg-gdx-project-setup listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.bluebananagames.gametemplate.game; /* w w w . j ava 2s .c om*/ import com.badlogic.gdx.math.Vector2; import com.bluebananagames.gametemplate.input.InputHandler; public class Player { public static float HORIZONTAL_SPEED = 100; private Vector2 position = new Vector2(); private InputHandler inputHandler; private PlayerColor color; public Vector2 getPosition() { return position; } public void setPosition(float x, float y) { this.position.set(x, y); } public void setX(float x) { position.x = x; } public void setY(float y) { position.y = y; } public InputHandler getInputHandler() { return inputHandler; } public void setInputHandler(InputHandler inputHandler) { this.inputHandler = inputHandler; } public PlayerColor getColor() { return color; } public void setColor(PlayerColor color) { this.color = color; } }