Mail Archives: djgpp/1998/09/28/11:45:10
| From: | Jimmy <jimmyml AT hotmail DOT com>
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | Directional do_line
|
| Date: | Mon, 28 Sep 1998 11:23:06 -0400
|
| Organization: | Florida Internet Corporation
|
| Lines: | 10
|
| Message-ID: | <360FA9DA.61863E8C@hotmail.com>
|
| NNTP-Posting-Host: | pm8-36.flinet.com
|
| Mime-Version: | 1.0
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I'm trying to use the allegro function do_line to calculate a path for a
tank, but I've noticed that it doesn't go from (x1,y1) to (x2,y2), it
starts at the point which has the lower x coordinate first. Now, I
could use this function and reverse the coordinates I get from do_line,
but that would waste time. Does anybody have a do_line function that
draws a line between two points that you can pick the direction of the
drawn line (eg. (x1,y1) -> (x2,y2)) TIA.
James Larson
jimmyml AT hotmail DOT com
- Raw text -