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