Search found 2873 matches

by zorg
Tue Jun 02, 2020 12:57 pm
Forum: Support and Development
Topic: Is cache friendly ECS possible in Lua ?
Replies: 2
Views: 60

Re: Is cache friendly ECS possible in Lua ?

Here's one: https://github.com/tjakka5/Concord Didn't look too deep into it, maybe it doesn't use FFI, but it's probably still fast enough. If one wrote an ECS with LuaJIT's FFI, supporting C types including structs and arrays, LuaJIT *might* be a bit better in terms of memory layout and caching tha...
by zorg
Tue Jun 02, 2020 8:57 am
Forum: Support and Development
Topic: Simple way for get dirs and files from user android filesystem
Replies: 3
Views: 185

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

lua io might fail with specific characters in paths & filenames; what i linked shouldn"t.
by zorg
Mon Jun 01, 2020 3:14 pm
Forum: Support and Development
Topic: How to correctly save an image.
Replies: 7
Views: 225

Re: How to correctly save an image.

I guess i just understood your post as löve supports loading TGA files, not that it supports saving them.
Edit: According to the wiki, saving tga might have been added, wasn't aware of that. :v
by zorg
Mon Jun 01, 2020 10:25 am
Forum: Support and Development
Topic: How to correctly save an image.
Replies: 7
Views: 225

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: 225

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: 185

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: 1631

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 32 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: 94

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: 126

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: 1631

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...