For my first game (using Corona and in general), I made a simple infinite runner roughly following Corona’s “Getting Started Guide”.
One of its biggest problems is that of redundancy; I’m using the same background image for every menu/screen in the game, using code like this:
scene:create() ... background = display.newImageRect( ... ) end
And it works, but I’m having to do this for every scene, and that’s annoying (and messy). Is there a way to load the images in one place as a global and reference them from other files?