#100DaysOfCode#100DaysOfGameDevArtworkAsepriteC#CodingGame DevIllogical BaconPanic RoomScript-writingUnityVisual Studio

Exterior Doors Added

D43 #PanicRoom
R2D13 #100DaysOfCode
R2D08 #100DaysOfGameDev

the fixed wall intersection

I found a small bug where walls weren’t displayed properly when a vertical left-side wall meets a horizontal top-side wall. There would be a 1 grid unit gap that looked out of place. With a code fix, I was able to instantiate an extra piece of wall and half-shift it over to cover the opening. This gets all wall intersection to appear as they are supposed to.

code to add an extra wall piece where needed

I then created some basic closed-door sprites that I could use in the game to place where they are needed, at the ends of the open hallways. The code for this took me some time to get down, but the finished result is perfectly-placed exterior doors just where I need them. I created a new function called PlaceDoor that will make this easy to use again by calling it whenever I want.

doors placed in horizontal and vertical exterior positions

Leave a Reply

Your email address will not be published. Required fields are marked *