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: kzbin.info/www/bejne/hpTCl5eJeryFgK8
@heheheiamasuperstarwarrior92815 жыл бұрын
Thanks for the video! I always wondered how the ghost ai works.
@paulthompson96685 жыл бұрын
Thumbs down for supporting Jack Conte's Internet censorship machine (i.e., Patreon).
@bfdicremurumu15815 жыл бұрын
Is this the same for Google pac-man or are they all just like blinky in that one?
@nobodynada_5 жыл бұрын
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.
@lefmike5 жыл бұрын
@@orangeparabola and king crimson nono yoku
@diacosiapentacontahex4 жыл бұрын
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 Жыл бұрын
He may also get scared when Pacboy is about to get the big ball, but this was an idea about his personality
@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 Жыл бұрын
He’s just like me fr
@Exportasjpeg Жыл бұрын
I like how the animated series took how the ghosts in the game act and made it their personalities. Especially Clyde's
@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".
@RadiantSharaShaymin5 жыл бұрын
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.
@ballisticboo78083 жыл бұрын
Clyde is like "ok I made progress on my anxiety today, gonna go home and try again tomorrow."
@RadiantSharaShaymin3 жыл бұрын
@@ballisticboo7808 I'm making that the official cannon in my mind. Clyde is one of the best characters ever designed.
@xboydubose72543 жыл бұрын
Clyde: I'm gonna get him, oh... nevermind.
@noiwont40813 жыл бұрын
this comment has 666 likes...
@reclaimer00183 жыл бұрын
clyde is the accidental killer
@homemadepro5 жыл бұрын
Blinky is the chaser Pinky is the ambusher Inky is the trickster Clyde is....just Clyde
@leathernluv5 жыл бұрын
@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.
@Codricmon5 жыл бұрын
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.
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!
@clonefighter19965 жыл бұрын
So you know his real channel is Dotsarecool, right?
@Kris185 жыл бұрын
@@clonefighter1996 "Real channel" lol ... and yes, and I referred to him as Dots in that comment.
@nihilsson5 жыл бұрын
This channel blows me away every time I watch a video... The clarity and insight is unbelievable
@kys93325 жыл бұрын
Reminds me of lemmino
@garlicfromplantsvs.zombies32854 жыл бұрын
Why is your profile pic a ruined epic face?
@xander04795 жыл бұрын
This is actually really interesting. One of those things I've always wondered about but never thought to look into
@Iliek5 жыл бұрын
I'm actually actually.
@xander04795 жыл бұрын
@@Iliek what
@Iliek5 жыл бұрын
@@xander0479 Actually.
@omgomgomgd5 жыл бұрын
i accidentally actually a whole actual accident
@Iliek5 жыл бұрын
I'm actually extremely actual.
@sanseverything9002 жыл бұрын
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 Жыл бұрын
Simple, yet brilliant! Pac-Man is an impressive game.
@johnmc3862 Жыл бұрын
Always simple when you know how.
@pleasedontwatchthese95935 жыл бұрын
I have wanted to make a pacman clone but I did not know how the AI worked. This was a big help.
@alienxotic50285 жыл бұрын
Can I see it
@bluespam-number-42245 жыл бұрын
PleaseDontWatchThese link us if you ever succeed
@Pixelbitie5 жыл бұрын
Hope it goes well!
@oppo2105 жыл бұрын
Are you going to make sure your version also has the overflow bug?
@manjuegazos46725 жыл бұрын
If you make a pacman clone, this will happen in a different way: The ghost will go to their nearest target
@pepperonipizza82005 жыл бұрын
Blinky: Just TOUCH him Clyde! Clyde: No, I don’t think I will.
@ryangonzalez81214 жыл бұрын
Clyde doesnt refuse,hes just scared! =
@retrohero64butonhisphone804 жыл бұрын
@@ryangonzalez8121 Please tell me you're joking.
@ryangonzalez81214 жыл бұрын
@@retrohero64butonhisphone80 no im not
@retrohero64butonhisphone804 жыл бұрын
@@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*
@bluberrydee62054 жыл бұрын
@@retrohero64butonhisphone80 Meh, that's really your opinion
@333Rich335 жыл бұрын
Seeing the path predictions at the end was super interesting and cool! Another great video as always!
@MrTrombonebandgeek5 жыл бұрын
333Rich333 Personal Channel i could watch that all dat
@FoxerTails5 жыл бұрын
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.
@Pēm̐cā5 жыл бұрын
Its made of logic
@qwhale5 жыл бұрын
Indeed
@RandomPsychic5 жыл бұрын
i wonder if there is an augmented reality app which overlays the best path to take....
@huntergreer35995 жыл бұрын
Me at 11pm: “man I should probably go to sleep early tonight” Me at 3am: “PAC-Man Ghost AI explained”
@ori5_5 жыл бұрын
I was here at 1am today lool
@huntergreer35995 жыл бұрын
Zigzagunz funny thing is that I made this comment at 3:00am
@inkfire22365 жыл бұрын
Me at 3am: *dEtAiLs Of My SeCtOrS eNeRgY sHoUlD bE bEtWeEn Me AnD mS pAc ThAnK yOu VeRy MuCh*
@liamsamonte76665 жыл бұрын
It's 11:01 for me
@coolcreeper54345 жыл бұрын
Am here at 12am oof
@JoeMecca5 жыл бұрын
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
@earthwormjim915 жыл бұрын
Is this impressive coding?
@JoeMecca5 жыл бұрын
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
@earthwormjim915 жыл бұрын
@@JoeMecca listening to all of this it sure sounds impressive lol, was curious what someone who sounds like they actually understand this stuff thought
@earthwormjim915 жыл бұрын
@@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
@portablerefrigerator49025 жыл бұрын
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
@xboydubose72543 жыл бұрын
Blinky: Chase Inky: Close in Pinky: Surprise Clyde: *I'm just built different*
@jstarandomdude3 жыл бұрын
Clyde usually retreats if he sees u
@xboydubose72543 жыл бұрын
@@jstarandomdude yea that's the joke
@kemcolian20019 ай бұрын
@abbiebabbles "I'm built different (incorrectly)"
@deepfriedcabbage5 жыл бұрын
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_Angel5 жыл бұрын
Well, yeah. That's the easy version everyone knows.
@SonicMaster519 Жыл бұрын
“Eh, I got close enough to catching that guy. I’m going home. Good night everybody.”
@hexyoutubeaccount5 жыл бұрын
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.
@leathernluv5 жыл бұрын
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!
@SonicLoverDS5 жыл бұрын
"Your videos make me fall asleep" sounds like the opposite of a compliment.
@alkohallick29014 жыл бұрын
Me too. Either this or serial killer videos.
@That_Guy9775 жыл бұрын
I love how at <a href="#" class="seekto" data-time="1109">18:29</a> Inky is like "Yeah, going far off the map will _probably_ help me catch Pacman."
@why-ue1tu3 жыл бұрын
He was thinking out of the box
@Nico_com_c3 жыл бұрын
@@why-ue1tu You're not a clown, you're the entire circus
@micahscott38959 ай бұрын
@@why-ue1tu I am the 69th like.
@ERRORRubiksZeraBrand7 ай бұрын
@@why-ue1tu he's thinking outside of the house
@Jackaboy36953 ай бұрын
Yeah, what if pac-man commits cheat?
@AFXffs7725 жыл бұрын
Wow Thought it was: Red: chase Blue: trap Pinky: guards power pellets Orange: random
@TSwany5 жыл бұрын
come to think of it, a ghost who guards the power pellets would be pretty neat
@dundee64024 жыл бұрын
Loon She kinda does guard the pellets since you're usually going towards them and her strategy is to jump in front of you.
@jakubwegrzyn37984 жыл бұрын
hmmm, i thought it was: red: random blue: random pinky: random orange: random
@andromedanangel60424 жыл бұрын
I thought it was... All of them: chase
@baitthewhoosh57394 жыл бұрын
Andromedan Angel me to
@supercomputer2765 жыл бұрын
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!
@Supermario07275 жыл бұрын
I think it's caused by arithmetic overflow.
@zandbergx97475 жыл бұрын
@@Supermario0727 I mean, he does kinda explain it in the video
@TheRationalPi5 жыл бұрын
Amazing example of emergence. The rules are so simple, but the resulting patterns after figuring in pacman's movement are very complex.
@TheCow-j1l5 жыл бұрын
Pac-Man is so amazing, even nowadays this game stuns me with it's AI.
@nemplayer17765 жыл бұрын
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.
@callinater61332 жыл бұрын
The original Pac-Man championship edition has the most developed and aggressive ghost AI
@corellioncrusaderproductio46792 жыл бұрын
@@callinater6133 Isn't it identical to the original, just more dangerous with the longer hallways on the map?
@callinater61332 жыл бұрын
@@corellioncrusaderproductio4679 technically you’re right but certain bugs that made the ghosts behave less intelligently were removed.
@corellioncrusaderproductio46792 жыл бұрын
@@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.
@Scrubermensch5 жыл бұрын
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
@chazlonewolff33205 жыл бұрын
🤣🤣🤣 I hate when Clyde gets me
@Scrubermensch5 жыл бұрын
@@chazlonewolff3320 You can see in his eyes, that he doesn't even know, what he's doin lmao
@chazlonewolff33205 жыл бұрын
I literally will be in a arcade and be like fucking Clyde you lucky weak fuck 🤣
@ohwoah43245 жыл бұрын
you're colorblind
@Scrubermensch5 жыл бұрын
@@ohwoah4324 Did you play on a 90's TV and on an actual device?
@chowdog81845 жыл бұрын
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
@TheRationalPi5 жыл бұрын
@@stayskeptic3923 Baby pacman's real dad.
@ChristopherSobieniak5 жыл бұрын
@Like it says in the book. Too bad they didn't call Sue that in the second game, that would've worked perfectly!
@LKDesign5 жыл бұрын
No! This is Patrick!
@chawae55schannel545 жыл бұрын
Blinky: Hi I'm Blinky Inky: Hi I'm Inky Pinky: Hi I'm Pinky Me: So you must be...? Clyde:I like trains🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃🚃
@johndorian40785 жыл бұрын
His parents were going to name him stinky, so yeah.. he lucked out.
@williamdeford2923 жыл бұрын
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.
@TheAtmonauti4 жыл бұрын
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!
@WaterShowsProd5 жыл бұрын
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.
@MakotoIchinose5 жыл бұрын
Because of Pac-Man, we're used to take AI path finding for granted in games ever since. Nice video, as always!
@thehoodybadger34025 жыл бұрын
Ah, another hoody. Hello!
@truepixelgamer87795 жыл бұрын
I'm quite curious how the ghosts react and determine which direction to go on level 256 (aka the killscreen).
@Trimint1235 жыл бұрын
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.
@Trimint1235 жыл бұрын
It's actually very easy to understand once you figure it out how either of these mechanics works.
@iceypumpkinhead5 жыл бұрын
They look at the absolute mess in front of them and charge forward and hope they don't become corrupted by it.
@Slash0mega4 жыл бұрын
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.
@oatmeal04 жыл бұрын
The game has no boundaries at level 256, so the ghosts enter scatter mode and stay that way forever.
@pinballwiz45b5 жыл бұрын
<a href="#" class="seekto" data-time="110">1:50</a> 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."
@ballisticboo78084 жыл бұрын
Now I'm just imagining the other ghosts watching Blinky undergo a Super Saiyan transformation. Thank you for that mental image.
@carultch5 жыл бұрын
I always thought Blinky was the most vicious of the ghosts, and now I understand why.
@reillywalker1952 жыл бұрын
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 Жыл бұрын
Pinky was always my mortal enemy. She's almost certainly killed me more than have any of the other ghosts. Blinky is probably second.
@travanforbes898911 ай бұрын
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
@mohammadayubkhan9995 ай бұрын
Ye , when I play pacman blinky and pinky are so aggressive and get me all the time. Inky and Clyde do nothing.
@philrod15 жыл бұрын
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.
@Justin-TPG5 жыл бұрын
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.
@ephemeralViolette5 жыл бұрын
Pretty sure this is also why level 0x00 (256) has the garbage tiles beginning from the top right.
@Justin-TPG5 жыл бұрын
theundeadwolf0 Good point!
@soursugar48674 жыл бұрын
Clyde after almost getting to pacman: ight imma head out
@maximkoneva65173 жыл бұрын
Don't worry he has anexiety
@atrain8183 жыл бұрын
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
@davidtaylor99995 жыл бұрын
Your voice is so soothing yet really intelligent, and makes everything so easy to digest.
@Windveils5 жыл бұрын
I get chills every time I hear that intro jingle because I know I'm about to learn some cool shit.
@hanthonyc3 жыл бұрын
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
@wkbj79245 жыл бұрын
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.
@reillywalker1952 жыл бұрын
Inky gets me most often, too. His less predictable pathfinding is probably why.
@carprincess5 жыл бұрын
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.
@AF.281OldChannel4 жыл бұрын
<a href="#" class="seekto" data-time="286">4:46</a> Pac-Man be like “OK WHOS BEEN MESSING WITH THE CLONE MACHINE?”.
@chauntikleer4 жыл бұрын
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!
@FLYNN_TAGGART5 жыл бұрын
This is really well explained! I feel like I could make an open-source Pac-Man clone in a day now!
@Rationalific2 жыл бұрын
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!
@voxelfusion98945 жыл бұрын
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.
@ethohalfslab5 жыл бұрын
Yeah, once you enter patreon you automatically become a furry ^w^
@KusaneHexaku5 жыл бұрын
@@ethohalfslab OwO
@adjacent_dollar Жыл бұрын
@@ethohalfslab :confused_staring:
@ethohalfslab Жыл бұрын
@@adjacent_dollar >:3
@blueyandicy10 ай бұрын
@@ethohalfslabI don't get it...
@ninjacell29995 жыл бұрын
I've heard so many times about the different ghost movements, but this is the best explanation by far. Fantastic stuff.
@TheBellKeeper5 жыл бұрын
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-ost5 жыл бұрын
This is easily one of the best retro channels on KZbin. Great content, man.
@astral20485 жыл бұрын
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 Жыл бұрын
Or... Leave it out to make things really annoying to pro players.
@HelenFire4205 жыл бұрын
Can you do a video on Ms Pac-Man, and it’s differences to regular Pac-Man
@bigpboy10125 жыл бұрын
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.
@usualunusualkid71495 жыл бұрын
@@bigpboy1012 and level 257 is reachable
@Burn_Angel5 жыл бұрын
Fruits move.
@tapatorta4 жыл бұрын
You play as ms pacman
@nickkenny52634 жыл бұрын
Pac man is dummy thicc
@KingofKong5 жыл бұрын
I like watching these to see how accurate the information is. This is the best one I've seen, nice video!
@TheMrRuttazzo5 жыл бұрын
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.
@WaxxyOne4 жыл бұрын
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.
@alkohallick29014 жыл бұрын
*enemy's
@Tokmurok4 жыл бұрын
@@alkohallick2901 piss off.
@henryzhang39614 жыл бұрын
What about enemies in 3d games like minecraft that have to pathfind around obstacles
@chickenbokernot25984 жыл бұрын
Henry Zhang they don’t pathfind around obstacles they pathfind directly to the player if they are in range.
@Majoris2395 жыл бұрын
First time I am seeing Pythagorean's thereom being used outside of school. Pretty cool to see it used, and actually understand it
@wessmall79574 жыл бұрын
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 👍
@fmilioni5 жыл бұрын
Wow, simpler than I expected, but works really nice. Thanks for uploading this fantastic video.
@donaldklopper5 жыл бұрын
Wow good job! Everything in the Pacman fonts too... Hats off to you.
@TheBrendanMcCoy5 жыл бұрын
Love your style. No annoying intros, outtros, music, or shilling. Feels like a it's out of a professional online course. Instant subscribe.
@DerpDerp30015 жыл бұрын
Request: Tim Follin's technique for making multi-channel music on a single beeper ZX-Spectrum.
@dunkinnatalie5 жыл бұрын
This was so informative. I was able to beat pacman in 15 minutes with both eyes closed, lefty flip. Thank you.
@alienxotic50285 жыл бұрын
Bet
@Nightshft423 жыл бұрын
Not only the AI's algorithm is really impressive for it's time, also this explanation and visualization is absolutely brilliant. Thanks!
@bojosev58455 жыл бұрын
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!
@SleepyAdam3 жыл бұрын
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.
@mattybrunolucaszeneresalas90723 жыл бұрын
5:21 what does this mean? Regardless of whether they are in frightened mode or not? Isn’t that the point?
@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 Жыл бұрын
@@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 Жыл бұрын
@@corellioncrusaderproductio4679 I thought so :)
@mattybrunolucaszeneresalas9072 Жыл бұрын
@@TheRedSmarty thank you :3
@TheWASHINGMACHINEBOY5 жыл бұрын
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
@Maltanx5 жыл бұрын
The quality and precision of your animations never cease to amaze me!
@superpi23 жыл бұрын
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 <a href="#" class="seekto" data-time="792">13:12</a> 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.
@mahj5 жыл бұрын
I absolutely adore all your videos.
@elcarajito69295 жыл бұрын
My man, you deserve a Nobel Prize for figuring this whole thing out. Mad kudos to you!
@isavenewspapers88902 жыл бұрын
I find it exceedingly unlikely that this entire video is original research.
@iceypumpkinhead5 жыл бұрын
How would Pac-Man avoid the ghosts if he was controlled by AI?
@kalbert93675 жыл бұрын
If you put AI in charge of all the movement you can do anything.
@MotiviqueStudio5 жыл бұрын
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.
@dastardlyman3 жыл бұрын
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
@trickysoft9 ай бұрын
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!
@BinaryHedgehog15 жыл бұрын
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.
@totallynotabot1513 жыл бұрын
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!
@markusTegelane5 жыл бұрын
Did I just watch a 20 minute video about ghosts in a video game? Yes, I did.
@kenrickkahn5 жыл бұрын
I'm not complaining..
@Uchuma745 жыл бұрын
This comment sounds sarcastic, but I genuinely found this video interesting.
@ffccardoso5 жыл бұрын
20 minutes? I think it was 2... it could be 2 hours... !
@markusTegelane4 жыл бұрын
@@Uchuma74 You can't hear my voice in a comment, you can only read it, so I may be serious....
@Uchuma744 жыл бұрын
@@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 🤷♀️
@zitou21705 жыл бұрын
This, was a lot less complicated than I thought.... I now feel like a god at Pac-Man.
@euginarex56493 жыл бұрын
Pac-Man: is being chased by Pinky Pac-Man: *Turns around* Pinky: *Run away, frightened*
@TheSameGoobyGuy2 жыл бұрын
This brings up the question… what would happen if it was just you and inky in a level?
@Thetrainbloke2 жыл бұрын
Pinky ambushes you Blinky chases you Inky helps blinky Clyde is wondering if mayonnaise is an instrument
@KusaneHexaku5 жыл бұрын
Great explanations and visuals as always! I kinda wanna randomly say that the tiny ghosts walking around is surprisingly cute u.u
@bluberrydee62055 жыл бұрын
The real names of the ghosts may or may not give hints about their AI Blinky - Shadow (Since Pac Man is the target and a shadow follows something, this implies that Blinky will follow Pac Man) Pinky - Speedy ( I guess Pinky will "speed" ahead of Pac Man, though Blinky speeds up after a certain amount of pellets are gone) Inky - Bashful ( I guess he's to scared to face Pac Man alone so he goes with Blinky) Clyde - Pokey ( Idk how this has anything to do with his AI but its better that Clyde which sounds like Collide which is the last thing you expect Clyde to do)
@qaaris42804 жыл бұрын
I think Pokey is another word for 'stupid'. So Clyde is just called Stupid.
@pegleg7594 жыл бұрын
Maybe pokey as in he "pokes" at pacman by getting close then running off
@bluberrydee62052 ай бұрын
@@pegleg759Late reply but this is a good one
@lamelama225 жыл бұрын
Your animations are amazing and excellent at being illustrative of the points you're making. That animation at the end was super fun.
@ezioauditore41205 жыл бұрын
Wow! I never knew there was a pattern for the ghosts and it was guided mathematically. Now I understand more how a game is and how hard to program it behave in a manner the devs wanted it to. Thanks for this information. 😁
@MrJBRPG5 жыл бұрын
This is a great start on game AI on the arcade section. Have you consider doing Joust next? Joust does have AI that not only have path-finding, they also behave exactly like the player in movement and controls. The Pterodactyl is the only exception.
@StageCraftBeast5 жыл бұрын
You should do a video on the Gen 2 cries of Pokemon Gold and Silver.
@alienxotic50285 жыл бұрын
Hah
@Trimint1235 жыл бұрын
Not necessarily since it still the same coding as Gen 1 since that games is base of, but with more cry noises.
@AndyAndromedaArt5 жыл бұрын
Loved this video. It was rather fascinating actually. You also did an amazing job explaining everything with the animations!
@MidnightMechanic5 жыл бұрын
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.
@Tysonyar5 жыл бұрын
This video is why I love KZbin. I had no idea the AI in Pac Man was so complex! Great video.
@squidnipendleton37655 жыл бұрын
Beautiful video. New to the channel and, frankly, I'm obsessed! Keep up the insightful and brilliant videos!
@genesorianoautor39732 жыл бұрын
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.
@TheGerkuman5 жыл бұрын
Big question: did they fix Pinky's offset values for Ms Pacman?
@danhouse19895 жыл бұрын
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.
@SumRandomDewd4 жыл бұрын
Ms. Pac-Man was a mod and was stolen by Namco.
@reillywalker1952 жыл бұрын
@@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 Жыл бұрын
<a href="#" class="seekto" data-time="933">15:33</a> 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.
@gretarreynisson32805 жыл бұрын
Last time I was this early Billy Mitchell still had credibility
@thecrimsoncreep66655 жыл бұрын
I doubt you were around in the Stone Age
@anselmschueler5 жыл бұрын
Who the heck is that and why has he lost credibility
@catlover101925 жыл бұрын
@@WetDogSquad Pretty sure Billy Mitchell was recently caught faking scores.
@deg67885 жыл бұрын
Hahahaha billy
@LendriMujina9 ай бұрын
"Blinky chases, Pinky ambushes, Inky scares easily, and [Clyde/Sue] isn't very smart." - Namco Museum (GameCube version)
@neetrain4 жыл бұрын
One question in mind: Could various Pac-Man rip-offs at that time -- when Pac-Man hit the scene -- implement these behaviors?
@SmugMatty5 жыл бұрын
You did a very good job doing a breakdown on how each ghost's AI actually works and really enjoyed seeing the ghost's AI in real time. Wonder if it's possible to make a plugin for it on a emulator to show real-time ghost AI.
@PrimitiveOs5 жыл бұрын
Ir you ever have the chance do a tutorial on your explaining animations. It is amazing how your graphics helps to understand concepts and would ve great even for my job. Great work
@cheersluv55105 жыл бұрын
kzbin.info/www/bejne/r6a5qWeHfpuZf68
@BrekMartin5 жыл бұрын
I shudder to think how much time went into programming for the video. Well done!
@pauldeddens53492 жыл бұрын
It makes me wonder if it would make any significant difference if the targeting offset on Pinky and Inky were fixed. It looks small, but leads to pretty significant issues a really good player can take easy advantage of.
@02DooD2 жыл бұрын
There's a specific Pac-Man port they used in the older Namco Museums on N64 up until the PS2 (Including the Pac-Man World games) that was based on the original source code, but was slightly different. The upward offset was actually changed to be identical in all 4 directions
@jinxedcupcakes4 жыл бұрын
this is one of my favourite videos on youtube i’ve come back here so many times
@TerraRuneOfficial5 жыл бұрын
I would like to see you take on the ghost movement in pacman.exe
@mateuszszulecki52063 жыл бұрын
Its not official tho
@stephenl21462 жыл бұрын
Thanks for the great description of the logic of pac-man. Back in the day (when I was a kid), I wanted to master pac-man. There were books that told you what "patterns" were needed on each level of the game. I memorized the patterns and actually became quite good at the game. That was after many "joystick blisters" though. I seem to remember something about the patterns changing for "fast games" or "slow games". That was a LONG time ago. Thanks for the memories!
@therealmonczak5 жыл бұрын
Hey, so now I know how I behave. Great video!
@kilroy9878 ай бұрын
This is excellent. If I ever feel compelled to code Pac Man, I'll absolutely come back to this video. I coded Gauntlet a few years ago, but I never really understood the rules for the point multipliers, how long they last, when each character will vocalize, the rules for the narrator, etc. so I didn't bother with those aspects.