diff --git a/core/assets/sounds/effects/clickbutton.mp3 b/core/assets/sounds/effects/clickbutton.mp3 new file mode 100644 index 0000000..9090b06 Binary files /dev/null and b/core/assets/sounds/effects/clickbutton.mp3 differ diff --git a/core/src/sagittarius/model/Player.java b/core/src/sagittarius/model/Player.java index cbfcfe5..3dee353 100644 --- a/core/src/sagittarius/model/Player.java +++ b/core/src/sagittarius/model/Player.java @@ -11,6 +11,9 @@ import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.math.MathUtils; +import com.badlogic.gdx.audio.Sound; + +import sagittarius.SagittariusGame; public class Player extends EntityQuad { @@ -21,6 +24,7 @@ public class Player extends EntityQuad { private ArrayList texture; private int T = 0; + // ---------- CONSTRUCTORs ---------- public Player(Planet home, Color color) { @@ -89,10 +93,15 @@ public class Player extends EntityQuad { if (active) { if (Gdx.input.isKeyPressed(Keys.LEFT)) { + this.angle += 100.0f / home.getRadius(); + + } if (Gdx.input.isKeyPressed(Keys.RIGHT)) { this.angle -= 100.0f / home.getRadius(); + + } }