Josh Gad has revealed he enjoyed trying to get a rise out of Navy SEALs in his new film, Pixels.

The Wedding Ringer funnyman gets to unleash his anger in one comedy scene, as he shouts at a group of burly servicemen.

“It was getting out a lot of aggression out of people who are much bigger and fitter than I am. I definitely did relish it, for sure,” he said.

“It was like, ‘I’ve been waiting years for this and now I have Sony security around me to protect me from you’. It was definitely fun, no holds barred.”

The 34-year-old comedian added: “The most fun in a scene like that is trying to make them break character, trying to make them laugh, so we have a lot of unusable parts because of that. They had to piece together a lot of that scene.

“This was one of those crazy, unhinged characters, when I read the script, I thought, ‘This is so stupid but this is so funny’. Chris Columbus just let me tear into it and have a blast.”

Father-of-two Josh, who has starred in Frozen, Jobs and The Internship, revealed how he had to familiarise himself with computer games for his new role.

The film, directed by Chris, stars Josh, Adam Sandler, Kevin James and Michelle Monaghan as video games champions who have to join forces to save the world from aliens, portrayed by popular arcade game characters such as Pac-Man and Donkey Kong.

“It’s funny because when I had my kids, I sort of retired my Xbox and PlayStation and was like, ‘I’m not going to play any more. It’s distracting me from this little thing called responsibility,” he explained.

Josh Gad is chased by Pac-ManJosh Gad gets chased by Pac-Man in Pixels (Sony Pictures)

“But in getting ready to do this film, I reintroduced myself to old-school arcade games and it’s fun. They’re simpler.

“Now I play some of these Batman: Arkham Asylum games and I’m literally in the middle of them, looking for a GPS to navigate my way through this world, let alone get to the next level or play a character. I’ve been left behind, I fear. I’m a relic of the past.”

Josh said his game-playing skills are on a par with his co-stars.

Michelle Monaghan, Adam Sandler, Josh Gad and Q*bertMichelle Monaghan, Adam Sandler, Josh Gad and Q*bert (Sony Pictures)

“I was born in 1981 so I was growing up in the tail end of the arcade movement and the introduction into home game consoles, so Nintendo was my gem,” he said.

“In terms of the older arcade games, Sandler, Kevin James and Michelle were definitely better than I was.”

Pixels is in cinemas now.