I've been working on a sort of a pac-man game (the sprites are currently all original) called Stoner-man, where he's trying to steal the weed plants and escape the cops.
Things i need - I need an A.I. program for the ghosts and some cop sprites.
I have pretty much everything else - music, pac sprites, working on mazes, etc.
The A.I. program i know is hard to do (unless you're experienced in this sort of thing) and i know i'm asking for a lot, but can ANYONE help me with this?
Puk comes from the japanese slang word Puku meaning eat Pukman was changed for the american market because there is always something changed to suit Americans.
About the ai, i would have done something like testing where the pacman is releated to the ghost when it his a wall, if pacman is further left, go left, if he is above, go up. you know that sort of thing.
If I was making a pacman game it would surely be a tilebased movement. Using this I would create 4 detectors at each junction in the road, this will tell the ghosts which possible directions it could go in. The comparison would be made every time it moves 16 or 32 pixels. Using the same sprite for the ghost I would set the alterable value A to speed of the ghost (would need to be divisible by 16 or 32 depending on the tile based movement)and value B to the maximum distance apart. Then when the ghost has finished moving its 16 or 32 pixels along it will test its x distance with the pacdude (pos x ghost - posx pacdude). Then whichever one is smaller it will take that route if its less than the max distance apart. One problem you may find is dead-ends, this could be accomodated for but generally there aren't dead ends in pacman games. The speed of the ghost would be set by a speed detector at the beginning i.e. at the start of the level + ghost overlapping speed 4 then set alt value A to 4, similarly you could do this with the max distance counter.
By a route obscure and lonely,
Haunted by ill angels only,
Where an Eidolon, named night,
On a black throne reigns upright,
I have reached these lands but newly
From an ultimate dim Thule
From a wild clime that lieth, sublime,
Out of space
Out of time.