avec le mp3 ça devrait mieux marcher...

This commit is contained in:
heurtet 2021-05-14 15:00:17 +02:00
parent 4856b3aa03
commit 82f8eeb13c
2 changed files with 9 additions and 0 deletions

Binary file not shown.

View file

@ -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> 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();
}
}