Draw_line function in a low res game

I am working on a low res game and I need to draw a line, currently I am telling the renderer to draw a line for me, but that doesn’t fit my game’s resolution. How can I draw a line myself?

If you translate the points from your game to the screen the built in drawline can work. How you translate depends on how you display your game world so we would need to know that to help.

You can also draw lines and other shapes to buffers with https://www.defold.com/community/projects/131526/

How do you translate to points in my game to the screen?