Looking at the translate command, used inside of love.draw().
It does just that: move the coordinates, and just once. Below, the
result. Yellow is placed off-screen but translate brings it back...
In contrast, the update function, called every time the screen is redrawn.
Below, green overtakes yellow...
No comments:
Post a Comment