Advertisement

How do I write a game like Pacman?

Started by November 27, 2002 01:57 AM
18 comments, last by dcgeek 21 years, 11 months ago
I want to write a game like pacman, and i had downloaded some source-code for it... but I want a full tutorial about how to write a game like pacman.
Before you can walk, you must learn to crawl. What are your programming skills thus far?

Don''t listen to me. I''ve had too much coffee.
Advertisement
quote:
want a full tutorial about how to write a game like pacman.

As you wish...

Pacman Tutorial
[size="2"]I like the Walrus best.
It have to be in C/C++ of course.
And the tutorial you gave me, isn''t the tutorial i''m looking for.. I want a full tutorial about every single line in the pacman source-code... If you know what I mean...

You, like many newbies/beginners are jumping the gun. First study algebra and C++. Then make some small programs in Visual C++''s console mode while learning algebra on the side. THEN, jump into Win32 and MFC programming, making some small programs there. Finally, learn about OpenGL and/or DirectX. Once you get to that point where you are comfortable using either, then make a Pac-Man game.

Tutorials will only help you if you know what you are doing.
They provide the guideline to the knowledge you already have. If you are just beginning, as I suspect, follow the rough aforementioned progression. When you get to being comfortable with DirectX or OpenGL, you are ready to make a pac-man clone, Neo ["The Matrix" reference].
A shortcut is the longest distance between two points.
quote: Original post by dcgeek
I want to write a game like pacman, and i had downloaded some source-code for it... but I want a full tutorial about how to write a game like pacman.


Do you want to write a game or to learn how to cut´n paste?

If you get the full source code for a pacman clone, what´s the point in writting the game? You will probably do a nice cut´n paste job but you wont be learning how to program a game yourself.
Advertisement
I CAN program, and i have knowledge about OOP, and I know how to write both console programs and Wi32 programs using Win32 API.

Have you written anything as far as a game goes?

This website recommends starting with Tetris since there''s no AI involved. I''m actually doing Breakout right now, so it''s up to you.

Think of the topics you have to cover and go from there.

You say you know Win32, so you need to:

1. create your window shell
2. Initialize Graphics and objects
3. Render
4. Update objects.
5. repeat 3 and 4 till Quit

That''s the most basic layout. I think you are trying to understand too much too quick and all you are getting is a bunch of ???!?!?!?!?!??

If you understand the above, IMPLEMENT it, then zero in on your game. For bigger games however, I''d recommend a requirements document/layout and much more pre-thought before you get a game written. You need to understand how that''s done before you can write valid requirements though, so I''d recommend stepping back from a game and look at the big picture, then zero in on details while implementing it. It''s easier to imagine a detail one step away rather than 3 to 6 steps away. As you get better, you can see 3 to 6 steps away. I wouldn''t start with Pac man. Make something simple like Tetris or Breakout, then move one step closer to it. i.e you have breakout done, so you know how to implement a game, so now you add Artificially intelligent ghosts to the mix after that.

Good luck, I''m not sure where you are at, so I hope I covered it.

Much greatness is achieved thru perseverance and faith.
Much greatness is achieved thru perseverance and faith.
quote: Original post by dcgeek
It have to be in C/C++ of course.
And the tutorial you gave me, isn''t the tutorial i''m looking for.. I want a full tutorial about every single line in the pacman source-code... If you know what I mean...



I can only give you one wish. Next time be more explicit.
[size="2"]I like the Walrus best.
Heya All,

I''d suggest going to the thread on OldGames: Making Games from Old to New.

Also check out the temporary website at http://web.umr.edu/~jwalsh/making-games/

Best Regards,
Jeromy "Maverick" Walsh
------------------------
"The question isn''t how far, the question is do you possess the constitution, the depth of faith, to go as far as is needed?" -Boondock Saints
Jeromy Walsh
Sr. Tools & Engine Programmer | Software Engineer
Microsoft Windows Phone Team
Chronicles of Elyria (An In-development MMORPG)
GameDevelopedia.com - Blog & Tutorials
GDNet Mentoring: XNA Workshop | C# Workshop | C++ Workshop
"The question is not how far, the question is do you possess the constitution, the depth of faith, to go as far as is needed?" - Il Duche, Boondock Saints

This topic is closed to new replies.

Advertisement