So I’m making a game that uses blocks… I want to create an initial grid of blocks on the screen inside a grid container. as you move the grid container around, more blocks would be added dynamically to the grid… either to the left, right, or bottom.
What’s the best way to do this? What’s a good way to save memory for the blocks you can’t see on the screen?