Refactored GameRenderer2D.