introduced in 0.2.0d
how to reproduce:
- call tline with a start point outside of screen boundaries
- tline starts at 0 without adjusting lookup coordinates
repro cart:


@kallanreed what effect are you looking for?
for image rotation, see this post: https://www.lexaloffle.com/bbs/?pid=78451
my version takes edge coordinates and texture coordinates and use something called ‘edge walking’ to draw the polygon.


I downloaded the cart and was playing with it but I couldn’t understand how to set the uv values. The numbers are like 0,2,15,17 but I couldn’t make out what those values refer to on the map tiles.
The other post’s code just uses map tile coords but requires that the tile not have anything around it on the map.
What I was trying to do was set the texture to use map tile 10,1.


I have been playing with tline but those uv values don’t make sense.
local p={ {x=0,y=0,u=0,v=15,sx=32,sy=8}, {x=scale,y=0,u=2,v=15,sx=48,sy=8}, {x=scale,y=scale,u=2,v=17,sx=48,sy=24}, {x=0,y=scale,u=0,v=17,sx=32,sy=24}} |
For example, first vector has u,v=0,15
Your map tiles in the cart are the first 4x4 square starting at 0,0 but the drawn texture is 2x2 starting at 1,1.
Where does 15 come from? That’s not a tile value.


Oh, wow. That's embarrassing. Maybe 3AM is a bad time for me to be PICO-ing?
Thanks for the replies.
[Please log in to post a comment]