|
Open GL graphical interface:
*Pacman is seen as a yellow sphere.
*The Ghosts are green cubes. *The pellets are white sphere's. *The power pellets are red sphere's. *The walls are blue cubes. *Warps are turquoise cubes. *What hasn't been seen yet is indicated by a dark brownish red color. *The blank spaces are of course empty. Two Dimensional Vision Cone:
*Both Pacman and the Ghost(s) see realistically in a one-hundred and forty degree flat two dimensional cone. This is approximately the same angle that a human being can see and still retain accurate depth perception within the cone of sight.
According to Wikipedia "...binocular vision, which is important for depth perception, only covers 140 degrees of the field of vision in humans;" Path Finding Algorithm:
*Based off of an algorithm I wrote which is similar to A-Star.
Warps:
*Ghost(s) or Pacman will warp to the other side of the map, they will use this effectively and realistically to move around.
Brain:
Pacman's generalized behaviors:
Feeding:
Ghost(s) generalized behaviors:
*Pacman searches for the nearest pellet that he has seen while avoiding the Ghost(s).
Attacking (Not Yet Implemented):
*Pacman searches for the nearest Ghost(s) to attack when influenced by a power pellet.
Fleeing (Not Yet Implemented):
*Pacman searches for the nearest power pellet that he has seen and not eaten after seeing the Ghost(s).
Searching:
*The Ghost(s) search for Pacman by moving around randomly and by having a predisposition to explore new areas.
Attacking:
*The Ghost(s) will move to Pacman's position.
Fleeing (Not Yet Implemented):
*Continue to chase Pacman.
*If the Ghost(s) do not see Pacman they will go back to searching.
*The Ghost(s) evade Pacman after he has eaten a power pellet and is dangerous to them.
Power Pellets (Not Yet Implemented). Pellets have colors associated with them to indicate how dangerous they are for Pacman or the Ghost(s) to move to (Not Yet Implemented). Multiple Threads (Not Yet Implemented):
*This allows for user input to be captured to allow the user to play as Pacman.
*This allows for the program to run faster. |