[gameprogrammer] Re: advanced game
- From: "Chris Nystrom" <cnystrom@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Sun, 29 Apr 2007 03:26:01 -0500
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
- Follow-Ups:
- [gameprogrammer] Re: advanced game
- From: Charlie Lobo
- References:
- [gameprogrammer] Re: 2D math question
- From: Alan Wolfe
- [gameprogrammer] Scripting
- From: Edilson Vasconcelos de Melo Junior
- [gameprogrammer] Re: Scripting
- From: Brian
- [gameprogrammer] Re: advanced game
- From: Yasser Gonzalez
- [gameprogrammer] Re: advanced game
- From: Paul Smith
- [gameprogrammer] Re: advanced game
- From: Yasser Gonzalez
Other related posts:
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
- » [gameprogrammer] Re: advanced game
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?????
- [gameprogrammer] Re: advanced game
- From: Charlie Lobo
- [gameprogrammer] Re: 2D math question
- From: Alan Wolfe
- [gameprogrammer] Scripting
- From: Edilson Vasconcelos de Melo Junior
- [gameprogrammer] Re: Scripting
- From: Brian
- [gameprogrammer] Re: advanced game
- From: Yasser Gonzalez
- [gameprogrammer] Re: advanced game
- From: Paul Smith
- [gameprogrammer] Re: advanced game
- From: Yasser Gonzalez