mirror of
https://github.com/Noratrieb/Java2DGame.git
synced 2026-01-14 22:15:01 +01:00
destroyed things
This commit is contained in:
parent
435de55eb1
commit
4fb5bcc543
14 changed files with 61 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue