Hi guys,
So, I'm making a game where I have a tilemap. Basically a bunch of 32x32 images which are rendered into the screen in certain orders and positions. So far I create one sprite per tile (I re-use the images) and position it where it belongs. Then I move each sprite individually when I need to scroll. Performance-wise this doesn't affect the game (yet), but I wonder if there's a better way.
Normally what you do in this case is make a big image, and render the map into that image, and then instead of moving hundreds of small images on each update tick, you just move the big image. I tried investigating about this using AppGameKit but it seems this functionality is not easily supported.
At first I thought using
RenderToImage would help, but it only works with draw commands, so it was useless. Then I tried using memblocks too, but creating an image from a bigger one it's not as easy as just iterating over images and copy-pasting it's bytes. I think this could be done this way but I have zero idea about image manipulation in this way.
Is there an easier way to do it? Or has anyone done the hard work and implemented some kind of function which supports this behaviour?
Thanks in advance