Commit d53304e0 authored by 9831111's avatar 9831111 🙂

Add calculate bullet method to find first shot point.

parent 660d635a
......@@ -338,21 +338,7 @@ public class GameFrame extends JFrame {
}
}
public boolean checkWallAdded(int currentX, int currentY) {
String str = currentX + " " + currentY;
for (Wall wall : walls) {
if (wall.toString().equals(str)) return false;
else return true;
}
return true;
}
public void getColor(int x, int y) throws AWTException {
Robot robot = new Robot();
System.out.println(robot.getPixelColor(x, y));
}
/**
* Draw prize randomly
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment