Added parallax background, ship, and firing. Collision is WIP
This commit is contained in:
parent
99797eec3e
commit
bb17e2233c
28 changed files with 588 additions and 150 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue