Page 2 of 2
Re: a question about love.graphics.newImage( filename )
Posted: Sun Jul 25, 2010 7:56 pm
by Jasoco
Keep all a games resources inside the .love project ZIP/folder. Eventually you'll have to distribute them anyway. So it doesn't matter how big the project is really. The user will have to download the data eventually.
Re: a question about love.graphics.newImage( filename )
Posted: Mon Aug 16, 2010 5:45 am
by Vsetup
What if I have an, say, jigsaw puzzle game, and I want to let the user select the image that should be used, how can I achieve that?
Re: a question about love.graphics.newImage( filename )
Posted: Mon Aug 16, 2010 3:22 pm
by Jasoco
Well, they'll either have to place it in the sandbox folder, or you can use the code for downloading files from a server. Unfortunately you can't go out of the sandbox right now for security purposes.
Re: a question about love.graphics.newImage( filename )
Posted: Sun May 05, 2019 5:21 pm
by TESLA
Guys I did the exact same thing as you guys spoke above. I want to load a png spritesheet through
Code: Select all
function love.load()
heroman = love.graphics.newImage("C:\Users\TESLA\Desktop\Engine\blocky.png")
where Engine is the file where love.exe is located and the whole thing is in the C: drive. When I run this on Love2D 11.1, it gives me an error that there is an invalid escape sequence near '"C:'. I'm really stuck here so if you guys can help I'm really thankful.
Re: a question about love.graphics.newImage( filename )
Posted: Mon May 06, 2019 5:18 am
by zorg
TESLA wrote: ↑Sun May 05, 2019 5:21 pm
Guys I did the exact same thing as you guys spoke above. I want to load a png spritesheet through
Code: Select all
function love.load()
heroman = love.graphics.newImage("C:\Users\TESLA\Desktop\Engine\blocky.png")
where Engine is the file where love.exe is located and the whole thing is in the C: drive. When I run this on Love2D 11.1, it gives me an error that there is an invalid escape sequence near '"C:'. I'm really stuck here so if you guys can help I'm really thankful.
Congratulations to another contestant in our gameshow, "Can you not necro-firstpost?"!
...but seriously, i'm gonna assume you googled the topic and didn't check the last message being from 2010.
Anyway, here's another more recent thread about the issue:
viewtopic.php?f=4&p=227141#p227141