A group of teenage gamers from Warrnambool in south-west Victoria has set a new world record for their marathon Mario Kart game.

Harry Twyford, James Hickman, Josh Alexander and Matt Smith spent 35 hours and 46 minutes glued to a television set and gaming consoles as they broke the Guinness World Record for "longest video game marathon playing a racing game".

The title was previously held by two German teenagers who played a racing game for 30 hours.

Harry, 17, said the team came up with the idea when they were bored one day.

"It was about six months ago, just a boring summer day. [We] got a Guinness book of records out, started reading and before you know it here we are," he said.

According to the official guidelines, only one person had to be playing at any one time and the team got a 10-minute break for every hour they played.

Harry said they chose to all play at once and he even decided to save up his breaks, at one stage playing 15 hours straight so he could have a well-earned sleep.

"I was one of two who stuck it out for as long as possible so we could have a little nap in the midnight hours. It actually really helped and we time-managed ourselves really well," he said.

He said the team put themselves through a gruelling training process.

The four (centre) celebrate with friends after breaking the record. ( Supplied: Harry Twyford )

"We had a little training session about a month ago. We made it about 10 hours before one of us threw up and the rest of us fell asleep," Harry said.

"So it wasn't much fun."

There was even a brief scare midway through the world record attempt.

"One of them jumped up and ran to the toilet but before you knew it he was back," he said.

Responding to criticism on Facebook about their achievement, Harry said the record took six months of hard work and planning to achieve.

"You may be thinking we're a bunch of slackers, bludgers and lazy students, when as a matter of fact this was an incredibly difficult thing to achieve which required assistance from copious amounts of individuals in the community," he said.

The team called in official witnesses to monitor the world record attempt, including Justices of Peace and even Warrnambool's mayor.

The world record attempt raised $500 for a local charity.