Skip to content
Snippets Groups Projects
Commit 620a9aed authored by Tamas Bunth's avatar Tamas Bunth
Browse files

trust me im an engineer

parent ad472445
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,6 @@ import view.ZPMView;
public class Controller {
private View view;
private GameController game;
private int colonelLife;
private int jaffaLife;
......@@ -107,15 +106,14 @@ public class Controller {
if(!initMap(mapPath))
{
System.err.println("Map with path " + mapPath + " has initialization problems");
// TODO it may be better to move on with level
// actualLvl--;
actualLvl--;
continue;
}
updateLifeSettings();
uploadMapDatas();
game = new GameController(view, InitController.map.length, InitController.map[0].length);
GameController game = new GameController(view, InitController.map.length, InitController.map[0].length);
game.startGameProcess();
//actualLvl++;
} catch (FileNotFoundException e) {
......
......@@ -62,7 +62,6 @@ class GameWindow extends JFrame implements KeyListener {
}
// TODO size of table
// currently the table fills the frame
JPanel mapPanel = new JPanel(new GridLayout(mapWidth, mapHeight));
for (ElementPanel[] elementPanels : elemPanels) {
for (ElementPanel elementPanel : elementPanels) {
......@@ -107,6 +106,7 @@ class GameWindow extends JFrame implements KeyListener {
public void setElement(int x, int y, ArrayList<ViewElement> viewElem) {
// TODO error check
// Sort ViewElements in order to draw images
// in the appropriate order.
if(viewElem != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment