Open eric-hedengren opened 3 years ago
Could this be done by initiating the redrawing in the update function? This would allow for the buttons to be created and handled as sprites which would largely enhance performance.
Dynamic length boxes would need the initial surfaces redefined in the update command if the function length surpassed the rectangle surrounding it.
As of now, clearing words in the text boxes happens because the entire screen is set to white then the words are put back in position. An alternative method should used so performance is not capped off, such as blanking out just the section with the buttons or creating the buttons as sprites.