Pac-Man Ghost AI Explained

  Рет қаралды 1,371,911

Retro Game Mechanics Explained

Retro Game Mechanics Explained

Күн бұрын

Ever wondered how exactly each ghost follows Pac-Man around? It's all explained right here.
LINKS
Twitter (updates): / retrogamemechex
Patreon (support): / rgmechex
Discord (discussion): discord.rgmechex.com
SOURCES & MORE INFO
cubeman.org/arcade-source/pacm...
donhodges.com/pacman_pinky_exp...
gameinternals.com/post/207255...
www.gamasutra.com/view/featur...
PATRONS
Thank you everyone who supports the channel on Patreon!
Ange Albertini, Sten, 333Rich333, Glenn Sugden NPC, Jordan Wiens, Alex Yancey, David Mazarro, Avi Drissman, Steven, LiraNuna, null, Ryan, Corey Ogburn, Martin Trozell, Scott Harper, Garret Kelly, Mike Gerow, Jake Hickman, Larry Koubiak, Narskogr, Joel Kuhn, Joshua Goyder, Dan Shedd, Sembiance, Tina Wuest, Xander, 4F Panda, Max Roncace, David, Owen Christensen, A Sentient JDAM, Gynvael, Alec Johnson, Brian Henriquez, Travis Nellor, Seth Tierney, Zach Hugethanks, Sijmen Schoon, FFVIMan, Buddy, Mikely Whiplash, Chris Margroff, Yakov, Joseph M, Oxygen Chen, Israel Jacquez, Brandan Lennox, RetroReversing.com, Nik, yuriks, Chris Apple, Ceres, Jason Hughes, Nicholas, Diamond Ice, Jeremiah, F. Murmel, jesugtz, Chris Post, Chris Roy, Chris Connett, Mark, Cypher Signal, Matthew, Shannon Potter, Rupix, sapslaj, Jonathan Scott, Gescheit Gespielt, Gabe S, krivx, Tao Schreiner, Seth N. Hetu, Xkeeper, Bjoern Hansen, Walter Huf, ers35, Pixy011, Daniel Bernard (ReckedCat), Vier Ladair, Bwangry, Jared Johnstone, Phil Clayburn, zephyrin, Kit Spindler, Johnathan Roatch, David Spalding, Jeremy Wright, Acceleration Shark, David Johnson, newnintendo64, Brandon, Matt Shepard, Gary Fenstamaker, Felix Freiberger, Sypwn, Rory Kelly, William Thomas, Carl Cassler, Niles Rogoff, Kusabi, Joe Mecca, Reflet, Michael Greb, tripper, Kefen, nightcap, leftler, Drew Fitzpatrick, Ly Fecha, Dan Salvato, Paxton Sanders, Eugene Bulkin, Walter Weaver, Gethiox, Zoë Mettauer, nexilar, Articate, Julian Meinking, Julien Oster, Braydon Kains, Juniper, Foxchild, buzzert, & Scott Beca

