1.¿ Cómo puedo dibujar líneas en un mapa o capa que he creado sin que me borre continuamente la pantalla y de ese modo no me borre lo que he dibujado?¿?
en el manual hay este ejemplo:
Code: Select all
w = love.graphics.getWidth() / 2 -- half the window width
h = love.graphics.getHeight() / 2 -- half the window height
function love.draw()
local mx, my = love.mouse.getPosition() -- current position of the mouse
love.graphics.line(w, h, mx, my)
end
Gracias.
First of all I am sorry for expressing myself in Spanish, because English is not my mother tongue and I am learning love, although there are a number of basic concepts that I can not understand, because I have programmed in another language and its mechanics differ.
1. How can I draw lines on a map or layer that I have created without continuously erasing the screen and thereby not erase what I have drawn?
I understand the mechanics, but I want that every time I move the mouse, a new line draws without deleting the previous one.
thank you.