Search found 2880 matches

by zorg
Mon Jun 01, 2020 10:25 am
Forum: Support and Development
Topic: How to correctly save an image.
Replies: 7
Views: 732

Re: How to correctly save an image.

Nelvin wrote:
Mon Jun 01, 2020 8:53 am
...
That's nice and all but i'm pretty sure the question was about saving images with specific formats, not what types does löve support loading. :3
by zorg
Mon Jun 01, 2020 5:12 am
Forum: Support and Development
Topic: How to correctly save an image.
Replies: 7
Views: 732

Re: How to correctly save an image.

Löve can only save png files.

If you want to export to some other format, you need to write an encoder or use a library.
by zorg
Sun May 31, 2020 9:24 am
Forum: Support and Development
Topic: Simple way for get dirs and files from user android filesystem
Replies: 3
Views: 620

Re: Simple way for get dirs and files from user android filesystem

Löve can't access anything other than the save directory and where main.lua is, whether the latter is a folder or inside a .love file (zip archive), and potentially the folder where the .love file is, if you can mount it (works on windows at least, idk about other OS-es) There have been attempts at ...
by zorg
Sun May 31, 2020 9:21 am
Forum: Support and Development
Topic: love 0.9.0 tables
Replies: 11
Views: 2027

Re: love 0.9.0 tables

idk how you're doing it, and i didn't realize this before, but you've posted in ancient threads twice now;
this one, and https://love2d.org/forums/viewtopic.php ... 10#p234010 that one.

You should be clicking this:
newtopic.png
newtopic.png (60.56 KiB) Viewed 271 times
by zorg
Sun May 31, 2020 9:16 am
Forum: Support and Development
Topic: How to get the source filename of a loaded Image?
Replies: 2
Views: 303

Re: How to get the source filename of a loaded Image?

You can use a library to support arbitrary paths in your editor: https://github.com/megagrump/nativefs
It's easier, in comparison to implementing image encodings löve can read but not write (all but png).
by zorg
Sat May 30, 2020 7:31 pm
Forum: Support and Development
Topic: OpenGL error after updating windows
Replies: 4
Views: 363

Re: OpenGL error after updating windows

Are you using a laptop? Does it have anything else other than an integrated GPU? maybe there are no drivers for windows versions above 7?
by zorg
Sat May 30, 2020 7:27 pm
Forum: Support and Development
Topic: love 0.9.0 tables
Replies: 11
Views: 2027

Re: love 0.9.0 tables

because ipairs works on integer keys and pairs barfs out all keys with an undefined order. your table has fields called x, y, width and height; pretty sure those aren't numbers, now are they? :3 local tbl = {'these', 'would', 'all', 'be'} table[5] = 'shown' table[7] = 'order' table[6] = 'in' functio...
by zorg
Fri May 29, 2020 1:49 pm
Forum: Games and Creations
Topic: I have a problem with lag
Replies: 7
Views: 459

Re: I have a problem with lag

And now that that happened, i can fix the above code so it: - uses dt like it should - uses locals like it should - uses 0-based indexing so we can microoptimize a branch out (and you don't need to rename anything) local frameDelay, frameTime, currentFrame function love.load() frameDelay = 1/30 -- A...
by zorg
Fri May 29, 2020 4:08 am
Forum: Games and Creations
Topic: I have a problem with lag
Replies: 7
Views: 459

Re: I have a problem with lag

Hi and welcome to the forums!

The gigantic yellow warning box on the page for love.graphics.newImage should tell you your mistake.

Also, do use the dt variable so that your thing runs consistently with regards to time.
by zorg
Thu May 28, 2020 4:07 pm
Forum: General
Topic: Optikon: A WYSIWYG Level Designer for LÖVE
Replies: 21
Views: 4016

Re: Optikon: A WYSIWYG Level Designer for LÖVE

The 'magic' of löve is that it's a framework , not an engine, which allows users to design their game in any way they wish. But, with the way Optikon outputs its levels, it forces the user to design their game in the format that Optikon outputs, whether they like it or not. you are contradicting yo...