Advertisement

Collision Detection Pac Man

Started by January 09, 2010 12:40 PM
0 comments, last by lc_overlord 14 years, 10 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
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