Pacman in dev c++

can anyone help me to create the pacman game in dev c++ using console application?I am new to c++, have only basic idea .... can anyone please help me to make the game step by step?

it doesn't need to be perfect...just the player and 1 or 2 ghost and some points..no need the super points..please anyone come up with helping hands :|
I think a pacman game is too complex for a beginner.
Any way I guess there are tons of examples on the internet so better to ask Google.
For a console game, you probably want to use curses or ncurses. (I've heard a lot about curses, but, unfortunately, I have not had the opportunity to use this library, so I cannot help you with this.)

The first thing you want to do is write a SIMPLE program the merely moves the cursor around the screen based on user's buffered input (like cin). No walls, no ghosts, no points, nothing but simple movement.

Next, change the cursor to a character or symbol to represent Pacman. Maybe you want to alternate between "C" and "O" to simulate opening and closing the mouth.

Then worry about edge conditions--what happens when you hit the top/bottom or left/right side of the screen. Then add walls. Make sure you can navigate around but not through the walls.

At this, you still have to handle the following:
+ Ghosts
+ Points
+ Threading (ghosts continue to move while the program waits for your input)
+ Unbuffered input (you shouldn't have to hit enter to cause Pacman to move.)

Don't try to do them all at the same time--add them one at a time. Build up your program in pieces. Make sure you understand how each feature of the program works before adding in another. It will make it easier to debug each new feature.

Like I said, I have no experience with curses. Also, my experience with unbuffered input was decades ago in my BASIC days, so I don't have current experience there, either. However, you can google it and learn. But whatever you do, take it in steps. Finish one step before going to the next.
You may want to decide on a few other issues to consider before you begin.
Do you want a main menu, high score, 2 or more players, multiple maps.
Do you want to exit after the player dies or restart
Do you want to exit in the middle of the game, do you want to be able to pause.
Thnaks guys... i have somehow completed some steps with the help of internet and my friends.. but stuck now like how the ghost object will follow the player object...i can move the player with keyboard now...but cant move the ghost in a way where it will follow the player object..any suggestions?
// here is the move function for player

void move(){

if (!kbhit()) return;


int dx=0;
int dy=0;

int c=getch();
if (c!=0) return;

c = getch();

if(c==72) dy=-50;
else if(c==75) dx=-50;
else if(c==77) dx=50;
else if(c==80) dy=50;

setTopLeft(x1+dx, y1+dy);
setBottomRight(x2+dx, y2+dy);
}


// here is the part of main function

Person p (100,200,300,400);
p.draw();

int n=2;
Person enemies[2] = {{200,300,400,500}, {800,100,900,200} };
int movements[2] = {10, -20};

for (int i=0; i<n; i++)
enemies[i].draw();

Obstacle ob[100];

Registered users can post here. Sign in or register to post.