changed viewport.centerX and viewport.centerY to viewport.translation.x and viewport.translation.y respectively