I’m adding a sideways one-way scrolling background to my game. The graphics will change as the scrolling progresses.
My plan is to use two large identical bitmaps side by side that “loop” and then replace them when needed.
In terms of performance, which of these methods are best?
a) Use a factory to create and unload bitmaps on the fly.
b) Create all bitmaps in the IDE and disable/enable them with code as needed.
I’m new to Defold, so do let me know if there are better ways to create a scrolling background!