Pac-Man, but you're the ghost

garrit.xyz

104 points by mindracer 7 hours ago


geon - 2 minutes ago

You should add inky and pinky so you can corner pacman. Their movement is dependent on blinky, so you would be in control of all 3.

https://pacman.fandom.com/wiki/Maze_Ghost_AI_Behaviors

beezlewax - 44 minutes ago

If you go left or right as the first move on mobile you can't get out of the box. Pretty frustrating.

kristopolous - 8 minutes ago

the ghost is slightly faster which makes the game winnable. thanks for that. I noticed

haunter - 3 hours ago

The less dots there are the easier to "freeze" the game https://files.catbox.moe/g03iwa.gif

pmontra - 5 hours ago

Sometimes I manage to make the ghost move on mobile but I don't understand how to do it in a consistent way. Maybe there should be a tap area of 90 degrees above the ghost (from -45 to +45) to move it upwards, 90 to the right to move it rightwards, etc.

ataru - 4 hours ago

Pacman can escape more easily now that there's only one ghost.

foo12bar - 4 hours ago

For 400+ lines of html, not bad, even if it is AI generated: https://github.com/garritfra/pac-hunt/blob/main/index.html

InvisibleUp - 4 hours ago

Seems the solution is to immediately leave and follow Pac-Man to the bottom-right (by alternating right-down) and chase him across the long corridor on the bottom. Keep following him and you'll just catch him, since he never goes for the power pellets.

3-cheese-sundae - 5 hours ago

"Think about it. It's like Kafka wrote a Lovecraft story."

https://www.smbc-comics.com/index.php?db=comics&id=2736#comi...

Teknomadix - 6 hours ago

Cool idea. Horrible controls. Reminds me of how frustrating playing pacman on my 2600 was as a kid.

akoboldfrying - an hour ago

What about: Pac-Man, but you're a dot. Time passes, ghosts pass through you occasionally, then suddenly: inky blackness.

Chazprime - 3 hours ago

I’m struggling to even leave the ghost pen on iOS.

asadm - 6 hours ago

pretty nice. I had a multiplayer demo a decade back where one player would be pacman and rest would be ghosts. and it would swap as you cycle. Whoever collects most coins won.

sixothree - 3 hours ago

The ghosts are unable to reverse direction in Pac-Man. You should have your agent read this: https://pacman.holenet.info/

tommypham - 6 hours ago

haha just played so cool. I'm thinking of making online multiplayer game for this haha

lowlevel - 5 hours ago

I had this idea a very long time ago.. well before AI... so it was fun to see. Thanks... too easy tho.

purple-leafy - 4 hours ago

should call it Nam-Cap

VectorLock - 6 hours ago

Cool AI slop but the lack of corner easing like the original game makes it less fun.

dfordp - 5 hours ago

kind of like the movie pixels :)

deadbabe - 5 hours ago

Why are people still upvoting obvious AI slop garbage?

1. Claude couldn’t do a proper fence algorithm for the walls?

2. Controls feel horrible.

3. It’s literally impossible to catch Pac-Man? You do not move fast enough and the Pac-Man AI is programmed for perfection so it does not make deliberate mistakes for the human player to take advantage of.

4. The tile based movement is not smooth, very stuttery.

Fine for a prototype, but we could do so much better. This is not a particular hard game to code up in an afternoon or even an hour if you’re experienced.