Hi, I was wondering how I could go about adding collisions with the walls and a playable character in the maze. Would using the boolean[] blocked = { true, true, true, true } array be a good place to start? I am not very experienced with coding and the level of coding used in the maze is way above me.
@Wayne, you can have a 'canMove' method that can check to see if the player can move in the direction it is facing using:
return ((Cell)getOneIntersectingObject(Cell.class)).blocked[getRotation()/90] == false;
If you have issues with this, start a discussion thread instead of posting here.
A new version of this scenario was uploaded on 2018-01-30 19:28:17 UTC
A new version of this scenario was uploaded on 2018-01-30 19:29:00 UTC
@Heet_Patel, this one is just a demo that creates mazes using different parameters. It is not a game in itself. I am searching for the other one to update.
@Heet_Patel, you can start anywhere and end anywhere. No location is inaccessible from any other location. The green dots are just "tracers" used in building the maze. They hold information for a location until that location is confirmed to accessible in the final production of the maze.
2012/4/20
2012/10/21
2012/10/21
2012/10/21
2012/10/21
2017/5/22
2017/5/22
2018/1/30
2018/1/30
2018/1/30
2018/1/30
2018/2/7
2018/2/7
2018/2/7