Correct way to create a large platformer background
i'm intending to create a platformer with a background size of 4096px, i've read that the maximum size of an image allowed is 1024x1024, so i went looking for options and find that i can make some tiles (like 10) to represent the different kind of terrain, for example
|___
____
__---
---__
and tile them to create something like this:
|___________------___------____________________-----____|____
i use multiple instance of each tile, does it allocate memory for each instance so i use (~0.5MB x 15) or does it use the memory only for each prototype (~0.5MB x 4).
Or should i just use 4 1024x1024 images (~3MB x 4).
|___
____
__---
---__
and tile them to create something like this:
|___________------___------____________________-----____|____
i use multiple instance of each tile, does it allocate memory for each instance so i use (~0.5MB x 15) or does it use the memory only for each prototype (~0.5MB x 4).
Or should i just use 4 1024x1024 images (~3MB x 4).