Added parallax background, ship, and firing. Collision is WIP

This commit is contained in:
Gnarly Narwhal 2019-08-24 18:49:52 -07:00 committed by Gnarwhal
parent 99797eec3e
commit bb17e2233c
Signed by: Gnarwhal
GPG key ID: 0989A73D8C421174
28 changed files with 588 additions and 150 deletions

View file

@ -53,7 +53,11 @@ public class Rect {
public float getY() {
return position.y;
}
public Vector2f getPosition() {
return new Vector2f(position.x, position.y);
}
public float getWidth() {
return width;
}
@ -61,6 +65,10 @@ public class Rect {
public float getHeight() {
return height;
}
public Vector2f getDimensions() {
return new Vector2f(width, height);
}
public void setX(float x) {
position.x = x;