Instead of feeling bitter, Mr Bakhit decided to engage in an education campaign.

“I realised that you fight extremism by starting with the young. The message was simple – ‘We are not all terrorists'”, he told the BBC.

Armed with a not-so-magic carpet, he began telling Aladdin-style stories in local schools.

“One day a child asked me if there was an Arab superman and I realised that there wasn’t,” he said.

So began his comic-book project which aimed to create a range of positive Arab role-models, including a female James Bond and a Jordanian special agent who fights extremists.

In Jordan, Mr Bakhit has sold 300,000 copies of his comics and came to realise that there was a market for a web-based version. “Print media is dying but there are 30 million Arabs on Facebook so I thought about making social games with the same message,” he said.

Mr Bakhit wanted to make sure that his characters related to the children he was aiming to reach.

His comics were a huge hit in Jordan “I took a peer-to-peer approach, engaging kids to get their ideas,” he said.

He was undecided about whether to include a character dressed in a burka until he showed the animated character to a focus group. “They loved the idea so she was in,” he said.

The first game featured special agent Element O and while it was, in Mr Bakhit’s words “not very good”, it did show him the potential of such a project. “Fans were discussing the games in the forums and arguing about politics. I went on as Element O and the arguments immediately stopped,” he said.

Mr Bakhit said he now hopes to take his comic book model to Pakistan, where extremism is a growing problem.