I'm curious, what are you using this code for in the end? Do you have a grid of entities that are used as the visible tiles in a bigger (let's say) var array?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends