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.
The concept of this game is flawed.
It should be about cops who smoke weed. Just big garbage bagfulls every afternoon while watching Cops and maybe Springer, and just laughing at everything, especially the commercials. Then you go around trying to help the cops smoke more weed. There will be like a weedometer, and if it gets too low, the cops become respectable human beings and you lose. So you have to ride the rainbow to get to Mushroom Land and defeat Dr. Buzzkill who has abducted all the magical drugs in the kingdom. Then George Bush and Osama Bin Laden do bong hits and friendship will be everywhere around the world forever.
I once made a movement engine that was a grid based four directional movement used for Final Fantasy III type rpgs and later adapted it to a pac-man like techno colored tripped out game where a circuit thing roamed around the innerds of a computer and collected rings and avouded certail enenies, obsticals and traps. but I'm not going to get into that. but it should'nt be that hard to do. I'd have to write an artical to explain it correctly and i probibly wont end up doing that. making this entire reply kind of pointless.
What if the cops aren't respectable human beings when they're drug-free? You have to keep the DARE officers away from them to make sure they never know the TRUTH.