I've just made my first (very simple, ugly) game in Love2D. The game works fine when run directly off my hard drive. However, when I package it up as a
.love file, I get the following message:
Error: Could not open file resources/stormclouds.bmp. Does not exist.
[C]: in function 'newImage'
[string "main.lua"]:46: in function 'load'
[string "boot.lua"]:304: in function <[string "boot.lua"]:302>
[C]: in function 'xpcall'
The "resources" folder does exist within my directory structure (resources/stormclouds.bmp), and the game runs fine when its not packaged up.
The line of code responsible for this is:
bg = love.graphics.newImage("resources/stormclouds.bmp")
How can I make this line work for my packaged file?