tquad() and ttri() functions!

Published 2023-06-12

Hi everyone!

So with the new tline function in Pico-8 0.2.0, it seems pretty obvious to start making mapped quadrilaterals and triangles, so I did just that.


Both functions are independant from each other (i.e. can be used separately) and can be taken from the code here and used in any other project, with or without attribution.(I do appreciate it though! :))

The two functions are:

I wrote those functions to be fairly efficient, but I'm sure some better optimized alternatives will be coming very soon and we'll get a good-old thunderdome for tquad and ttri. Consider me happy to open the festivities!

Anyway that's it! I hope you have fun with this!

Remy 🍬