[gameprogrammer] Re: advanced game

On 4/27/07, Yasser Gonzalez <yassergs@xxxxxxxxxxxxxxx> wrote:
To Paul Smith:

It seems that you have an idea of how to do.

Colud you tell me how should be with a mountain, for example?????

I have never programmed anything like this before, but how about
something like how in calculus where you take a curve and split it
into smaller straight lines?

I am thinking of a data array with an index of how far you are across
the surface of the mountain. If you go left or right you go up or down
the array. An element of the data in the array can be the location and
angle to draw the sprite. Simple to do and not a lot of math would be
required. You could probably just eyeball it.

Increase the granularity for improved display vs less performance.

An plus to this would be that it would be easy to incorporate other
terrain elements in the model.

Just an idea of how I might try a first implementation. Best of luck,

Chris

--
E-Mail: Chris Nystrom <cnystrom@xxxxxxxxx>
Saving the world from web programming.
http://www.newio.org/ - AIM: nystromchris

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: