alt.hn

6/14/2026 at 4:18:45 AM

Pac-Man, but you're the ghost

https://garrit.xyz/posts/2026-06-13-pac-man-but-you-re-the-ghost

by mindracer

6/14/2026 at 10:17:00 AM

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

by beezlewax

6/14/2026 at 10:50:14 AM

It's not imposible, but I agree that it's very hard.

by gus_massa

6/14/2026 at 5:31:35 AM

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.

by pmontra

6/14/2026 at 5:58:29 AM

On mobile, you just swipe in the direction you want to move (e.g. swipe up to go up). You can also queue the move ahead of time. So even if you are nowhere near the intersection yet, you can swipe up and trust that the ghost will automatically turn once it reaches the intersection.

by arcastroe

6/14/2026 at 8:13:45 AM

Just like the original Pac-Man game :)

by arcanemachiner

6/14/2026 at 9:09:38 AM

Could be my shitty phone, but the swipe lag is huge. I can swipe ~1s ahead of time and still miss a turn.

by akoboldfrying

6/14/2026 at 9:29:43 AM

I don’t think you can take a turn until you hit a wall?

by tonmoy

6/14/2026 at 9:39:35 AM

I don't think so -- I managed to turn while on long straights, but nearly always after the turn I wanted to make.

by akoboldfrying

6/14/2026 at 10:53:16 AM

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

by kristopolous

6/14/2026 at 7:09:54 AM

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

by ataru

6/14/2026 at 7:18:43 AM

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.

by InvisibleUp

6/14/2026 at 4:36:49 AM

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

by Teknomadix

6/14/2026 at 5:21:45 AM

> Horrible controls.

Interesting! I found them mostly ok, but I was playing with a keyboard. They definitely remind me of the controls of Pacman games I grew up with where (as sibling comment notes), you have to decide where you're going before you get there.

I wonder if tweaking the input buffering or adding some frames after the turn where you 'snap-back' would help, similar to ghost jumps in Mario.

by fphhotchips

6/14/2026 at 6:13:09 AM

I grew up playing Pac-Man and Ms. Pac-Man in dimly lit arcade parlors and bowling alleys.

The controls in this version are, for lack of a better word, sluggish compared to the tight responsiveness of the originals on a four-way joystick or using a keyboard with MAME. Even when you press an arrow key to "move" the ghost, there’s a noticeable delay, almost like it’s polling for the key-up event instead of the key-down.

by vunderba

6/14/2026 at 7:10:43 AM

For me there seems to be latency registering the key press which results in frequently missing turns

by nfw2

6/14/2026 at 5:17:16 AM

    The code was written by Claude, unfortunately, and hence no controls were probably even considered, or no tokens were left.
    I jumped in with the love in mind, too, but when I checked the source repository, and saw the actual source... and then the contributors... it was... I am sorry... it hit hard...

by serious_angel

6/14/2026 at 7:03:53 AM

Where did you quote this from?

by keyle

6/14/2026 at 5:13:36 AM

I find that you have to decide which direction to turn before the turn.

Once I got that figured out, it was mostly a race to catch pacman along the long straight path at the bottom edge with the ghost's superior speed.

by omoikane

6/14/2026 at 7:34:52 AM

Swipe controls on mobile worked well for me.

by staindk

6/14/2026 at 5:20:52 AM

Yeah its AI slop without the corner easing. But maybe they can AI it better.

by VectorLock

6/14/2026 at 9:47:04 AM

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

by akoboldfrying

6/14/2026 at 10:41:23 AM

>but you're a dot. Time passes, ghosts pass through you occasionally, then suddenly: inky blackness.

Replace ghosts with posts and you have dictated a normal HN user's life..

by x______________

6/14/2026 at 9:52:06 AM

This reminds me of Coconut Simulator

by flux3125

6/14/2026 at 8:15:13 AM

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

by Chazprime

6/14/2026 at 5:15:16 AM

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.

by asadm

6/14/2026 at 5:17:42 AM

I think at one point Namco had a multiplayer Pacman Party Game which had a similar premise - whoever manages to eat Pacman gets to be him in the next round.

EDIT: Found it.

https://en.wikipedia.org/wiki/Pac-Man_Vs%2E

by vunderba

6/14/2026 at 6:34:24 AM

Your link is cut off or something. EDIT: the dot at the end is being cut off by the forum software it seems

by ofrzeta

6/14/2026 at 6:39:46 AM

Thanks - link updated, went ahead and just percent-encoded the damn thing.

For reference - it's a Gamecube game where the other players play as ghosts released all the way back in 2003.

by vunderba

6/14/2026 at 7:47:32 AM

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

by sixothree

6/14/2026 at 8:05:14 AM

What does it mean for the ghosts to be "unable" to reverse direction? Isn't that just another way of saying that the original ghost AI was programmed to never choose to do so? There are, in fact, a lot of things they never choose to do. The whole appeal of this idea is to see if you can make better decisions than the original ghost AI.

by sparky_z

6/14/2026 at 5:17:30 AM

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

by tommypham

6/14/2026 at 6:01:52 AM

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

by lowlevel

6/14/2026 at 5:20:13 AM

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

by VectorLock

6/14/2026 at 6:02:16 AM

Are you talking about for the AI Pac-Man or the ghosts? Because the ghosts in real Pac-Man don’t have cornering.

by epcoa

6/14/2026 at 6:51:14 AM

Pac man in Pac-man has cornering.

by VectorLock

6/14/2026 at 5:53:03 AM

Taste and care? In my slop? How dare you sir.

by ares623

6/14/2026 at 5:57:14 AM

kind of like the movie pixels :)

by dfordp

6/14/2026 at 7:08:20 AM

should call it Nam-Cap

by purple-leafy

6/14/2026 at 6:07:30 AM

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.

by deadbabe

6/14/2026 at 6:09:39 AM

> It’s literally impossible to catch Pac-Man?

I caught him! So it's definitely possible. You move a little bit faster than he does so you need to anticipate where he's going.

by Reubend

6/14/2026 at 10:25:31 AM

You don't even need to anticipate, you can just push him towards the bottom and follow, he just goes in a loop so eventually you'll catch up. I caught him first try without thinking of any strategy. The controls are horrid though.

by NicuCalcea

6/14/2026 at 10:32:28 AM

  Why are people still upvoting obvious AI slop garbage?
Because it looks good enough to "pass". People are consuming low quality content all the time.

  It’s literally impossible to catch Pac-Man?
Not true.

  You do not move fast enough
Not true.

  the Pac-Man AI is programmed for perfection
So is it slop or programmed for perfection, which one is it? :)

by orphea

6/14/2026 at 11:01:27 AM

> So is it slop or programmed for perfection, which one is it?

I’m not going to comment on the code (I abandoned the page early due to the terrible controls) but there’s no contradiction in that part you’re commenting on. “Slop” doesn’t just mean “doesn’t work”. To output text in a terminal you could use `echo`, but you could also write a 500 lines function which does a bunch of unrelated garbage then finally outputs the text perfectly (i.e. no mistakes). That doesn’t mean the code is good or even acceptable or desirable, even if the outcome is technically correct.

by latexr

6/14/2026 at 9:35:26 AM

Just down vote and move on. You're helping them generate better slop by providing input like this

by blharr

6/14/2026 at 11:03:15 AM

You can’t downvote submissions, only comments.

by latexr

6/14/2026 at 6:11:20 AM

> 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.

It's not impossible. I just did. You just have to corner the man into an impossible situation. But I agree on the AI-slop or lack of quality production.

by csomar