Oliver Edis

How Amakin Built a Winning AR City Game in Rabat with ViroReact

How Amakin built a winning AR city game: an augmented reality time portal outside the Kasbah of the Oudayas in Rabat, beside Amakin's mission screen on iPhone

Reda Beggari had one week, one phone and one idea: turn his city into a game. The result was Amakin: City Game, a location-based AR game that opens time portals at Rabat's landmarks. It won the Grand Winner prize and the Best Geospatial AR award at Ctrl+Space, the hackathon run by ReactVision and Expo. Here is how a solo developer used ViroReact and Expo to build something the judges called "polished and near releasable".

Who is behind Amakin?

Reda is an entrepreneur and software engineer from Rabat, with more than 14 years of building software in Morocco and France. He founded his company, NEXDIGIX, to offer AI and software consulting, "but above all to build something of my own."

"Making a game is a childhood dream," he says. "A game is more than an app. It's a work of art, made of a story, visuals, sound, and a piece of yourself."

Head-and-shoulders portrait of Reda Beggari in a dark navy shirt against a light background.
Reda Beggari, founder of NEXDIGIX and creator of Amakin.

Ctrl+Space came at the right moment. "It was the perfect reason to create a new game at the Kasbah of the Oudayas, with a brand-new codebase," Reda says. "As the rules ask, my entry disclosed what came before."

Amakin brings tourism, gaming and culture together in Morocco, Africa's most visited country in 2025, with nearly 20 million visitors that year and continued growth in 2026. "SMIT Morocco (Tourism Engineering and Investment) believed in the project and chose to support it," he adds.

The challenge: making heritage something you live

Rabat packs two thousand years of history into a few kilometres: the ancient ruins of the Chellah, the Kasbah of the Oudayas, the Hassan Tower and the medina, all part of a UNESCO World Heritage Site since 2012. Reda wanted people to experience those places, not just read about them.

"A guidebook tells you about a place; a game gives you a reason to go there, and to come back," he explains. "People protect what they love, and they love what they have lived."

That meant the game had to happen in the real city. "Most games ask you to look away from the world; Amakin asks you to look at it." It also had to be built fast, by one person, during the Ctrl+Space build week.

Amakin's story screen on iPhone, with the golden portal emblem above the game's story text and an Enter button.
The story screen sets the goal: cross the portal, solve what waits there, find the key and close it behind you.

The solution: portals, 360° worlds and physics with ViroReact

Amakin turns the city into an adventure played on foot. Time portals open at landmarks and meaningful places, and crossing one reveals the heritage behind it. It is built for locals who want to see their city with new eyes and for visitors who want more than a tour.

The core came together quickly. "It started with a portal and a 360° scene," Reda says. "Then came the surprise: objects inside could fall, roll and collide like real ones, and players could grab and build with them. I knew I had my game: a portal, a place all around you, and a puzzle you solve with your hands."

Under the hood, Amakin uses:

  • ViroPortal and an inward-facing ViroSphere for the walk-through portals and 360° worlds
  • GLB models, physics and particles for the puzzles inside each portal
  • Light estimation to read the player's surroundings
  • Expo for a single codebase, with custom Swift modules through the Expo Modules API, haptics on every part that snaps into place, and EAS for builds, over-the-air updates and monitoring with EAS Observe
Mission screen for the Kasbah of the Oudayas showing a 10-minute, medium-difficulty on-site mission, a short briefing and five steps under How it plays, with a Find the portal button.
A mission briefing at the Kasbah of the Oudayas, played on site.
A 3D riad courtyard inside the portal with brass gears and a water machine, and the objective Bring the water back to the fountain.
Inside the portal, repair the riad's water machine...
A misty riad courtyard with a fountain and lanterns, and the objective to find the key hidden in the mist with a gold canister.
...then find the key hidden in the mist.

One standout idea came from anamorphosis, the old art of images that only appear from a single point of view. In Amakin it became the seal that closes each portal, which players find by moving through real space. "That's what no flat screen can do: make the real world part of the challenge."

Reda builds with AI tools at every step. Claude Code is his coding agent, and ReactVision's ViroReact MCP server checks every component. Screens, artwork, 3D models and 360° worlds are produced with a mix of design, image and Blender MCP tools, with a backend built on API Platform, PostgreSQL and Docker.

Golden points float in a misty 360-degree riad scene and line up into the outline of a key, with the instruction to find the one spot where the points form the key.
The anamorphic key only takes shape from one spot, so players have to move to find it.

Solving the hardest problem: the dark

