mirror of
https://github.com/Noratrieb/Java2DGame.git
synced 2026-01-15 06:25:02 +01:00
organized things
This commit is contained in:
parent
8cd6b71fd0
commit
9502ea97b8
11 changed files with 119 additions and 107 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package objects.ships;
|
||||
|
||||
import core.general.Input;
|
||||
import core.math.Coords;
|
||||
import core.math.ExMath;
|
||||
import core.math.Vector2D;
|
||||
|
|
@ -94,7 +95,7 @@ public class Turret extends GameObject {
|
|||
|
||||
Vector2D spawnPosNR = battleShip.getMapCoords(new Vector2D(barrelX, frontPosY));
|
||||
|
||||
if (master.isMousePressed()) {
|
||||
if (Input.isMousePressed()) {
|
||||
lastShot = System.currentTimeMillis();
|
||||
|
||||
Vector2D shellVel = Vector2D.getUnitVector(rotation).negative().multiply(SHELL_SPEED);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue