In Java programming a game like with maze like structure. How do we check collision with wall? Anyone who knows how the wall object work? Many thanks--Petranilla
Petranilla
0
Light Poster
Recommended Answers
Jump to Post######## ## ### # # ## P# ########
suppose '#' denote the walls in a maze and 'P' is a player and ' ' are free ways to move..if charAt(x-coord,y-coord)=='#'..it's a collision, you cannot move..if charAt(x-coord,y-coord)==' ', it's a free space where you can move
All 4 Replies
cool_zephyr
7
Junior Poster in Training
Petranilla
0
Light Poster
cool_zephyr
7
Junior Poster in Training
Petranilla
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.