Lua
Posted: Sat Apr 06, 2024 2:24 pm
sup guys, for some reason, my character image doesn't render on love 2d windown. My other project is working fine but, in this one, it doesn't. can someone help me?
posX = 250
posY = 250
tam = 1
ori= 120
angulo = 0
love.graphics.toggleFullscreen = true
function love.load()
PlaImg = love.graphics.newImage("Imgs/char.png")
love.mouse.setVisible = false
end
function love.draw()
rot = angulo
love.graphics.draw(PlaImg, posX, posY, rot, tam, ori, ori)
end
posX = 250
posY = 250
tam = 1
ori= 120
angulo = 0
love.graphics.toggleFullscreen = true
function love.load()
PlaImg = love.graphics.newImage("Imgs/char.png")
love.mouse.setVisible = false
end
function love.draw()
rot = angulo
love.graphics.draw(PlaImg, posX, posY, rot, tam, ori, ori)
end