Transforming coordinates to screen coordinates
Posted: Mon Dec 14, 2015 8:11 am
I have my own Vector2-pseudoclass I use for positions and sizes of objects (https://gist.github.com/Elmuti/a26cdf288752698a58d0).
I should obviously have this coordinate system separate from rendering,so i need to transform these v2(x, y) -coordinates to screen coordinates that I can use with.
I'm new to games, so if anyone could explain to me how I could achieve this transformation I'd really appreciate it
I should obviously have this coordinate system separate from rendering,so i need to transform these v2(x, y) -coordinates to screen coordinates that I can use
Code: Select all
love.graphics.draw
I'm new to games, so if anyone could explain to me how I could achieve this transformation I'd really appreciate it