I am creating my very first game project, but I have no idea how to actually start the code for the boundaries. The game is pretty much an ordinary kid maze game which you are suppose to find your way from point A or point B. Right now I have 2 ideas on how to set the boundaries:1: (If Java is smart enough), where ever there is black (the boundaries), the person cannot go past it. EASY WAY2: Figure out the coordinates for all of the black lines and do not allow the person to go past any of it. HARD WAY

For maze games, you might want to force the character to follow a very direct path instead of using the walls to determine boundaries. There are plenty of ways to do it, but some of the easiest ways I saw this implemented was a tile based system in where each tile has 4 walls representing North, South, East, and West. By having it tile based, even if the movement is crude, you can avoid having to worry about collision detection altogether by having each movement controlled by the position of the character, rather than the position off the objects.

Other than that, AABB collision methods are usually the way to go when it comes to pixel perfect movements like the above poster pointed out.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org