Hi ! :) New on this forum I greet all the members.

Excuse my bad English
I look for a successful procedure in assembler to draw a curve.
Thank you to the persons giving me this one.
If she is coded for Fasm it would be perfect, but in the defect I shall try to translate her.

Friendly.......Gges
Posted on 2002-07-20 07:20:57 by Asmgges
There are so many types of curves! :) The general case requires that you have a curve function (ie y=x^3-5x-1), and sample that function at intervals, drawing a line from point to point. This assumes a level of continuity in the curve. The more samples the smoother the curve appears.
Posted on 2002-07-20 11:22:18 by bitRAKE
I am going to try to explain the type of curve which I would want.

It is to develop a sprite leaving of a point for example x=800 y=50.
Changing direction in the point x=50 y=350
And finishing the running in the point x=800 y= 700
It makes a triangle but I shall want that center is to smooth in curve to avoid the too rough change of direction.
I have no problem with the movement of sprites but I would need a procedure calculating this curve.
I shall protect in variable in every passage in this procedure coordinates obtained to restore them to the procedure in every cycle of program and to advance my sprite.
If you want to see an example of evolution of sprite go to visit on my site but sprites moves only according to straight right lines.
I know that it is difficult especially by programming everything as I make him in assembler and that is why I appeal to you.
Friendly.......Gges
Posted on 2002-07-20 11:59:07 by Asmgges
Here are some good links:

Also, you could test the change in direction and spread it over several frames, but this does not look as good as a curve. This way the sprite will slow down at sharp corners to turn around.
Posted on 2002-07-20 13:04:32 by bitRAKE
Thank you very much Bitrake. :)
I almost ended the convertion of Masm's game SpacesGges towards Fasm.
I shall like to add a small more to the Fasm version with cooler movement.
I am going to go on the link which you indicated to me
Friendly ....... Gges :alright:
Posted on 2002-07-20 13:37:49 by Asmgges