David Villa: “What’s important is that the team came out playing energized.” (Gary A. Vasquez/USA TODAY Sports)

LOS ANGELES — After absorbing a 4-0 shellacking by the Red Bulls last week, New York City FC needed to bounce back in a big way.

Well, City did not get the full three points, but it played well enough to record a wild 2-2 tie at the Los Angeles Football Club Sunday.

“It’s been a difficult week after everything that happened the other day with the Red Bulls,” said NYCFC captain David Villa, who converted a first-half penalty kick. “The team reacted well after a difficult week. We are trying to forget what happened there every day, but it’s always going to be complicated.

“But what’s important is that the team came out playing energized and has had moments in the game where it has stepped in and taken its place on the field. It’s important for us to get this point.”

NYCFC has avoided losing consecutive MLS regular-season games since April 2016.

The team also hasn’t lost three consecutive road matches under head coach Patrick Vieira since he took over the coaching reins in 2016.

“The game was difficult,” Villa said. “We played against a good team. I think good soccer was played between both teams – there was a lot of intensity and at the end of the game, I think we saw what both teams were capable of on the field.”

City will host the Colorado Rapids, who are coming off a 2-1 home loss to the Red Bulls, at Yankee Stadium Saturday at 1 p.m.