destroyed things

This commit is contained in:
nora 2020-12-13 16:55:19 +01:00
parent 435de55eb1
commit 4fb5bcc543
14 changed files with 61 additions and 18 deletions

View file

@ -3,6 +3,7 @@ package objects.ships;
import core.math.Vector2D;
import core.physics.hitboxes.RectHitBox;
import objects.core.CollGameObject;
import objects.core.GameObject;
import java.awt.*;
@ -10,11 +11,11 @@ import java.awt.*;
* A shell fired by a cannon
*/
//TODO why tf do shells not use map coords...
public class Shell extends CollGameObject {
public class Shell extends GameObject {
public Shell(Vector2D position, Vector2D size, Vector2D velocity) {
super(position, size, new RectHitBox(position, size));
super(position, size/*, new RectHitBox(position, size)*/);
this.velocity = velocity;
}