I am currently making a game for a school project.
I wanted to implement code in the constructor (myWorld), to spawn a specific object multiple times in a square / rectangle pattern with a 48 pixel gap between each object to construct my map automatically so that I don't have to write 2 lines of code for each instance of the object manually.
PLEASE tell me how I can do that and also maybe also how spawn objects in a line / array, because I've looked everywhere, but I can't seem to find any answers or maybe I'm just to stupid.
i hope danpost hears my cry for help
![Twitter](/assets/twitter-4e19209ef84344ee0c433f4c7bad8d49.png)
![Twitter.hover](/assets/twitter.hover-1fb19a5bafc50deace8f88eaec867845.png)