Unfinished Pacman Clone

(Peter Shaw) #1


I found some time to finish my Pacman clone. Well, it is not really completed but it might have some simple code that is useful for some of you. I won’t pursue that version. It was rather my first attempt to develop something for Arduboy.

However I liked the idea of working with nodes rather than tile-collisions. Since Pacman has a very static level design it was easy to create an appropriate data-structure that required very few memory. It was also easy that way to create random movement and finding the ghost’s way home. The decisions are only made at the nodes. The bad decision was to build on the original pixel-size which makes it too hard to see the ghosts in some cases. It looks good but you have to see more from the scene.

Arduboy is really neat device but lacks sufficient memory, a proper IDE and documentation which takes the fun out of it too early for me. The minute you need to refactor your code because things are getting complex you get quickly lost in the Arduino IDE. I am used to Intellij and Java where the IDE is almost writing the entire code. Also I suck at c++ :slight_smile: Anyway I love the idea to have my personal console and maybe later the company has a proper way to make games available for a dime or two to a greater audience.


Source (Arduboy2 library required)



(Mike McRoberts) #2

Don’t use the Arduino IDE. Use PlatformIO :-


(Josh Goebel) #3

Curious to see how this plays. I worry it would be hard if you can’t see the ghosts coming for you.

(Peter Shaw) #4

I tried but could not get it to work. I did it again right now and imported the pacman-project but it gives me weird errors all over the place.

(Mike McRoberts) #5

I think that is because you have your source files in an ‘assets’ folder instead of a ‘src’ folder.

Did you create a new project and make the target board an Arduboy?

(Peter Shaw) #6

Also the code-completion only shows me the polluted c++ namespace and nothing from the instance I am asking for.

(Peter Shaw) #7

They are not in the assets folder. I can also compile and upload.

(Mike McRoberts) #8

Put your error messages up on the PlatformIO forum, they are very helpful.

I use it for all of my development and find it is 1000% better than the crappy Arduino IDE.

(Mike McRoberts) #9

Also update PlatformIO to the latest from within the app.


Any chance of a .Arduboy file?