2D Line Terrain

Started by
10 comments, last by LazyManc 20 years ago
I second that opinion. If you know offhand the maximum number of vertex (is that the plural?) you''ll have, then using a Vector will just generate unnecessary overhead.

shmoove
Advertisement
Well I managed to get it working, it's probably very poorly coded but the framerate seems pretty high on my T610. I ended up using a custom vector class someone lent me.

Terrain.class

I will probably go through and replace the vector bits with a fixed size array at some point but for now I just need to get the collision sorted.

Back to y = mx + b I think...

[edited by - LazyManc on April 18, 2004 11:37:25 AM]

This topic is closed to new replies.

Advertisement