Why does my project stop when I run it?
Posted: Wed Mar 16, 2022 2:41 pm
Why does my project stop when I run it? What do I mean? Well, because my project (it's a "screen") stops me
at the moment of executing it, I will leave the code so that they can help me to know what happens.
PD: I translate it because my English is basic
at the moment of executing it, I will leave the code so that they can help me to know what happens.
PD: I translate it because my English is basic
Code: Select all
function love.load()
love.window.setMode(300,200,{resizable=false})
end
function love.draw()
DrawDisplay(300,200)
end
function love.update()
end
function DrawDisplay(w,h)
for y = 1, h do
for x = 1, w do
DrawPoint(x - 1,y,color)
end
y = y + 1
end
end
function DrawPoint(x,y,color)
love.graphics.points(x,y)
love.graphics.setColor(love.math.colorFromBytes(128, 234, 255))
end