Search found 128 matches

by Darlex
Sun May 12, 2019 7:24 pm
Forum: Support and Development
Topic: Creating a image from zero? [SOLVED]
Replies: 2
Views: 2271

Re: Creating a image from zero?

zorg wrote: Sun May 12, 2019 6:48 pm That is exactly the way, except you use love.image.newImageData.
You can also use mapPixel on ImageDatas... also read through the wiki, it helps.
wtf really?. Thanks!
by Darlex
Sun May 12, 2019 6:38 pm
Forum: Support and Development
Topic: Creating a image from zero? [SOLVED]
Replies: 2
Views: 2271

Creating a image from zero? [SOLVED]

There is some way of creating a image from zero and saving it to a local file? like:

Code: Select all

img = love.graphics.createImage(200,200) --200x200 image
img:setPixel(1,1,0.5,0.7,0.87) --Sets the pixel x:1,y:1 to color 0.5, 0.7, 0.87
img:encode("poop.png")
by Darlex
Wed May 08, 2019 4:31 pm
Forum: Games and Creations
Topic: Mario Kart: Extreme Drift
Replies: 18
Views: 34842

Re: Mario Kart: Extreme Drift

So here I am again, years later, with another Mario Kart thing. This time it's a bit more playable, though. 2 years ago, hatninja PM'd me about my Mario Kart shader demo, asking for a bit of help to make this https://love2d.org/forums/viewtopic.php?f=5&t=83309 and that helped me get sprites wor...
by Darlex
Wed May 08, 2019 4:26 pm
Forum: Support and Development
Topic: How to do a one-off collision?
Replies: 3
Views: 2894

Re: How to do a one-off collision?

Have a variable 'door_collided' which is set to false at the beginning of the level. Check for collision only when it is false. Set it to true when the player collides with the door. Or a table named Collided with all the objects that are currently in collision. like if collided["door"] t...
by Darlex
Wed May 08, 2019 4:10 pm
Forum: Support and Development
Topic: Is there a way of saving and loading files from anywhere?
Replies: 13
Views: 9276

Re: Is there a way of saving and loading files from anywhere?

I want to give that sensation of comfort of saving and loading files from anywhere to anywhere. Frankly speaking, I don't see anything "comfortable" in dealing with file dialogs, etc. In fact, most modern programs never ask you to browse around the device's filesystem. A good example woul...
by Darlex
Sun May 05, 2019 4:54 pm
Forum: Support and Development
Topic: Is there a way of saving and loading files from anywhere?
Replies: 13
Views: 9276

Re: Is there a way of saving and loading files from anywhere?

Not easily; löve by default doesn't support that (with the exception of dragging folders and files), but there are a few solutions; You can either use an external lib like luafilesystem and sacrifice it working with any constructors löve gives you (since they still depend on PhysFS that love.filesy...
by Darlex
Sun May 05, 2019 4:48 pm
Forum: Support and Development
Topic: Is there a way of saving and loading files from anywhere?
Replies: 13
Views: 9276

Re: Is there a way of saving and loading files from anywhere?

As posted before, you could always do the following. -- ***** Load/Save from Anywhere on Computer ***** -- To use, wrap 'filename' with 'mount'. -- for filename = 'D:/Scripts/Love/test.png' -- Load Example: love.graphics.newImage( mount( filename ) ) -- Save Example: id:encode('png', mount( filenam...
by Darlex
Sun May 05, 2019 4:47 pm
Forum: Support and Development
Topic: Is there a way of saving and loading files from anywhere?
Replies: 13
Views: 9276

Re: Is there a way of saving and loading files from anywhere?

Is there a way of saving and loading files from anywhere? Like "C:\users\darlex\Desktop\project1" or "\home\darlex\desktop\project1"? "C:\" is a Windows thing and it won't work across platforms. You want your game to work on any device, right? Im trying to do a game ed...
by Darlex
Sat May 04, 2019 10:29 pm
Forum: Support and Development
Topic: Is there a way of saving and loading files from anywhere?
Replies: 13
Views: 9276

Is there a way of saving and loading files from anywhere?

Is there a way of saving and loading files from anywhere? Like "C:\users\darlex\Desktop\project1" or "\home\darlex\desktop\project1"?
Im trying to do a game editor thing but i dont know how to do that :/
by Darlex
Sat May 04, 2019 10:16 pm
Forum: Support and Development
Topic: [SOLVED] License
Replies: 7
Views: 3572

Re: License

It actually depends on what you are (re)distributing. To distribute a .love file with your program, you don't need to include any LÖVE license.txt because none of the contents include LÖVE code, but you need to comply with the license of any libraries that you've used, if any (e.g. the license of b...