Creating a PacMan Clone

Discussion in 'Mac Programming' started by Blakeasd, Mar 10, 2011.

  1. Blakeasd macrumors 6502a

    Joined:
    Dec 29, 2009
    #1
    Hello,
    I would like to create a clone of pac-man for fun. I have my graphics drawn, and I can move the characters. How does AI work? Does anyone know of some Objc AI tutorials?
    Thanks
     
  2. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #2
    AI? I think it would be a stretch to call what Pac Man was originally built around game mechanics. :p.

    Here's a description of how the ghosts move in the original. http://gameinternals.com/post/2072558330/understanding-pac-man-ghost-behavior

    Also, the source code to the browser based version Google used as a doodle recently is available. I'm sure you could peruse that for some ideas. http://www.peptop.com/web/google-doodle-pac-man-source-code/

    B
     
  3. PatrickCocoa macrumors 6502a

    Joined:
    Dec 2, 2008
    #3
    Good luck!

    Good luck! Let us known when it's done. Or if you need someone to beta-test.
     
  4. chrono1081 macrumors 604

    chrono1081

    Joined:
    Jan 26, 2008
    Location:
    Isla Nublar
    #4
    Others already pointed you to the links about the ghosts, however you may need to implement some kind of path finding algorithm in order for your ghosts to make an educated guess on which path to take. (I could be wrong, I've never thought long and hard about how to make Pacman).

    Here is a book that is very good for getting your feet wet with AI. Its written in C++ but that doesn't matter since the same concepts will apply:

    http://www.amazon.com/Programming-Game-Example-Mat-Buckland/dp/1556220782
     
  5. Blakeasd thread starter macrumors 6502a

    Joined:
    Dec 29, 2009
    #5
    Would it be better to do the game in SDL and C++?
     
  6. chrono1081 macrumors 604

    chrono1081

    Joined:
    Jan 26, 2008
    Location:
    Isla Nublar
    #6
    Not necessarily. You could really do it in either.
     

Share This Page