This is a repost from the main ourcade channel: [ Ссылка ]
Want to learn more about using TypeScript with Phaser 3? We have a free book that teaches you how to create an Infinite Runner. Get it here: [ Ссылка ]
Have you ever wondered how the ghost artificial intelligence in #PacMan worked? Or how you would go about coding an #AI? In this series, we'll take a look at a basic way of creating AI for games using Pac-Man ghosts as an example in #Phaser3 and #TypeScript
In part 1, we code up the core Ghost class and add the basic Scatter AI for ghosts to move around a Pac-Man board on its own!
Check out the demo and get the full source code here: [ Ссылка ]
* Complete Series *
Part 1: [ Ссылка ]
Part 2: [ Ссылка ]
Part 3: [ Ссылка ]
Part 4: [ Ссылка ]
Part 5: [ Ссылка ]
Part 6: [ Ссылка ]
Understanding Pac-Man Ghost Behavior: [ Ссылка ]
Pac-Man Ghost AI Explained: [ Ссылка ]
Phaser 3 TypeScript Parcel Template: [ Ссылка ]
Ourcade is a playful #gamedev community for open-minded and optimistic learners and developers. 🎮🕹👾🤗 [ Ссылка ]
![](https://i.ytimg.com/vi/Lj8YkcyZeEE/maxresdefault.jpg)