Asylum – Dev Diary 15

Illness has struck, probably due to the continuous cold and wet weather here in the UK. So, my progress has been hampered.

Today I was looking around for some seamless textures and tiles for the various floorings I will need. However, I did find one bug that I wasn’t expecting. My swinging door (in fact any door type) failed to work if it was rotated 90 degrees. It was one of those gotchas that I wasn’t expecting. The bounding box of a sprite cannot be used for click detection on a rotated sprite because it doesn’t take into consideration the sprites rotation angle. So, I had to investigate other options and ended up using a simple point collision between the wall and the mouse location.