PC-MAN
I am planning to program the exact classic version of PC-MAN in c++ (the classic version occupies only 17KB! which is a .com file) which i suppose made in 320x200 in 16 colour.
I want to program this game in 320x200 in 16 colours DOS Mode. Now;
1. How can i initialise this mode (ie. 300x200 in 16 colour) using the initgraph function in c++. please tell me how?
2. Can i use getimage() / putimage() to capture my pc-man image defined in unsigned char[] array for animation. if yes, how? if no, why?
3. In case if I use the double buffering technique, how can i use getimage() / putimage() for animation.
I have already programmed a small part this game (i.e. movement of enemy in all the direction) using the image stored in unsigned char[] array under double buffering technique. But here i have to draw the background (i.e. path/maze) alongwith all animations every time, otherwise the movement of opponent would erase the background .
For this particular reason i want to program the graphics using getimage() / putimage(). I want to draw the maze only once and then the animation follows. also please advise me which is the best way to program this game. i.e. normal onscreen mode or double buffering mode.
i would like to add that i really appreciate the classic version of PC-MAN since this game occupies only 17KB! which is really unbelievable!!. How this program has been made. In assembly or in C++. I used to play this game a lot in my school time and now i want to program this my own. Kindly help.
your help would be highly appreciated.
thanks
