pacman in 3D using c and openGL

914 views
Skip to first unread message

Tharindra Galahena

unread,
Jan 7, 2012, 2:41:41 AM1/7/12
to info-warrior
to run type ,

./pac resolution

resolution - resolution of your screen

ex:

./pac 800x600

how to play :

move using 'W', 'S', 'A' and 'D' keys. when six 'ghosts' are red and 'walls' are blue. you have to avoid ghosts if you contact them you loose. when 'ghosts' changed in to blue and 'walls' change in to red you have to catch ghosts. you win when you catch all six ghosts. to see the positions of ghosts press 'O' and come back to game press 'P'.

press 'ESC' to exit.

compiling source:

to compile you have to install openGL and glut type,

sudo apt-get install freeglut3-dev
sudo apt-get install libgl1-mesa-dev

then just type make.
pacman3D.zip

Tharindragalahena

unread,
Jan 7, 2012, 2:49:44 AM1/7/12
to info-warrior
Reply all
Reply to author
Forward
Message has been deleted
0 new messages