ACotGK: Area Generation Bug

Published August 23, 2021
Advertisement

Check out this interesting bug in Accursed Crown of the Giant King. As part of generating some levels, I create a structure with some stairs in the middle. Working on something else, I noticed that in some circumstances, the stairs would get a wall created right in front of them! See this screenshot:

See the little nub of wall in front of the stairs.

Note that in this screenshot, the bug is the little half-wall in front of the stairs. In this case there is actually space for the player to get through the wall to the stairs, but with the bug, it is possible to completely block the stairs. There is also a full-wall in front of the stairs that is not a bug, but rather a secret door. Ignore that for now.

This bug happened because I created the structure just a little larger than usual, to match the rest of the level. Then, in this case, I failed to clear out enough of the wall in front of the stairs. The fix is easy enough; just extend the clear space by a couple of squares (depending on the size of the structure):

No more wall.

All fixed! Almost a one-liner, but took awhile to figure out just what the problem was.

Previous Entry Is This Thing On?
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement