🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Collision Detection Pac Man

Started by
0 comments, last by lc_overlord 14 years, 5 months ago
Hi, I am making 3D Pac Man, and I have built my maze based on Nehe Lesson 10 -"Moving In a 3D World". Having looked at the collision detection tutorial, it is a bit beyond my programming skills, I realise now that the original pac-man had no collision detection and just predefined paths, What is the best way to implement predefined paths without using collision detection? Thanks, Jack
Advertisement
IT depends a little on how you define your map, but one of the easiest ways is lists of nodes, the nodes contain position, which way you can go and which is the next node in that direction.
In the gamecode you just make it follow the path to the next node and as you approach it you get to choose the next node and so on.

This topic is closed to new replies.

Advertisement