def render(): ... # ball draw_rectangle( ball_coordinates[0] - BALL_SIZE // 2, ball_coordinates[1] - BALL_SIZE // 2, ball_coordinates[0] + BALL_SIZE // 2, ball_coordinates[1] + BALL_SIZE // 2)