The trickiest issue wasn't on screen. On iPhone, ARKit tracking weakens in low light, and a drifting portal breaks the game. Because ViroReact already estimates the light around the player, Reda wrote a native Swift module with the Expo Modules API that switches on the torch when light gets too low. To check whether it is still dark with the torch on, the game turns it off for under a second, measures the real light and turns it back on if needed. The torch button only appears in the dark, and players can always take over.

The results

Amakin won Grand Winner and Best Geospatial AR at Ctrl+Space. The judges were clear about why.

"One of the most complete uses of Portals I've seen someone share," one judge wrote. "I loved how they were utilised within this game... the overall app felt very polished and near releasable. Technically speaking, ViroReact's implementation here is excellent."

Passage closed screen for the Kasbah of the Oudayas showing a time of 0:52, first place on the board and a star rating.
Closing the passage earns a time and a place on the leaderboard...
Protected screen with a Kasbah of the Oudayas postcard added to the album, a relic called The water machine and Hassan Tower as the next stop on the route.
...and a postcard for the album.

Another praised the smooth interaction after entering the portal and details such as sound, and suggested moving navigation to Expo Router or React Navigation. Reda already had that on his list, and the latest version is built on Expo Router. Since the win he has also added a home-screen widget showing the day's portal and the player's streak, a Live Activity that follows each crossing in the Dynamic Island and on the Lock Screen, analytics with EAS Observe and PostHog, and a shader that brings the sea to life in a daily portal's 360° view.

Support has come from outside the competition too. SMIT Morocco (Tourism Engineering and Investment) chose to back the project, and the waitlist for the public beta is now live at amakin.ma.

"That's what a competition like Ctrl+Space gives you beyond the win: advice from the people who build ViroReact and Expo," Reda says. "It's what I value most."

What's next for Amakin

A public beta is coming soon on iPhone, followed by Android. Its first players will help shape new features and missions. The story never names a city, so Amakin can open anywhere, in Morocco and beyond.

The amakin.ma home page with the headline Time portals are hidden in the city, a Join the waitlist button, the Ctrl+Space winner badge and the SMIT Morocco Supported by logo.
amakin.ma, where players can join the waitlist for the public beta.

On the technical side, Reda plans to add geospatial anchors to pin each portal to real-world coordinates, recorded environments in ReactVision Spatial to test scenes from his desk, and co-location so two players in the same place can share a portal. Through Amakin Studio, his B2B arm, brands, destinations and events will be able to open time portals of their own. With ViroReact 3 running on Meta Quest, Vision Pro and the web, he also sees a link that opens a portal for a campaign, and AR glasses as "the natural home of a game played on foot."

Advice for developers building AR with React Native

"Start from a need, not from the technology," Reda says. "AR is worth it when it gives people something a screen alone can't, like stepping through a portal into another place." His other lesson: "with React Native and an AI agent, one developer can now ship what used to take a studio. Then put it in people's hands as soon as you can."

Join the Amakin waitlist and find Amakin's social channels at amakin.ma, and follow Reda on LinkedIn and NEXDIGIX at nexdigix.com.

Amakin logo, a golden portal ringNEXDIGIX logo, a navy N with coral accents

For the short version, see the Amakin case study on our Use Cases page.

Build your own with ReactVision

Amakin shows what one developer can ship with ViroReact: portals, 360° worlds, physics and light estimation from a single React Native codebase. Get started with ViroReact, use the ViroReact MCP server to build with your AI coding agent, and explore ReactVision Spatial to test and host your own spatial experiences.

Frequently asked questions

What is Amakin: City Game?
Amakin is a location-based AR game built by Reda Beggari. Time portals open at landmarks in Rabat, Morocco, and crossing them reveals the city's heritage through 360° worlds and hands-on puzzles. It is free to play.
Which ViroReact features does Amakin use?
Amakin uses ViroPortal, an inward-facing ViroSphere for 360° scenes, GLB models, physics, particles and light estimation. Geospatial anchors and co-location are planned next.
Can one developer build an AR game with React Native?
Yes. Reda built the Amakin app on his own during the Ctrl+Space build week using ViroReact and Expo, with an AI coding agent and the ViroReact MCP server to check components.
How does Amakin handle low-light AR tracking?
It combines ViroReact's light estimation with a native Swift module, built with the Expo Modules API, that switches the iPhone torch on when the scene gets too dark and briefly turns it off to re-measure the light.

Get the ReactVision newsletter

Product announcements, including ViroReact, ReactVision Spatial, Editor and MCP updates, direct to your inbox. No spam, and you can unsubscribe at any time.

Subscribe