a question about love.graphics.newImage( filename )
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: a question about love.graphics.newImage( filename )
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 )
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?
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: a question about love.graphics.newImage( filename )
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 )
Guys I did the exact same thing as you guys spoke above. I want to load a png spritesheet through
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.
Code: Select all
function love.load()
heroman = love.graphics.newImage("C:\Users\TESLA\Desktop\Engine\blocky.png")
- zorg
- Party member
- Posts: 3470
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: a question about love.graphics.newImage( filename )
Congratulations to another contestant in our gameshow, "Can you not necro-firstpost?"!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 throughwhere 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.Code: Select all
function love.load() heroman = love.graphics.newImage("C:\Users\TESLA\Desktop\Engine\blocky.png")
...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
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Who is online
Users browsing this forum: Google [Bot], Semrush [Bot] and 3 guests