public static void main(String[] args) { List<Dungeon> dungeons = new ArrayList<Dungeon>(); dungeons.add(new Dungeon(1)); dungeons.add(new Dungeon(2)); dungeons.add(new Dungeon(3)); Game game = new Game(dungeons); game.start(); }
public static void main(final String[] args) { game = new Game(); game.frame.add(game); game.frame.setResizable(false); game.frame.setTitle(Game.title); game.frame.pack(); game.frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); game.frame.setLocationRelativeTo(null); game.frame.setVisible(true); game.start(); }