Advertisement

Pacman AI

Started by November 28, 2002 10:13 PM
3 comments, last by Top_Gun 21 years, 11 months ago
Hey, we are programing pacman in our programing club at school, i am in charge of the Ghost AI, searched the net for some direction, but found nothing important. I know that each of the 4 ghost as a diffrent "personality". Any help would be great THX TG
It sounds like a good project. The subject has come up a few times on this list. Check out:

<A HREF="http://www.gamedev.net/community/forums/topic.asp?topic_id=115808">http://www.gamedev.net/community/forums/topic.asp?topic_id=115808
</A>

<A HREF="http://www.gamedev.net/community/forums/topic.asp?topic_id=97849">http://www.gamedev.net/community/forums/topic.asp?topic_id=97849
</A>

They both provide valuable information and links concerning the AI and general gameplay of Pacman.

Good luck!

John
Advertisement
Pacman ghost AI is simple if you use arrays.

1. Get pacman''s position on the array
2. Get ghosts position on array
3. Use simple system to calculate shortest route to pacman
4. Have ghost follow this route

If you want varying degrees of difficulty, just add in a system where it calcualtes 3 routes and finds either the shortest, average, and hardest route for easy, medium, and difficult difficulty levels.

At least, this is what I did, but this was ages ago. I may still have my source.

...and that''s how I successfully lead operation Desert Storm.
With love, AnonymousPosterChild
AI is cool! That''s what I''m getting into now! Good luck! Sorry I can''t help you yet.


Hey, don''t forget to visit my page... by clicking here!
If you haven''t found anything yet...

the ghosts AI breaks down like this

1st Ghost: Follows you
2nd Ghost: Tries to Cut you off with a shortest path algorithm
3rd Ghost: Wanders around aimlessly

I think this is right but if it isn''t im sure I will be corrected

Ryan
mang?

This topic is closed to new replies.

Advertisement