LOS ANGELES (AP) - “Captain America” has found a worthy competitor in a bunch of flightless birds. “The Angry Birds Movie” soared to $39 million in its debut weekend, knocking “Captain America: Civil War” off its first-place perch, while new adult comedies “Neighbors 2” and the “The Nice Guys” struggled to get their footing, according to comScore estimates Sunday.

Rovio Animation spearheaded the production of “The Angry Birds Movie,” which cost around $73 million to make, and it opened strong internationally last weekend. The film has already earned $150 million worldwide, according to estimates from Sony, which is distributing the film.

“The Angry Birds Movie” features the voices of Jason Sudeikis, Josh Gad and Danny McBride and has received mixed reviews from critics in its attempt to create a compelling story out of a fairly simplistic app-based game. But audiences under 25 gave the film an A CinemaScore, which should help the film continue to perform well over Memorial Day weekend.

“It’s very difficult turning a video-game property into a successful movie,” said Josh Greenstein, Sony’s president of worldwide marketing and distribution. “To use a bad pun, we are flying high.”

Video-game adaptations have not had the best track record, but comScore’s Senior Media Analyst Paul Dergarabedian notes that the success of “Angry Birds” likely has more to do with its family appeal and ingrained brand recognition.

“Families are always looking for out-of-the-home content,” Dergarabedian said, noting also that this is the latest in a string of very successful PG-rated films including “The Jungle Book” and “Zootopia.”

“PG is the hot new rating now. There used to be a stigma that younger teens wouldn’t be interested,” he said. “The numbers prove that when you go after the broadest base possible, you can be highly successful.”

The PG-13 rated “Captain America: Civil War” wasn’t too far behind, earning an additional $33.1 million this weekend for a second-place spot, which brings its domestic total to $347.4 million. And, even in its third weekend in theaters, the superhero proved mightier than a fresh batch of R-rated comedies, “Neighbors 2: Sorority Rising” and “The Nice Guys,” both of which underwhelmed in their debuts.

“Neighbors 2” brought in only $21.8 million - less than half of the first film’s $49 million opening in 2014. But the film from director Nick Stoller also cost only $35 million to make.

“We’re really proud of ‘Neighbors 2’,” said Nick Carpou, Universal’s President of Domestic Distribution. “We’re not just out there trying to go to the bank on something. It really is a different take.”

Stars Seth Rogen, Rose Byrne and Zac Efron all returned for the sequel, which puts a new spin on the frat next door idea by having the young family’s new neighbors be a sorority comprised of girls upset about the unequal rules for fraternities and sororities.

The R-rated 70s-set buddy comedy “The Nice Guys,” meanwhile, grossed $11.3 million for a fourth-place spot. Warner Bros. handled the domestic distribution for the Shane Black-directed film, which stars Ryan Gosling and Russell Crowe. It has been very well-received by critics, but it seemed to fly under the radar on this crowded weekend.

While the comedy openings might be less than hoped for, both could still provide decent counterprogramming to the spectacle-driven films opening on Memorial Day weekend, when mega productions “X-Men: Apocalypse,” which made $103.3 million internationally this weekend, and “Alice Through the Looking Glass” take over.

Estimated ticket sales for Friday through Sunday at U.S. and Canadian theaters, according to comScore. Where available, the latest international numbers for Friday through Sunday are also included. Final domestic figures will be released Monday.

Estimated ticket sales for Friday through Sunday at international theaters (excluding the U.S. and Canada), according to comScore:

1. “X-Men: Apocalypse,” $103.3 million.

2. “The Angry Birds Movie,” $55.5 million.

3. “Captain America: Civil War,” $30.7 million.

4. “The Wailing,” $11.1 million.

5. “The Divergent Series: Allegiant,” $11 million.

6. “The Jungle Book,” $7.4 million.

7. “Neighbors 2: Sorority Rising,” $6 million.

8. “Zootopia,” $4.7 million.

9. “Night Peacock,” $3.9 million.

10. “Money Monster,” $2.8 million.

___

Universal and Focus are owned by NBC Universal, a unit of Comcast Corp.; Sony, Columbia, Sony Screen Gems and Sony Pictures Classics are units of Sony Corp.; Paramount is owned by Viacom Inc.; Disney, Pixar and Marvel are owned by The Walt Disney Co.; Miramax is owned by Filmyard Holdings LLC; 20th Century Fox and Fox Searchlight are owned by 21st Century Fox; Warner Bros. and New Line are units of Time Warner Inc.; MGM is owned by a group of former creditors including Highland Capital, Anchorage Advisors and Carl Icahn; Lionsgate is owned by Lions Gate Entertainment Corp.; IFC is owned by AMC Networks Inc.; Rogue is owned by Relativity Media LLC.