TLINE(X0, Y0, X1, Y1, MX, MY, [MDX, MDY], [LAYERS])
|x0||number of pixels for the x coordinate of starting the line|
|y0||number of pixels for the y coordinate of starting the line|
|x1||number of pixels for the x coordinate of ending the line|
|y1||number of pixels for the y coordinate of ending the line|
|mx||"map x" number of tiles on the map from the left (8 pixels in 1 tile)|
|my||"map y" number of tiles on the map from the top (8 pixels in 1 tile)|
|layers||(optional) a bitfield value referring to sprite flags to draw only the sprites with those flags|
The TLINE() function draws a line on the screen using colors sampled from a map. You specify the starting point (X0,Y0) and the ending point (X1,Y1) of the line, and the function will use colors from the map to draw the line.
You can also specify the location on the map (MX, MY) to sample colors from, and an optional offset (MDX, MDY) to adjust the sampling location after each pixel is drawn. Additionally, you can specify the layers of sprites to be drawn along with the line.
(More explanation and examples to come)
11 Apr 2023