This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

Master_of_Programming
Master_of_Programming presents ...

2009/12/17

PacMan

This game was made with a single image, so pardon the slowness. Also, GreenfootImage doesn't have a drawArc method, so pacMan is just a circle. You can download the GUI version of this game in my other thing, Simple Games. The maze was created with a random maze generator. The code for that is in the Game class.

5009 views / 18 in the last 7 days

Tags: awesome pacman with-source classic one_image

open in greenfoot
Your browser is ignoring the <APPLET> tag.
mjrb4mjrb4

2009/12/17

You could load the pacman image as a separate file, which would enable you to use any shape you want ;-) If you really want to use a drawArc method though, you can get the BufferedImage that backs the GreenfootImage you need and then draw on that using a Graphics2D object (which does have a drawArc method inherited from Graphics.)

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.