gamedev.net Pac Man Tutorial
For a while there was a thread/tutorial that showed how to make pac man with c++ step by step. Anyone know whatever happend to it?
thanks,
-durfy
I've also only ever seen the Tetris in an hour step by step tutorial. I dont really think these step by step tutorials are a great way to learn, as they just tell you to do this and that and then skip the important details. You will learn alot more by trying to create a pacman clone yourself, that way you will see what your struggling on, and you can then come here and ask a question on that topic.
Your first goal in your PacMan quest should be this:
Notice I never mentioned: ghosts, mazes, or scores. So don't worry about those.
- Get PacMan on the screen
- Get pellet(s) on the screen
- Get PacMan to move
- Get PacMan to collide with the pellet
- Get the pellet to disappear after 4. happens
Notice I never mentioned: ghosts, mazes, or scores. So don't worry about those.
Quote:Original post by Alpha_ProgDes
Your first goal in your PacMan quest should be this:
- Get PacMan on the screen
- Get pellet(s) on the screen
- Get PacMan to move
- Get PacMan to collide with the pellet
- Get the pellet to disappear after 4. happens
Notice I never mentioned: ghosts, mazes, or scores. So don't worry about those.
get the pellets to disappear after 4? sorry its been like 10 years since i played pacman
Do the pellets not disappear when Pacman eats them (or in my words "collide" with them)?
Yeah I got pacman on the screen he can turn walk left right up down ... but my problem was I can't figure out how to do the walls and stuff. I can do collisions/ drawing of pelets as well... i haven't done it yet .. cuz i wanna get my walls up.
Thanks.
-durfy
Thanks.
-durfy
Well if your collision with the pellets are not right, you can be guaranteed the collision with the walls are going to be worse.
But anyway.....
You'll have a file which looks like this:
You'll load this file into your game. Now somewhere in your code you'll have to make an associate with 'W' and a wall graphic. Also you'll have to make sure that the array is big enough so it can hold the maze.
Here's a link: (sorry couldn't find a good, easy link)
But anyway.....
You'll have a file which looks like this:
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW WW WW WW WW WW WW WW WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
You'll load this file into your game. Now somewhere in your code you'll have to make an associate with 'W' and a wall graphic. Also you'll have to make sure that the array is big enough so it can hold the maze.
Here's a link: (sorry couldn't find a good, easy link)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement