Code: Select all
function love.load()
instance = {}
instance.img = love.graphics.newImage("coin.png")
end
function love.draw()
love.graphics.draw(instance.img, 100, 100)
end
Error
main.lua:3: Could not decode PNG image (invalid CRC encountered (checking CRC can be disabled))
Traceback
[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'newImage'
main.lua:3: in function 'load'
[love "callbacks.lua"]:136: in function <[love "callbacks.lua"]:135>
[C]: in function 'xpcall'
[C]: in function 'xpcall'
I don't even know what CRC is, so there is really no way I can solve this.
---------------------------------------------------------------------------------
I guess not all computers have this issue, so I uploaded a youtube video.
https://www.youtube.com/watch?v=ykeVRNuXbWo