Questions on how to create a game similar to Pac-Man

I want to create a game that will look like Pac-Man from scratch. I also do not want to use the game engine, just the old Xcode .

Basically, a game would consist of a map that matches the screen, walls on the map, food, enemies, and players.

I just wanted to know what would be the best way forward. First I plan to create a map, and then do the rest after that. Where to begin?

+4
source share
1 answer

I plan to create a map first.

Keeping in mind that you will probably need several maps, you can first create a map editor that will allow you to place a β€œwall” graphic and determine the ways in which the player and ghosts are allowed to travel. If you define these paths with nodes at each intersection, the AI ​​ghost is easy to solve with A * path find . The map editor can use the distance between intersections to calculate the "weight" of each path segment.

+3
source

Source: https://habr.com/ru/post/1347177/


All Articles