The San Marcos High boys’ basketball team played one of its best games of the season when it needed it the most. The Royals stunned rival Santa Barbara and punched their ticket to the playoffs with a 61-50 victory on Friday afternoon at the Thunderhut.