/Pac-Man-XR_A-Frame

Pac-Man Clone built w/ A-Frame XR

Primary LanguageJavaScriptMIT LicenseMIT

Pac-Man XR (A-Frame)

A Pac-Man clone built with A-Frame. Play a Web XR version of the classic arcade game Pac-Man. Support for Desktop, Mobile and VR.

pacman xr clone preview

How to Play :

  • Move Pac-Man Up, Right, Left or Down around the maze to eat all dots on the screen while avoiding four colored ghosts to advance to the next level. Eat Power Pellets to turn the tide on your enemies.

Ways to Play :

  • Desktop - Keyboard (WASD) (Arrows)
  • Desktop - Mouse Hover w/ X Controller
  • Mobile - Tap w/ X Controller
  • VR - 3DoF Joystick Controller

Using only aframe.js, all graphics, animations and controls are built from within the webxr framework. Allowing this 1 game to played in a variety of ways including an immersive large screen version in VR with classic Joystick like controls. Not all elements match the original perfectly and some need a bit of improvement like even more diverse ai, better collision and the unique Pac-Man turning radius. Working on more accurate designs to improve those systems in the future for a more authentic experience. The amount of overall entities as well are pretty high (about 800), but brainstorming ways to optimize further while keeping the customizable nature of the system intact.

Another interesting tidbit about the system is that the map and dot creator are customizable to allow for a variety of maps, sizes and colors as well. Currently only the original basic map and theme are loaded, but more to come later.


This is my first huge project as I am still learning the ways of Web Development and Web XR, so please be kind when reviewing or sharing. Otherwise, I hope you enjoy the game and thank you for taking a look.



Minty Crisp ^-^ 🍉

  • If you want to see more work of mine playing with A-Frame, check out my site mintycrisp.com and my Itch Store.
  • You may also be interested in an arcade I built using AUXL as it's foundation filled with XR mini games called Minty's XRcade.
  • I also am building an engine that powers Minty's XRcade called A-Frame UX Library AUXL Repo.
  • You can also check me out on a few other places like Mastodon or dev.to.
  • I am available for Web XR work if you are interested in hiring me or collaborating on future projects.
  • You can reach me via socials or email : minty-crisp @ proton . me
  • If you really enjoy my work and want to support me making more of these types of projects, you can help me out with any kind of donation at ko-fi or just by sharing my work.