The final problem with adding the walls, as can be seen in the above image, is blocking off the path from top to bottom. In order to make sure this doesn't happen, we check the last block being placed in each row and check if it is going to block off the route. If it is, simply don't allow a block to be placed, which gives us our final result:
A dynamic wall generator with a few concrete rules specified by this version of the Decision Tree:
No comments:
Post a Comment