mirror of
https://github.com/Noratrieb/Java2DGame.git
synced 2026-01-14 22:15:01 +01:00
shooting works
This commit is contained in:
parent
0d5397dbe3
commit
e2483b30ff
8 changed files with 45 additions and 23 deletions
|
|
@ -3,6 +3,7 @@ package core;
|
|||
import objects.DebugPos;
|
||||
import objects.ships.BattleShip;
|
||||
import objects.GameObject;
|
||||
import objects.ships.Turret;
|
||||
import objects.world.Grid;
|
||||
|
||||
import javax.swing.*;
|
||||
|
|
@ -38,9 +39,9 @@ public class Master extends JPanel {
|
|||
|
||||
BattleShip battleShip = new BattleShip(Color.DARK_GRAY);
|
||||
BattleShip bs = new BattleShip(70, 10, 5, 80, Color.GREEN);
|
||||
/*for (int i = 0; i < 10; i++) {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
bs.addTurret(new Turret(bs, 25, 10 * i + 1, 50, i % 5));
|
||||
}*/
|
||||
}
|
||||
objects.add(bs);
|
||||
objects.add(battleShip);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue