mirror of
https://github.com/Noratrieb/Java2DGame.git
synced 2026-01-14 14:05:01 +01:00
coordinate stuff
This commit is contained in:
parent
fe9be921fa
commit
a332f3488c
2 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@ import java.util.ArrayList;
|
||||||
/**
|
/**
|
||||||
* A Battleship that can have several turrets
|
* A Battleship that can have several turrets
|
||||||
*/
|
*/
|
||||||
public class BattleShip extends CollGameObject {
|
public class BattleShip extends GameObject {
|
||||||
|
|
||||||
public static final double SPPED = 1;
|
public static final double SPPED = 1;
|
||||||
private static final double TURN_RATE = 0.05;
|
private static final double TURN_RATE = 0.05;
|
||||||
|
|
@ -31,7 +31,7 @@ public class BattleShip extends CollGameObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
public BattleShip(double x, double y, double xSize, double ySize, Color mainColor) {
|
public BattleShip(double x, double y, double xSize, double ySize, Color mainColor) {
|
||||||
super(x, y, xSize, ySize, new RectHitBox(new Vector2D(x, y), new Vector2D(xSize, ySize)));
|
super(x, y, xSize, ySize);
|
||||||
turrets = new ArrayList<>();
|
turrets = new ArrayList<>();
|
||||||
this.mainColor = mainColor;
|
this.mainColor = mainColor;
|
||||||
this.doesDespawn = false;
|
this.doesDespawn = false;
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue