Collision Detection Pac Man
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.
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.
www.flashbang.se | www.thegeekstate.com | nehe.gamedev.net | glAux fix for lesson 6 | [twitter]thegeekstate[/twitter]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement