@Corona/all - really need some good advice re how to finish off a game I’m 90% through - a horizontal sliding game that was originally only going to be 2 screens wide, however now I am going 3-4 screens wide and 2 screens deep. Started off doing a full background image (png) in photoshop for each background (which had sky + ground that forms tunnels for player). Very nice & easy as:(a) your develop the whole background (e.g. say 3 screens wide worth) in one hit in photoshop, (b) the overlay pieces (ground, walls etc) being positioned there in the one image, and © can input the ground (less background) image into Physics Editor to create the physics boundaries. So obvious issues with this approach now are:
a) texture size of the largish background images
b) amount of file space in application with separate background image for each level (x3 for resolutions)
So I need some help/clarification around having to transition what I have to something better. Any advice/direction would be appreciated. Here are some specific questions:
Q1 - Assume I should have one background image only in the whole app, and then overlay with smaller images that form the walls/ground etc?
Q2 - Re Background Image - Should this best be one large image, then you render the same image multiple times, enough to paint the current screen + the next one the player is walking into?
Q3 - Corona & Off Screen Culling - Does corona now automatically handle managing texture memory such that off screen display objects (images or sprites) won’t take up textureMemory? In other words specifically:
Q4 - For a repeating image or sprite (that is already rendered on current screen) can these be created (separate instances) in all off-screen portions of the level as well, knowing that corona will ensure there is NOT a memory overhead?
Q5 - Same as Q4, however this time in the case that you have images off screen that aren’t currently rendered on screen. In this case can I create this (as sprite or image) knowing Corona will manage?
Q6 - So if the answers for Q4 & Q5 are Yes, then this implies the basic principle is (a) break images down in to pieces, and (b) reuse same images as much as possible, and © don’t worry about managing when to create a display object (image/sprite) just create it up front for the level and corona will manage
Q7 - If answers to either Q4 & Q5 are no then this implies you need to manually manage when to create/remove your various display objects yourself then? So you need to manually track where the player is relative to the width of the level (e.g. 4 screens wide) and then decide when to create/remove?
Q8 - Re Q7 is there any existing shared code that implements such a solution?
Q9 - Re Q7 - Any software/photoshop addon’s that make it easy to create an overall level (4 screens wide) in one PSD file in layers, and then break it out into pieces (per layer) but in a manner in which the position of the pieces can be written to file (ideally LUA file) to be used in the corona code?