There is currently one canvas that gets redrawn every time the screen updates. Instead, consider creating two canvases: one that is cleared every update before having the sprites drawn on it, and one that sits underneath and is only redrawn when the user transitions screens. This idea could be extended to a third canvas for the HUD.
There is currently one canvas that gets redrawn every time the screen updates. Instead, consider creating two canvases: one that is cleared every update before having the sprites drawn on it, and one that sits underneath and is only redrawn when the user transitions screens. This idea could be extended to a third canvas for the HUD.