Skip to content
Snippets Groups Projects
Commit c73ef75e authored by Enes Herguel's avatar Enes Herguel
Browse files

-1-

parent 0efe3554
No related branches found
No related tags found
No related merge requests found
File moved
...@@ -43,7 +43,7 @@ public class MapLoader { ...@@ -43,7 +43,7 @@ public class MapLoader {
for (int j = 0; j < height; j++) { for (int j = 0; j < height; j++) {
for (int i = 0; i < width; i++) { for (int i = 0; i < width; i++) {
SharedRessources.getInstance().getWallMatrix()[i + j * width] = SharedRessources.getInstance().getWallMatrix()[i + j * width] =
((BufferedImage) src).getRGB(i, j) == Color.white.getRGB(); ((BufferedImage) src).getRGB(i, j) == Color.black.getRGB();
} }
} }
} }
......
File moved
File moved
...@@ -24,7 +24,7 @@ public class MainWindow extends Game { ...@@ -24,7 +24,7 @@ public class MainWindow extends Game {
public void loadGame() { public void loadGame() {
SharedRessources.setMaximumCores(Integer.MAX_VALUE); SharedRessources.setMaximumCores(Integer.MAX_VALUE);
try { try {
MapLoader.getDefault().load(ImageIO.read(new File("c:/users/enesh/desktop/t.png"))); MapLoader.getDefault().load(ImageIO.read(new File("c:/users/enesh/desktop/tests/debug.png")));
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
...@@ -37,7 +37,7 @@ public class MainWindow extends Game { ...@@ -37,7 +37,7 @@ public class MainWindow extends Game {
public void updateGame() { public void updateGame() {
if (keys[KeyEvent.VK_ENTER]) if (keys[KeyEvent.VK_ENTER])
pts = parallelPathfinder.calculatePath(70, 26, 23, 24); pts = parallelPathfinder.calculatePath(10, 114, 33, 30);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment