Pacman AI
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
November 29, 2002 03:34 AM
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
<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
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.
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!
Hey, don''t forget to visit my page... by clicking here!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement