I developed this game as my term assignment in Level-1 and Term-2 (February – March 2007) in C Programming course. This is my first huge project in C, technically last one (as already have learned C++ and Java).
This is a typical Pacman game. where player plays as a Pacman who’s object is to eat all the seeds in the board or better I say it maze. In the maze player is not alone. There are enemies, four of them, to catch u. If they catch player loses life. Right now there is four levels. Hope I could increase level in recent future.
Developing Language: C (could be said C++ as I have used few feature exclusive to c++ but this program is a structured not object oriented one)
Used API: Turbo C’s BGI
Operating System: Windows (though I have developed this project in windows xp sp2, wish that in all version of windows this code would work)
Software Architectural Information:
In my consideration this project could be divided into two part. firstly the algorithmic part and next is display oriented part.
Main algorithmic part of this code is BFS. BFS is used to calculate the distance of each block of maze. The enemies ran through the shortest path. When I have wrote this code, I didn’t have much knowledge of algorithms. So the code could be little bit frustrating for advanced programmers. As a result new comers will be enjoying the code.
Display Oriented Part:
As already I have specified that this project is developed in Turbo C so the display and color oriented work is done using Turbo C’s BGI. More specifically by drawing raw circle and rectangle. This is very ideal project for those how wanted to do better graphics with TC’s circle and rectangle functions.
Few Screen Shots Taken Using DosBox :
Sharing my one of best creations …. …
Click Here to download the game. This is a zip file where an exe file and other necessary files are given. This game could be run only in windows as this is developed in Turbo C.