I have a 3x3 array which holds various templates for some level data:
The array just holds integers to represent wall, floor etc. which are copied into my level map.
Before I copy the data into my level, I want to rotate it in increments of 90 degrees. I'm pretty sure there is a simple way of doing this but my maths is a little rusty.
Does anyone know how to do this?
block[3, 3]
The array just holds integers to represent wall, floor etc. which are copied into my level map.
Before I copy the data into my level, I want to rotate it in increments of 90 degrees. I'm pretty sure there is a simple way of doing this but my maths is a little rusty.
Does anyone know how to do this?