Пікірлер: 1 500
@RGMechEx
@RGMechEx 4 жыл бұрын
I made a lua script that lets you see the ghosts' target tiles and path projections in real-time! You can check it out here: kzfaq.info/get/bejne/hsmPmceEqr22eoE.html
@heheheiamasuperstarwarrior9281
@heheheiamasuperstarwarrior9281 4 жыл бұрын
Thanks for the video! I always wondered how the ghost ai works.
@paulthompson9668
@paulthompson9668 4 жыл бұрын
Thumbs down for supporting Jack Conte's Internet censorship machine (i.e., Patreon).
@bfdicremurumu1581
@bfdicremurumu1581 4 жыл бұрын
Is this the same for Google pac-man or are they all just like blinky in that one?
@nobodynada_
@nobodynada_ 4 жыл бұрын
Here's a website I came across a few years ago that has similar interactive simulations: masonicgit.github.io/pacman/ You can observe a single ghost in isolation by selecting "Learn" mode, or you can start a game in "Practice" mode and enable paths and targets in the cheats menu.
@lefmike
@lefmike 4 жыл бұрын
@@orangeparabola and king crimson nono yoku
@diacosiapentacontahex
@diacosiapentacontahex 4 жыл бұрын
Fun Fact: Clyde's original Japanese name "Otoboke" literally means defocused, as in Clyde literally just doesn't care about getting Pac-Man and wants to do his own thing. I personally found that really cute.
@salomeheredia9885
@salomeheredia9885 Жыл бұрын
He may also get scared when Pacboy is about to get the big ball, but this was an idea about his personality
@AngryBird762
@AngryBird762 Жыл бұрын
Clyde has commitment problems. He doesn’t wanna hurt anybody. Clyde is a precious lil cinnamon roll and is too precious for this world.
@themorgue3836
@themorgue3836 Жыл бұрын
He’s just like me fr
@alex21091
@alex21091 Жыл бұрын
I like how the animated series took how the ghosts in the game act and made it their personalities. Especially Clyde's
@razi_man
@razi_man Жыл бұрын
False. Cyde's Japanese name is Guzuta. Saying Clyde's Japanese name is "otoboke" is like saying Clyde's English name is "pokey".
@homemadepro
@homemadepro 4 жыл бұрын
Blinky is the chaser Pinky is the ambusher Inky is the trickster Clyde is....just Clyde
@leathernluv
@leathernluv 4 жыл бұрын
@Jake Shattuck LAMP = Linux, Apache, MySQL, PHP. Clyde is a geek, not a premeditated killer! Clyde just knows that Pac Man is a trespasser, and the game is in TX.
@Codricmon
@Codricmon 4 жыл бұрын
I like to think of Clyde as the Wannabe, he tries to be as courageous as Blinky, but when he actually gets close to Pac-Man, he runs away to his home corner to hide.
@nespeon5279
@nespeon5279 4 жыл бұрын
Clyde gives out Fresh Waters
@CrashCubeZeroOne
@CrashCubeZeroOne 4 жыл бұрын
ᗣ Shadow - "Blinky" ᗣ Speedy - "Pinky" ᗣ Bashful - "Inky" ᗣ Pokey - "Clyde"
@sometimessnarky1642
@sometimessnarky1642 4 жыл бұрын
Right turn Clyde
@RadiantSharaShaymin
@RadiantSharaShaymin 4 жыл бұрын
So Pinky is always jumping in front of you, Blinky is always chasing you, and Inky is always doing math to work together with Blinky. Oh, and Clyde tells himself he was close enough, time to go home.
@ballisticboo7808
@ballisticboo7808 3 жыл бұрын
Clyde is like "ok I made progress on my anxiety today, gonna go home and try again tomorrow."
@RadiantSharaShaymin
@RadiantSharaShaymin 3 жыл бұрын
@@ballisticboo7808 I'm making that the official cannon in my mind. Clyde is one of the best characters ever designed.
@xboydubose7254
@xboydubose7254 3 жыл бұрын
Clyde: I'm gonna get him, oh... nevermind.
@noiwont4081
@noiwont4081 3 жыл бұрын
this comment has 666 likes...
@reclaimer0018
@reclaimer0018 2 жыл бұрын
clyde is the accidental killer
@pepperonipizza8200
@pepperonipizza8200 4 жыл бұрын
Blinky: Just TOUCH him Clyde! Clyde: No, I don’t think I will.
@ryangonzalez8121
@ryangonzalez8121 4 жыл бұрын
Clyde doesnt refuse,hes just scared! =
@retrohero64butonhisphone80
@retrohero64butonhisphone80 4 жыл бұрын
@@ryangonzalez8121 Please tell me you're joking.
@ryangonzalez8121
@ryangonzalez8121 4 жыл бұрын
@@retrohero64butonhisphone80 no im not
@retrohero64butonhisphone80
@retrohero64butonhisphone80 3 жыл бұрын
@@ryangonzalez8121 He is called stupid by the game, not scared AND his character trait is BEING STUPID He isn't scared he is just *STUPID*
@bluberrydee6205
@bluberrydee6205 3 жыл бұрын
@@retrohero64butonhisphone80 Meh, that's really your opinion
@huntergreer3599
@huntergreer3599 4 жыл бұрын
Me at 11pm: “man I should probably go to sleep early tonight” Me at 3am: “PAC-Man Ghost AI explained”
@ori5_
@ori5_ 4 жыл бұрын
I was here at 1am today lool
@huntergreer3599
@huntergreer3599 4 жыл бұрын
Zigzagunz funny thing is that I made this comment at 3:00am
@inkfire2236
@inkfire2236 4 жыл бұрын
Me at 3am: *dEtAiLs Of My SeCtOrS eNeRgY sHoUlD bE bEtWeEn Me AnD mS pAc ThAnK yOu VeRy MuCh*
@liamsamonte7666
@liamsamonte7666 4 жыл бұрын
It's 11:01 for me
@coolcreeper5434
@coolcreeper5434 4 жыл бұрын
Am here at 12am oof
@xboydubose7254
@xboydubose7254 3 жыл бұрын
Blinky: Chase Inky: Close in Pinky: Surprise Clyde: *I'm just built different*
@jstarandomdude
@jstarandomdude 3 жыл бұрын
Clyde usually retreats if he sees u
@xboydubose7254
@xboydubose7254 3 жыл бұрын
@@jstarandomdude yea that's the joke
@abbiebabbles
@abbiebabbles Жыл бұрын
clyde: i aint built different, im built WRONG
@kemcolian2001
@kemcolian2001 3 ай бұрын
@@abbiebabbles "I'm built different (incorrectly)"
@pleasedontwatchthese9593
@pleasedontwatchthese9593 4 жыл бұрын
I have wanted to make a pacman clone but I did not know how the AI worked. This was a big help.
@alienxotic5028
@alienxotic5028 4 жыл бұрын
Can I see it
@bluespam-number-4224
@bluespam-number-4224 4 жыл бұрын
PleaseDontWatchThese link us if you ever succeed
@Pixelbitie
@Pixelbitie 4 жыл бұрын
Hope it goes well!
@oppo210
@oppo210 4 жыл бұрын
Are you going to make sure your version also has the overflow bug?
@manjuegazos4672
@manjuegazos4672 4 жыл бұрын
If you make a pacman clone, this will happen in a different way: The ghost will go to their nearest target
@sanseverything900
@sanseverything900 2 жыл бұрын
I always wondered how they coded the ghosts to have some sort of 'plan' to trap Pacman back in the early 80s when video game AI was barely in its infancy. Turns out it's actually quite simple!
@ag2023en
@ag2023en 11 ай бұрын
Simple, yet brilliant! Pac-Man is an impressive game.
@johnmc3862
@johnmc3862 8 ай бұрын
Always simple when you know how.
@xander0479
@xander0479 4 жыл бұрын
This is actually really interesting. One of those things I've always wondered about but never thought to look into
@Iliek
@Iliek 4 жыл бұрын
I'm actually actually.
@xander0479
@xander0479 4 жыл бұрын
@@Iliek what
@Iliek
@Iliek 4 жыл бұрын
@@xander0479 Actually.
@omgomgomgd
@omgomgomgd 4 жыл бұрын
i accidentally actually a whole actual accident
@Iliek
@Iliek 4 жыл бұрын
I'm actually extremely actual.
@Kris18
@Kris18 4 жыл бұрын
In every video, the graphics and animations are simple, elegant, purposeful, and functional while the commentary is insightful and well-written. There's few channels that can rival the quality of those put out on this channel. As always, I thoroughly enjoyed this video, Dots. Thank you!
@clonefighter1996
@clonefighter1996 4 жыл бұрын
So you know his real channel is Dotsarecool, right?
@Kris18
@Kris18 4 жыл бұрын
@@clonefighter1996 "Real channel" lol ... and yes, and I referred to him as Dots in that comment.
@nihilsson
@nihilsson 4 жыл бұрын
This channel blows me away every time I watch a video... The clarity and insight is unbelievable
@kys9332
@kys9332 4 жыл бұрын
Reminds me of lemmino
@garlicfromplantsvs.zombies3285
@garlicfromplantsvs.zombies3285 4 жыл бұрын
Why is your profile pic a ruined epic face?
@That_Guy977
@That_Guy977 4 жыл бұрын
I love how at 18:29 Inky is like "Yeah, going far off the map will _probably_ help me catch Pacman."
@why-ue1tu
@why-ue1tu 3 жыл бұрын
He was thinking out of the box
@Nico_com_c
@Nico_com_c 2 жыл бұрын
@@why-ue1tu You're not a clown, you're the entire circus
@micahscott3895
@micahscott3895 3 ай бұрын
@@why-ue1tu I am the 69th like.
@ERRORRubiksZeraBrand
@ERRORRubiksZeraBrand Ай бұрын
@@why-ue1tu he's thinking outside of the house
@user-zm4ro7yh4e
@user-zm4ro7yh4e 4 жыл бұрын
Pac-Man is so amazing, even nowadays this game stuns me with it's AI.
@nemplayer1776
@nemplayer1776 4 жыл бұрын
The AI is amazing as it's so simple, so effective and so fun to play against at the same time. It's honestly a masterpiece.
@callinater6133
@callinater6133 Жыл бұрын
The original Pac-Man championship edition has the most developed and aggressive ghost AI
@corellioncrusaderproductio4679
@corellioncrusaderproductio4679 Жыл бұрын
@@callinater6133 Isn't it identical to the original, just more dangerous with the longer hallways on the map?
@callinater6133
@callinater6133 Жыл бұрын
@@corellioncrusaderproductio4679 technically you’re right but certain bugs that made the ghosts behave less intelligently were removed.
@corellioncrusaderproductio4679
@corellioncrusaderproductio4679 Жыл бұрын
@@callinater6133 Bugs? the only movement bugs the ghosts had was where the y tile for pinky and inky was mirrored to the x coordinate as well. I wasn't aware of any other bugs in the ghosts movement? Unless you mean they patched out the 'loops' that you can force them to go in, but that has nothing to do with glitches or issues with the intelligence of the model, that's intentionally designed because of certain areas in the map that they can't turn up at.
@333Rich33
@333Rich33 4 жыл бұрын
Seeing the path predictions at the end was super interesting and cool! Another great video as always!
@MrTrombonebandgeek
@MrTrombonebandgeek 4 жыл бұрын
333Rich333 Personal Channel i could watch that all dat
@FoxerTails
@FoxerTails 4 жыл бұрын
I'd actually like to see this be implemented as a fan game or mod. It could help people be better at Pac Man or be used to train... for people that need it I guess.
@BadBoyBird
@BadBoyBird 4 жыл бұрын
Its made of logic
@qwhale
@qwhale 4 жыл бұрын
Indeed
@RandomPsychic
@RandomPsychic 4 жыл бұрын
i wonder if there is an augmented reality app which overlays the best path to take....
@JoeMecca
@JoeMecca 4 жыл бұрын
This is a crazy great illustration of these mechanics. You do a good job helping me visualize these things. as a developer myself, it really adds a new layer to the code that is a lot harder to imagine just in my head
@earthwormjim91
@earthwormjim91 4 жыл бұрын
Is this impressive coding?
@JoeMecca
@JoeMecca 4 жыл бұрын
earthwormjim91 Well yea definitely. Given the hardware limitations these guys had at the time, engineers had to come up with extremely efficient solutions. People who made games back in the day were extremely intelligent and talented people
@earthwormjim91
@earthwormjim91 4 жыл бұрын
@@JoeMecca listening to all of this it sure sounds impressive lol, was curious what someone who sounds like they actually understand this stuff thought
@earthwormjim91
@earthwormjim91 4 жыл бұрын
@@KieferSkunk damn you're making me wanna look more ibto this guy lol. I did keep finding myself throughout the video thinking how impressive it is all these little things coming together into one intuitive whole is incredible
@portablerefrigerator4902
@portablerefrigerator4902 4 жыл бұрын
one day i shall make a game that is 10 times better than anything you make! just wait! i have begun my quest only recently but i... I HAVE THE MEMZ
@deepfriedcabbage4357
@deepfriedcabbage4357 4 жыл бұрын
So the ghosts' main differences are: Blinky chases you (usually from the back), Pinky tries to attack from the front, Inky works with Blinky to ambush you, and Clyde chases you unless he gets too close, making him head to the bottom left.
@Burn_Angel
@Burn_Angel 4 жыл бұрын
Well, yeah. That's the easy version everyone knows.
@SonicMaster519
@SonicMaster519 11 ай бұрын
“Eh, I got close enough to catching that guy. I’m going home. Good night everybody.”
@carultch
@carultch 4 жыл бұрын
I always thought Blinky was the most vicious of the ghosts, and now I understand why.
@reillywalker195
@reillywalker195 2 жыл бұрын
In Pac-Mania, he's also the fastest ghost contrary to what artwork on the cabinet might suggest. Outrunning Blinky in that game without the speed pellet is impossible. You can jump over him if you time it right, though.
@Mitsuraga
@Mitsuraga 10 ай бұрын
Pinky was always my mortal enemy. She's almost certainly killed me more than have any of the other ghosts. Blinky is probably second.
@travanforbes8989
@travanforbes8989 5 ай бұрын
Blinky is the most aggresive and hardest as he almost never stops chasing you, and Pinky doesn't make it any better because she seems to be in the perfect place to trap you
@chowdog8184
@chowdog8184 4 жыл бұрын
Blinky: Hi I'm Blinky Inky: Hi I'm Inky Pinky: Hi I'm Pinky Me: So you must be...? Clyde: Of course it's me Clyde
@TheRationalPi
@TheRationalPi 4 жыл бұрын
@@stayskeptic3923 Baby pacman's real dad.
@ChristopherSobieniak
@ChristopherSobieniak 4 жыл бұрын
@Like it says in the book. Too bad they didn't call Sue that in the second game, that would've worked perfectly!
@LKDesign
@LKDesign 4 жыл бұрын
No! This is Patrick!
@chawae55schannel54
@chawae55schannel54 4 жыл бұрын
Blinky: Hi I'm Blinky Inky: Hi I'm Inky Pinky: Hi I'm Pinky Me: So you must be...? Clyde:I like trains🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃
@johndorian4078
@johndorian4078 4 жыл бұрын
His parents were going to name him stinky, so yeah.. he lucked out.
@TheRationalPi
@TheRationalPi 4 жыл бұрын
Amazing example of emergence. The rules are so simple, but the resulting patterns after figuring in pacman's movement are very complex.
@hexyoutubeaccount
@hexyoutubeaccount 4 жыл бұрын
Yo, With the most gratitude in the world, I wanted to tell you that i've been falling asleep to your videos for the last month. My life has been extremely stressful and my anxiety is at an all time high but SOMEHOW these videos calm me down 100% of the time. The tone and cadence of your voice is so soothing to me, and the subject matter is so interesting that it pulls me away from all the stressful stuff in my life just enough so i can finally relax. I promise I always come back and rewatch the videos when i'm fully awake too :P I just wanted to say thanks. seriously. Thank you for this channel. Not only is it extremely fascinating, educational, and high quality, it's helping me get some damn sleep.
@leathernluv
@leathernluv 4 жыл бұрын
Thank you for finally giving me insight as to why some of my friends want to fall asleep on the phone. They tell me I have a soothing voice (to them, not to many others.) I agree with most people, there is nothing great about my voice or cadence. If someone can sing and hit notes perfectly but they sound like Fran Drescher and high pitch, not many buy that album. (I do not sound like Fran Drescher.) One friend used to call me nearly every night, and even asked me to move in. I couldn't put my finger on it, but you just did, thank you!
@SonicLoverDS
@SonicLoverDS 4 жыл бұрын
"Your videos make me fall asleep" sounds like the opposite of a compliment.
@alkohallick2901
@alkohallick2901 4 жыл бұрын
Me too. Either this or serial killer videos.
@soursugar4867
@soursugar4867 4 жыл бұрын
Clyde after almost getting to pacman: ight imma head out
@maximkoneva6517
@maximkoneva6517 3 жыл бұрын
Don't worry he has anexiety
@atrain818
@atrain818 2 жыл бұрын
If you watch one of those perfect pac man runs by one of those top players (like Billy mitchell) Clyde give them the most trouble by far
@Scrubermensch
@Scrubermensch 4 жыл бұрын
How I remember this Red is the fastest White/pink is the smartest Blue is the slowest Brown/orange doesn't care and kills pac-man accidentally lol
@chazlonewolff3320
@chazlonewolff3320 4 жыл бұрын
🤣🤣🤣 I hate when Clyde gets me
@Scrubermensch
@Scrubermensch 4 жыл бұрын
@@chazlonewolff3320 You can see in his eyes, that he doesn't even know, what he's doin lmao
@chazlonewolff3320
@chazlonewolff3320 4 жыл бұрын
I literally will be in a arcade and be like fucking Clyde you lucky weak fuck 🤣
@ohwoah4324
@ohwoah4324 4 жыл бұрын
you're colorblind
@Scrubermensch
@Scrubermensch 4 жыл бұрын
@@ohwoah4324 Did you play on a 90's TV and on an actual device?
@supercomputer276
@supercomputer276 4 жыл бұрын
I knew about how the targeting worked, but I didn't know exactly how the offset error for facing up occurred or about the safe tiles. Thanks!
@Supermario0727
@Supermario0727 4 жыл бұрын
I think it's caused by arithmetic overflow.
@zandbergx9747
@zandbergx9747 4 жыл бұрын
@@Supermario0727 I mean, he does kinda explain it in the video
@AFXffs772
@AFXffs772 4 жыл бұрын
Wow Thought it was: Red: chase Blue: trap Pinky: guards power pellets Orange: random
@TSwany
@TSwany 4 жыл бұрын
come to think of it, a ghost who guards the power pellets would be pretty neat
@dundee6402
@dundee6402 4 жыл бұрын
Loon She kinda does guard the pellets since you're usually going towards them and her strategy is to jump in front of you.
@jakubwegrzyn3798
@jakubwegrzyn3798 4 жыл бұрын
hmmm, i thought it was: red: random blue: random pinky: random orange: random
@andromedanangel6042
@andromedanangel6042 4 жыл бұрын
I thought it was... All of them: chase
@baitthewhoosh5739
@baitthewhoosh5739 4 жыл бұрын
Andromedan Angel me to
@pinballwiz45b
@pinballwiz45b 4 жыл бұрын
1:50 At this moment, Blinky changes his name to Cruise Elroy and unleashes his full potential. The other ghosts: "What did it cost?" Cruise Elroy: "Everything."
@ballisticboo7808
@ballisticboo7808 4 жыл бұрын
Now I'm just imagining the other ghosts watching Blinky undergo a Super Saiyan transformation. Thank you for that mental image.
@MakotoIchinose
@MakotoIchinose 4 жыл бұрын
Because of Pac-Man, we're used to take AI path finding for granted in games ever since. Nice video, as always!
@thehoodybadger3402
@thehoodybadger3402 4 жыл бұрын
Ah, another hoody. Hello!
@williamdeford292
@williamdeford292 3 жыл бұрын
One thing you might add is that when you are in the hiding spot and think you are safe, a switch to scatter mode can get you eaten. Clyde can get you if he reverses while in his vertical loop by coming across where the fruit appears. Inky can get you if he loops around the lower right energizer area. This has happened to me when I've left a game to go do something else and it waits long enough for the 4th scatter. Great video! Usually, though, if I have Clyde in his horizontal loop, I make it through fine--probably because the 4th scatter is too short for Inky to do anything harmful.
@AF.281OldChannel
@AF.281OldChannel 4 жыл бұрын
4:46 Pac-Man be like “OK WHOS BEEN MESSING WITH THE CLONE MACHINE?”.
@TheAtmonauti
@TheAtmonauti 4 жыл бұрын
The animation at the end showing the ghosts pathing is one of the coolest things I've ever seen in a retro game explainer video. Outstanding work!
@truepixelgamer8779
@truepixelgamer8779 4 жыл бұрын
I'm quite curious how the ghosts react and determine which direction to go on level 256 (aka the killscreen).
@Trimint123
@Trimint123 4 жыл бұрын
Because the kill screen doesn't have walls that will letting them know to turn 90 degrees, they just endlessly moving and had no way to chasing Pac-Man.
@Trimint123
@Trimint123 4 жыл бұрын
It's actually very easy to understand once you figure it out how either of these mechanics works.
@iceypumpkinhead
@iceypumpkinhead 4 жыл бұрын
They look at the absolute mess in front of them and charge forward and hope they don't become corrupted by it.
@Slash0mega
@Slash0mega 4 жыл бұрын
Its not to complication, the ghosts don't see cordores, it sees collision. it will update its target, then check for tiles that count for collision around it as per normal (down and left is blocked, must move up. left, up, and right is open, check target, take closest path). only wildcard would be a dead end. edit, remembered this article, blog.danielwellman.com/2008/10/real-life-tron-on-an-apple-iigs.html same thing happens kindof, a light cycle escapes into "memory" and starts driving by weather or not random bits of memory looks like a wall or not and navigates that way. of course, that guy had the added quirk of rewriting whatever code it drove over.
@oatmeal0
@oatmeal0 4 жыл бұрын
The game has no boundaries at level 256, so the ghosts enter scatter mode and stay that way forever.
@Windveils
@Windveils 4 жыл бұрын
I get chills every time I hear that intro jingle because I know I'm about to learn some cool shit.
@WaterShowsProd
@WaterShowsProd 4 жыл бұрын
I've heard before about how the ghosts target different points relative to Pac-Man, but this is the first time I've seen an explanation of how exactly that targeting translates to their navigation. Thank you very much. It's impossible really to explain just how much of a revelation Pac-Man was when it first arrived.
@Justin-TPG
@Justin-TPG 4 жыл бұрын
For anyone coming here wondering why the game counts tiles from the top right instead of the usual top left (and therefore why moving in a positive horizontal direction is calculated with a -1), this is because Pac-Man is a game which has the monitor rotated 90 degrees clockwise, making it vertically oriented. This provided a ‘vertical’ resolution of 288 rows instead of the 224 this hardware was capable of, allowing for the production of a tall maze. Internally, the game logic doesn’t change and the hardware operates as if the screen was in horizontal orientation, so when you move right, you’re really moving upwards. Conversely, when you move left, you’re really moving down the screen, hence this is calculated with 01 rather than -1.
@ephemeralViolette
@ephemeralViolette 4 жыл бұрын
Pretty sure this is also why level 0x00 (256) has the garbage tiles beginning from the top right.
@Justin-TPG
@Justin-TPG 4 жыл бұрын
theundeadwolf0 Good point!
@philrod1
@philrod1 4 жыл бұрын
Beautiful explanation! Ms. Pac-Man uses the same targeting system but has added random behavior rather than a fixed target during scatter mode. This makes the game less predictable.
@Thetrainbloke
@Thetrainbloke Жыл бұрын
Pinky ambushes you Blinky chases you Inky helps blinky Clyde is wondering if mayonnaise is an instrument
@davidtaylor9999
@davidtaylor9999 4 жыл бұрын
Your voice is so soothing yet really intelligent, and makes everything so easy to digest.
@Majoris239
@Majoris239 4 жыл бұрын
First time I am seeing Pythagorean's thereom being used outside of school. Pretty cool to see it used, and actually understand it
@wessmall7957
@wessmall7957 4 жыл бұрын
It's used a lot in videogames. Distance between two vectors is the square root of the sum of their squared x and y offsets. Even works in 3D. And if you only want to compare two distances, you don't even need to take the square root. Optimized Pythagorean's theorem 👍
@voxelfusion9894
@voxelfusion9894 4 жыл бұрын
After signing up for Patreon I finally realized why so many of the patron icons at the end are foxes... Fantastic video, I always thought the pacman ghost AI was complex, but it turns out it's far simpler! With those excellent animations to visualize it, it makes a lot of sense and does a good enough job, considering the limited cpu power.
@ethohalfslab
@ethohalfslab 4 жыл бұрын
Yeah, once you enter patreon you automatically become a furry ^w^
@KusaneHexaku
@KusaneHexaku 4 жыл бұрын
@@ethohalfslab OwO
@adjacent_dollar
@adjacent_dollar 11 ай бұрын
​@@ethohalfslab :confused_staring:
@ethohalfslab
@ethohalfslab 11 ай бұрын
@@adjacent_dollar >:3
@blueyandicy
@blueyandicy 5 ай бұрын
​@@ethohalfslabI don't get it...
@markusTegelane
@markusTegelane 4 жыл бұрын
Did I just watch a 20 minute video about ghosts in a video game? Yes, I did.
@kenrickeason
@kenrickeason 4 жыл бұрын
I'm not complaining..
@Uchuma74
@Uchuma74 4 жыл бұрын
This comment sounds sarcastic, but I genuinely found this video interesting.
@ffccardoso
@ffccardoso 4 жыл бұрын
20 minutes? I think it was 2... it could be 2 hours... !
@markusTegelane
@markusTegelane 3 жыл бұрын
@@Uchuma74 You can't hear my voice in a comment, you can only read it, so I may be serious....
@Uchuma74
@Uchuma74 3 жыл бұрын
@@markusTegelane True, I can only hear myself repeating the comment back to myself. "Seems" would have been a better word, which is evident with the trailing periods and how you hid the bottom line under a "see more" tab. I would say you're splitting hairs on this, but whatever 🤷‍♀️
@wkbj7924
@wkbj7924 4 жыл бұрын
This video explains so much. Back when I played Pac Man in the arcade, if I was stuck between ghosts, I used to jiggle the joystick between the two available directions, and the ghosts would sometimes go away. Now I understand why this happened. I'm pretty sure Inky is the ghost that got me the most often, though.
@reillywalker195
@reillywalker195 2 жыл бұрын
Inky gets me most often, too. His less predictable pathfinding is probably why.
@hanthonyc
@hanthonyc 3 жыл бұрын
Finally, someone who gets into the nitty-gritty technical aspects I've always wanted to learn more about. The visual graphics are super helpful too, and very nice looking
@FLYNN_TAGGART
@FLYNN_TAGGART 4 жыл бұрын
This is really well explained! I feel like I could make an open-source Pac-Man clone in a day now!
@euginarex5649
@euginarex5649 3 жыл бұрын
Pac-Man: is being chased by Pinky Pac-Man: *Turns around* Pinky: *Run away, frightened*
@TheBellKeeper
@TheBellKeeper 4 жыл бұрын
i hated seeing this in my recommendations because i dont want to hear how pacmans AI works for the hundredth time... but your presentation is very clear and unique. so good job
@Noah-tn5bc
@Noah-tn5bc 4 жыл бұрын
This is easily one of the best retro channels on KZfaq. Great content, man.
@HelenFire420
@HelenFire420 4 жыл бұрын
Can you do a video on Ms Pac-Man, and it’s differences to regular Pac-Man
@bigpboy1012
@bigpboy1012 4 жыл бұрын
The biggest differences are that the ghosts move randomly for the first 7 seconds, and losing a life doesn't reset the Random Number Generator.
@usualunusualkid7149
@usualunusualkid7149 4 жыл бұрын
@@bigpboy1012 and level 257 is reachable
@Burn_Angel
@Burn_Angel 4 жыл бұрын
Fruits move.
@tapatorta
@tapatorta 3 жыл бұрын
You play as ms pacman
@nickkenny5263
@nickkenny5263 3 жыл бұрын
Pac man is dummy thicc
@KingofKong
@KingofKong 4 жыл бұрын
I like watching these to see how accurate the information is. This is the best one I've seen, nice video!
@donaldklopper
@donaldklopper 4 жыл бұрын
Wow good job! Everything in the Pacman fonts too... Hats off to you.
@mahj
@mahj 4 жыл бұрын
I absolutely adore all your videos.
@iceypumpkinhead
@iceypumpkinhead 4 жыл бұрын
How would Pac-Man avoid the ghosts if he was controlled by AI?
@kalbert9367
@kalbert9367 4 жыл бұрын
If you put AI in charge of all the movement you can do anything.
@Rationalific
@Rationalific 2 жыл бұрын
Man, I didn't know that this kind information could be turned into such entertainment, but honestly, these types of videos are more entertaining to me than about any movie or TV show out there. It's great that such content is being made!
@TheMrRuttazzo
@TheMrRuttazzo 4 жыл бұрын
The enemies' AI from 40+ years ago was already more complex than in most of the current games. Not even kidding. There are exceptions, sure, but how many times have we seen those cannon fodder cookie-cutter enemies that have two behaviors: 1. Hiding/shield up and 2. Shooting/shield down, most of them have literally nothing more in their virtual brains.
@WaxxyOne
@WaxxyOne 4 жыл бұрын
The restrictions imposed by older hardware forced game developers to think outside the box and find creative solutions to gaming problems. By doing some very simple calculations, they were able to come up with four very different AI behaviors that made the ghosts seem smarter and less predictable as a result.
@alkohallick2901
@alkohallick2901 4 жыл бұрын
*enemy's
@Tokmurok
@Tokmurok 4 жыл бұрын
@@alkohallick2901 piss off.
@henryzhang3961
@henryzhang3961 4 жыл бұрын
What about enemies in 3d games like minecraft that have to pathfind around obstacles
@chickenbokernot2598
@chickenbokernot2598 4 жыл бұрын
Henry Zhang they don’t pathfind around obstacles they pathfind directly to the player if they are in range.
@Maltanx
@Maltanx 4 жыл бұрын
The quality and precision of your animations never cease to amaze me!
@ninjacell2999
@ninjacell2999 4 жыл бұрын
I've heard so many times about the different ghost movements, but this is the best explanation by far. Fantastic stuff.
@chauntikleer
@chauntikleer 4 жыл бұрын
I've read about the ghost behaviors many times, but this is the first time I've seen it presented in-game - it's much easier to visualize. Thank you!
@genesorianoautor3973
@genesorianoautor3973 2 жыл бұрын
That sequence at the end when all the ghosts are tracking pacman and Blinky has a circumference around pacman is dope. Some robocop type shit.
@bojosev5845
@bojosev5845 4 жыл бұрын
After playing PacMan for long enough, I could tell their patterns, and I always wondered how they all worked. Now I know, after many years! Thank you!
@fmilioni
@fmilioni 4 жыл бұрын
Wow, simpler than I expected, but works really nice. Thanks for uploading this fantastic video.
@dunkinnatalie
@dunkinnatalie 4 жыл бұрын
This was so informative. I was able to beat pacman in 15 minutes with both eyes closed, lefty flip. Thank you.
@alienxotic5028
@alienxotic5028 4 жыл бұрын
Bet
@TheBrendanMcCoy
@TheBrendanMcCoy 4 жыл бұрын
Love your style. No annoying intros, outtros, music, or shilling. Feels like a it's out of a professional online course. Instant subscribe.
@squidnipendleton3765
@squidnipendleton3765 4 жыл бұрын
Beautiful video. New to the channel and, frankly, I'm obsessed! Keep up the insightful and brilliant videos!
@DerpDerp3001
@DerpDerp3001 4 жыл бұрын
Request: Tim Follin's technique for making multi-channel music on a single beeper ZX-Spectrum.
@lamelama22
@lamelama22 4 жыл бұрын
Your animations are amazing and excellent at being illustrative of the points you're making. That animation at the end was super fun.
@TheWASHINGMACHINEBOY
@TheWASHINGMACHINEBOY 4 жыл бұрын
to simplify the ghosts’ chase behaviors, blinky simply targets the tile pac-man is on, pinky targets the tile four tiles in front of pac-man, inky works like blinky does except his target tile is affected by the location of blinky and clyde works like blinky too but he only chases pac-man if he is not within an eight-tile radius around pac-man
@astral2048
@astral2048 4 жыл бұрын
Really comprehensive! I'm going to try to make my own version of Pac-Man with the same mechanics now. I might leave the Pinky targeting offset bug but in all existing game-engines, it'll probably already be fixed (since they won't be using 2 bytes only and interpreting them as one 16-bit number). Also, most engines have pathfinding functions built-in to it. So I'll have to make that bug into a deliberate feature.
@kh6853
@kh6853 Жыл бұрын
Or... Leave it out to make things really annoying to pro players.
@TheGerkuman
@TheGerkuman 4 жыл бұрын
Big question: did they fix Pinky's offset values for Ms Pacman?
@danhouse1989
@danhouse1989 4 жыл бұрын
They did not fix Pinky for Ms Pac. The rest behave in a similar fashion but the programming issue wasn't fixed between the games since MS Pacman was a daughter board that was added on to a Pac Man. If you take off the daughter board and put a Z80 I think it was in its place, you can deconvert it back to Pacman.
@SumRandomDewd
@SumRandomDewd 3 жыл бұрын
Ms. Pac-Man was a mod and was stolen by Namco.
@reillywalker195
@reillywalker195 2 жыл бұрын
@@SumRandomDewd I wouldn't call Ms. Pac-Man "stolen" since Pac-Man was and is a Namco property. Namco's choice to license Ms. Pac-Man to Midway rather than sue the game out of existence was really rather sensible.
@Stilgarsan
@Stilgarsan 10 ай бұрын
15:33 more practical ways than the hiding spot? Given that the hiding spot is the only way to "pause" the arcade game when having an extended session, I think it is pretty practical.
@AndyAndromedaArt
@AndyAndromedaArt 4 жыл бұрын
Loved this video. It was rather fascinating actually. You also did an amazing job explaining everything with the animations!
@dastardlyman
@dastardlyman 3 жыл бұрын
amazing. im old and bought a small paperback book called "mastering pacman" way back in the early 1980s. i still have it. i play pacman on emulators like mame to this day. your video explains a lot. best wishes
@StageCraftBeast
@StageCraftBeast 4 жыл бұрын
You should do a video on the Gen 2 cries of Pokemon Gold and Silver.
@alienxotic5028
@alienxotic5028 4 жыл бұрын
Hah
@Trimint123
@Trimint123 4 жыл бұрын
Not necessarily since it still the same coding as Gen 1 since that games is base of, but with more cry noises.
@carprincess
@carprincess 4 жыл бұрын
Thanks for explaining the game mechanics for the ghosts so thoroughly. I knew they all had different movement patterns but never knew to what extent.
@totallynotabot151
@totallynotabot151 3 жыл бұрын
I remember reading write ups of the ghost behaviors & overflow bug a long time ago, but your animations make it a lot more intuitive. Thank you!
@zitou2170
@zitou2170 4 жыл бұрын
This, was a lot less complicated than I thought.... I now feel like a god at Pac-Man.
@KusaneHexaku
@KusaneHexaku 4 жыл бұрын
Great explanations and visuals as always! I kinda wanna randomly say that the tiny ghosts walking around is surprisingly cute u.u
@Dryon1196
@Dryon1196 4 жыл бұрын
Great video, it's very satisfying to be able to understand such things. And your animations/slides are top-notch, with your explanations the technical stuff goes really smoothly. Thank you for this one !
@superpi2
@superpi2 3 жыл бұрын
Just a random connection I made... in PAC-MAN 99, about halfway through each match, arrows appear above the ghost house and the spawn area. I never knew what these meant until watching this, but it seems that they appear to signify that the intersection turn restrictions mentioned at 13:12 are disabled in order to eliminate the ability to exploit the ghost/jammer AI. I may be completely wrong about that, but if that is the case then that's pretty cool.
@everythingthrice2582
@everythingthrice2582 4 жыл бұрын
3:35 that explained why when I was there the ghost fan back around
@gretarreynisson3280
@gretarreynisson3280 4 жыл бұрын
Last time I was this early Billy Mitchell still had credibility
@thecrimsoncreep6665
@thecrimsoncreep6665 4 жыл бұрын
I doubt you were around in the Stone Age
@anselmschueler
@anselmschueler 4 жыл бұрын
Who the heck is that and why has he lost credibility
@catlover10192
@catlover10192 4 жыл бұрын
@@WetDogSquad Pretty sure Billy Mitchell was recently caught faking scores.
@deg6788
@deg6788 4 жыл бұрын
Hahahaha billy
@Ziggy405
@Ziggy405 4 жыл бұрын
Great video. I cant imagine the editing and research that went into something like this. A+
@ShoshoDupers
@ShoshoDupers 11 ай бұрын
Inky: actively avoids the player Blinky: hunts Pinky: ambushes Clyde: does whatever the fuck he wants
@ryansederstrom4737
@ryansederstrom4737 4 жыл бұрын
Another great video! Keep up the good work!
@BinaryHedgehog1
@BinaryHedgehog1 4 жыл бұрын
I once read a great write-up of the ghost AI, but seeing it in action is even better. I did get a bit better once I better understood the ghost patterns.
@andyprice2383
@andyprice2383 4 жыл бұрын
Amazingly well put together video. The narration is fantastic. Very professional.
@SammYLightfooD
@SammYLightfooD 2 жыл бұрын
Not only the AI's algorithm is really impressive for it's time, also this explanation and visualization is absolutely brilliant. Thanks!
@SleepyAdam
@SleepyAdam 2 жыл бұрын
It's impressive that even if you don't know exactly how the AI works, they gave the ghost's their own personalities that sort of help you understand how they're gonna try and come at you. Pac-Man really was one of the first games with character and it ties in directly to the gameplay.
@mattybrunolucaszeneresalas9072
@mattybrunolucaszeneresalas9072 2 жыл бұрын
5:21 what does this mean? Regardless of whether they are in frightened mode or not? Isn’t that the point?
@TheRedSmarty
@TheRedSmarty Жыл бұрын
@@mattybrunolucaszeneresalas9072 The ghosts turn around when Pac-Man gets a power pellet. This still happens if the ghosts were already frightened before the pellet is collected.
@corellioncrusaderproductio4679
@corellioncrusaderproductio4679 Жыл бұрын
@@mattybrunolucaszeneresalas9072 Basically no matter what, a power pellet means the ghosts will reverse. Even in later levels where they cannot be in fright mode, they still reverse. The only exception is when they are in the ghost house. They do not reverse until exiting the pen in this case.
@mattybrunolucaszeneresalas9072
@mattybrunolucaszeneresalas9072 Жыл бұрын
@@corellioncrusaderproductio4679 I thought so :)
@mattybrunolucaszeneresalas9072
@mattybrunolucaszeneresalas9072 Жыл бұрын
@@TheRedSmarty thank you :3
@therealmonczak
@therealmonczak 4 жыл бұрын
Hey, so now I know how I behave. Great video!
@erawlins1
@erawlins1 4 жыл бұрын
Particularly impressive video, well done. The animations really made it clear how this works
@elcarajito6929
@elcarajito6929 4 жыл бұрын
My man, you deserve a Nobel Prize for figuring this whole thing out. Mad kudos to you!
@isavenewspapers8890
@isavenewspapers8890 2 жыл бұрын
I find it exceedingly unlikely that this entire video is original research.
@MidnightMechanic
@MidnightMechanic 4 жыл бұрын
I wonder if it's possible to download an overlay to show their paths and targets as the end of the video showed, that looks like a cool mod, with Pacman constantly with a target and reticle on his back.
@greenknight9000
@greenknight9000 4 жыл бұрын
AWWW YESS THIS IS ONE I'VE BEEN WAITING FOR A LOOOONG TIME!
@terryanisaurasrex2207
@terryanisaurasrex2207 3 жыл бұрын
I find it interesting how blindly is kinda of the leader since since he’s the one on the offensive and inky and pinky help play to his strengths by trapping and pincering you and clyde is more of area control than an offensive threat
@reillywalker195
@reillywalker195 2 жыл бұрын
In that sense, Clyde really isn't stupid nor lazy. He's not trying to catch Pac-Man directly but rather hem Pac-Man in to help the other three ghosts.
@CallousCoder
@CallousCoder 3 жыл бұрын
The production value of this video is awesome! And the explanations equally so! 👏
@CaptainCafe
@CaptainCafe 4 жыл бұрын
This is so interesting! Thank you for making this. Very enjoyable smart content.
@guycrew728
@guycrew728 4 жыл бұрын
Woo more content!
@trickysoft
@trickysoft 4 ай бұрын
Great explanation of the artifact that I saw when writing pacman for the BBC micro. I implemented the pathfinding from a doc I found explaining it, so didn't have the overflow and always got the calculation "correct". John Studley, one of the perfect pacman players played my version and before long had found a place where you can sit and no ghosts will get you. I checked the original code and found the maths was "wrong" but have left it "as planned" in my version. Who would have thought a simple optimisation would have caused such a useful "bug". Maybe they knew, we may never know!
@MotiviqueStudio
@MotiviqueStudio 4 жыл бұрын
This is way more engrossing than it should be, but having grown up with this game, it's like looking behind the curtain. The visualization at the end of this video is simply amazing.
@Aagames_
@Aagames_ 4 жыл бұрын
I thought the red one targeted you, and the others were random
@asher-360
@asher-360 4 жыл бұрын
That made me imagine blinky trying to chase pacman and everyone else goofing around
@BeanSoup9885
@BeanSoup9885 4 жыл бұрын
Didn't there used to be a ghost called "Dinky"
@fnfdraws5585
@fnfdraws5585 4 жыл бұрын
SkyBurger Productions who’s dinky?
@Mini-se6cx
@Mini-se6cx 3 жыл бұрын
@@fnfdraws5585 unused ghost.
@retroelectrical
@retroelectrical 4 жыл бұрын
really great video! Thanks for taking the time to explain the patterns. It is something I've always wanted to know since I was a kid.
@MarcoCarmonaT
@MarcoCarmonaT 4 жыл бұрын
Please don’t stop making these videos. Awesome explanations.
How Frightened Ghosts Decide Where to Go
29:47
Retro Game Mechanics Explained
Рет қаралды 239 М.
Pac-Man Kill Screen Explained
11:32
Retro Game Mechanics Explained
Рет қаралды 2,2 МЛН
WHY THROW CHIPS IN THE TRASH?🤪
00:18
JULI_PROETO
Рет қаралды 9 МЛН
100😭🎉 #thankyou
00:28
はじめしゃちょー(hajime)
Рет қаралды 57 МЛН
MissingNo.'s Glitchy Appearance Explained
21:20
Retro Game Mechanics Explained
Рет қаралды 1 МЛН
What Pac-Man Brought to Game Design | Design Icons
16:01
Game Maker's Toolkit
Рет қаралды 380 М.
Super Mario Bros. 3 - Wrong Warp
10:07
Retro Game Mechanics Explained
Рет қаралды 811 М.
How we fit an NES game into 40 Kilobytes
12:04
Morphcat Games
Рет қаралды 3,5 МЛН
Evolving AIs - Predator vs Prey, who will win?
12:15
Pezzza's Work
Рет қаралды 2,8 МЛН
Pikachu's Cry in Pokémon Yellow Explained
21:14
Retro Game Mechanics Explained
Рет қаралды 623 М.
LOKMAN: Pac-Man's Maze Mayhem Madness
12:19
LOKMAN
Рет қаралды 9 МЛН
Could You SURVIVE in Super Mario 64?
13:42
Pretzel
Рет қаралды 329 М.
The Nintendo Entertainment System's Loading Seam
5:31
Retro Game Mechanics Explained
Рет қаралды 832 М.
AI Learns to Escape (deep reinforcement learning)
14:11
AI Warehouse
Рет қаралды 3,5 МЛН
ОФИГЕТЬ, БРАВЛ СТАРС?!😱
1:33:47
TicTac
Рет қаралды 1,5 МЛН
РАНГ ЖАНА СЕЗОН  - АДЕЛАЙДА СТРИМ !
5:53:20