Pacman for Android with Unity

Andrea
2 min readJun 23, 2019

After visiting the Retro Arcade Show at Yas Mall on last Friday, we had so much fun with Retro Game such as Pacman and King of Fighter. I was inspired to recreate Pacman game in Android. The game basically is based on this tutorial with minor modification.

This is how it looks like based on the tutorial alone:

The tutorial is intended for PC/desktop, because of the input is using PC keyboard. I modified it by adding controller button, so that it can be played at Android phone.

The button all enclosed inside the Touch Controller container.

Touch Controller itself attached with script that will enable gives boolean input for Pacman whenever the button is pressed :

Each button is added Event Register for Pointer Up and Pointer Down so that it will called the method inside the script whenever the button is pressed.

And for the last step, new boolean variable shall be added to the existing Pacman script to indicate input when the button is pressed.

Finally here is my final Pacman looks like after added more accessories.

There are still a lot of room of improvement such as add background music, fruit, fixing the ghost animation and add more level. This page will be updated as I progress more.

At last, thanks to the tutorial author, I have never touch Unity before, but I managed to finished this project. Check out my whole repo : here.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Andrea
Andrea

No responses yet