Hey, I've had this question for a LONG time. I've been searching the internet for tutorials/answers, but no results. What makes this frustrating for me is that I only see unrelated answers, or people putting videos on Youtube showing them testing 2D random world generation. And there's no tutorials?!
Well, sure, you could render a couple blocks in random places. But how to people achieve this rendering 100s, if not 1000s of blocks and the game run smoothly, no lag?! So my questoins are:
Exactly how are they randomly generated at all, and second, how are so many objects in a single class not causing lag? And third, how are they storing the block objects? ArrayLists or Arrays? If someone has the answer, I would love to know! Thanks in advance!