mirror of
https://github.com/Noratrieb/Java2DGame.git
synced 2026-01-14 22:15:01 +01:00
start physics
This commit is contained in:
parent
35c47c50b8
commit
843d30eb47
9 changed files with 61 additions and 2 deletions
|
|
@ -3,8 +3,10 @@ package core;
|
|||
import objects.DebugPos;
|
||||
import objects.ships.BattleShip;
|
||||
import objects.GameObject;
|
||||
import objects.ships.Submarine;
|
||||
import objects.ships.Turret;
|
||||
import objects.world.Grid;
|
||||
import objects.world.Wall;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
|
@ -44,6 +46,9 @@ public class Master extends JPanel {
|
|||
}
|
||||
objects.add(bs);
|
||||
objects.add(battleShip);
|
||||
|
||||
objects.add(new Submarine(new Vector2D(), new Vector2D(20, 20)));
|
||||
objects.add(new Wall(20, 80, 50, 2));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue