Outrun style Racing code ^.^

Miscellaneous Forums/Blitz Showcase/Outrun style Racing code ^.^

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ok this helps. BTW d4 is not used at all in the algorithm.

This snippet also appears strange to me: why is d used as well as for y as for x ? what is xdf for ?

			'Change y value to make the tracks corners work properly and give perspective
			y=y+(d*ymult)
			y=y-dc
			dc=dc-pathd(pos)
			
		
			'Change X value to make the tracks corners work properly
			x=x-(Float(pathc(pos)-pathc(pathpos)))
			x=x-xdf*d


Thanks !