“Sonic the Hedgehog” shot to the top of the box office this weekend, opening to an estimated $57 million in domestic ticket sales — a somewhat unlikely success story for the film, an adaptation of a video game series about a little blue creature with a superhuman sprint.

The movie could easily have been a box-office disaster. Domestic moviegoers haven’t always been particularly kind to adaptations of video games; “Warcraft” and “Assassin’s Creed,” from 2016, and the more recent “Tomb Raider” reboot, all struggled at the box office. And the creators of “Sonic the Hedgehog” redesigned its digital title character, delaying the movie’s release, after audiences ridiculed an early trailer.

But “Sonic the Hedgehog,” distributed by Paramount Pictures and based on the Sega video-game character, has more than avoided catastrophe. It brought in an additional estimated $43 million overseas this weekend, according to the studio, bringing its global opening-weekend total to $100 million. The movie’s budget was reportedly $85 million.

Directed by Jeff Fowler, “Sonic the Hedgehog” pairs its blue, fur-covered hero (voiced by Ben Schwartz) with a human friend played by James Marsden, and pits them against a mustachioed villain played by Jim Carrey.