我想在點擊一個按鈕
@Override
public void render() {
SpriteBatch batch = new SpriteBatch();
batch.begin();
batch.draw(gemTexture, 10, 10, 100, 100);
batch.end();
if (Gdx.input.isTouched()) {
rotateRight();
}
}本身旋轉此SpriteBatch
private void rotateRight() {
// How do I rotate it to look like
}
類似的東西? http://stackoverflow.com/questions/9445035/rotate-image-clockwise-using-libgdx – Robb