6

Not the most exciting bug i solved but i was very happy when i solved it!

we were working on a java game for a school project. Te game itself consists of a maze so we used a double array maze[][] to store all the Tiles of the maze. to move players around we used x and y coordinates. When we started playing we couldn't figure out why we could move through walls and go in weird directions. and finally it hit me,

java uses [y][x] , and mathematics uses (x,y)

Comments
  • 2
    we did eventually get 17/20 on this project. was pretty stoked about it, and it convinced me to build an android game on my own
  • 1
    I always draw a vertical line of boxes each containing an array, to remind myself of this 😂
Add Comment