Search found 174 matches
- Sat Jun 17, 2023 6:23 am
- Forum: Support and Development
- Topic: File wont save [SLOVED]
- Replies: 15
- Views: 10353
Re: File wont save
What is the content of game.txt? Can you add also print for it?
- Wed Jun 14, 2023 6:09 am
- Forum: Support and Development
- Topic: File manager with a slab window
- Replies: 5
- Views: 2689
Re: File manager with a slab window
I have no experience with slab (maybe someone can help you more), but basically create some buttons, when clicked reload, reload files list by love.filesystem.getDirectoryItems, and put it into table or list or something like this in slab, and clicking open file just get name of selected file and op...
- Tue Jun 13, 2023 4:53 pm
- Forum: General
- Topic: What project (assets) convention do you use?
- Replies: 1
- Views: 1603
Re: What project (assets) convention do you use?
I kind of use all. I do not put everything into table, but group similar things into table (like everything for state, etc). If there would be a lot of things, I divide it into several files, for example one file has everything with states and manages everything when required (so then it looks like ...
- Mon Jun 12, 2023 8:36 pm
- Forum: Support and Development
- Topic: File manager with a slab window
- Replies: 5
- Views: 2689
Re: File manager with a slab window
And what do you want to help with - how to list files, or how to build ui?
- Mon Jun 12, 2023 12:30 pm
- Forum: Support and Development
- Topic: Help with filesystem [SOLVED]
- Replies: 3
- Views: 2634
Re: Help with filesystem
Either use lua io module (io.read, io.write, io.open, however this can break os compatibility), or try to bypass loves filesystem restrictions with ffi (there is some library for it, but I forgot its name), or wait for 12.0 (or use development version), which includes new filesystem functions for mo...
- Sun Jun 11, 2023 8:21 pm
- Forum: Libraries and Tools
- Topic: TÖVE display large svg issue [SOLVED]
- Replies: 2
- Views: 2175
Re: TÖVE display large svg issue
I didn’t saw the file in Inkscape, but I think 312kB is really big for svg. Aren’t there many unnecesarry nodes (very likely when using exported paths from png)? Try to simplify it with Inkscape’s path simplify (or how it’s called) or use some kind of online svg minimizers to simplify paths a bit.
- Sun Jun 11, 2023 8:10 pm
- Forum: Support and Development
- Topic: Half Circle like the letter C
- Replies: 1
- Views: 2097
Re: Half Circle like the letter C
Take a look at love.graphics.arc, you need line drawmode and open arcmode. The first example draws halfcircle, just modify angles to suit your needs. (angles are in radians, you can use math.deg and math.rad to concert between degrees and radius, but basically 180 degrees = math.pi radians)
- Sun Jun 11, 2023 6:35 pm
- Forum: Support and Development
- Topic: File manager with a slab window
- Replies: 5
- Views: 2689
Re: File manager with a slab window
In a specific folder means in some folder somewhere at disk, or some folder inside love game folder or love data folder?
- Fri Jun 02, 2023 11:48 am
- Forum: Support and Development
- Topic: Is there a better way to add gravity to my game?
- Replies: 3
- Views: 863
Re: Is there a better way to add gravity to my game?
If you want easier solution than implementing whole physics, you can take a look at love.physics module
- Thu May 25, 2023 11:54 am
- Forum: Support and Development
- Topic: how can i access x and y love.touch.getPosition variables?
- Replies: 6
- Views: 1602
Re: how can i access x and y love.touch.getPosition variables?
Mouse always have some position, touch can appear and disappear. Just initialize it to some position, like center of the windows. What else you want to initialize it to?