Search found 3071 matches
- Sun Nov 12, 2023 4:27 pm
- Forum: Support and Development
- Topic: Canvas index start at 1 or 0?
- Replies: 1
- Views: 1113
Re: Canvas index start at 1 or 0?
Pixel coordinates are [0, screenSize - 1]. Note that coordinates are not the same as indices.
- Sun Nov 05, 2023 9:01 pm
- Forum: Support and Development
- Topic: [solved] why does love.filesystem.getInfo return nil on a file that is definitely there?
- Replies: 6
- Views: 2305
Re: why does love.filesystem.getInfo return nil on a file that is definitely there?
The reason it returned nil in your code is getInfo (and almost every other love.filesystem API) doesn't take full paths, only relative ones. All relative paths in love.filesystem are relative to both the game's source and save directories. Another way to achieve what you want could be to check what ...
- Sun Nov 05, 2023 6:45 pm
- Forum: General
- Topic: love.graphics.setDepthMode("lequal", true) does not work on Windows
- Replies: 1
- Views: 1189
Re: love.graphics.setDepthMode("lequal", true) does not work on Windows
If you're rendering to the main screen, are you making sure to set t.window.depth = 24 in love.conf? Or if you're rendering to a canvas, are you making sure to tell love to use a depth buffer in love.graphics.setCanvas?
- Sun Oct 29, 2023 5:09 pm
- Forum: Support and Development
- Topic: UTF-8 encoding error when erasing accent characters
- Replies: 5
- Views: 21887
Re: UTF-8 encoding error when erasing accent characters
What's your code that uses it? Or maybe you have other code modifying the string's bytes that's not using it but should? Proper use of the utf-8 module should work without issues.
- Wed Oct 25, 2023 11:06 pm
- Forum: Support and Development
- Topic: Copying a file from a local directory to the LOVE save directory
- Replies: 2
- Views: 8944
Re: Copying a file from a local directory to the LOVE save directory
Something like this will copy a file without doing any decoding or encoding, only reading and writing: local data = love.filesystem.read(readpath) love.filesystem.write(writepath, data) It will load the whole file into memory at once, but you can avoid that if you want by using a File object and cop...
- Tue Oct 24, 2023 8:25 pm
- Forum: Support and Development
- Topic: Cam11 bug when zoom = 0.6 (specifically)
- Replies: 4
- Views: 3060
Re: Cam11 bug when zoom = 0.6 (specifically)
But what about the circle? It's using a line width that's smaller than 1, which is rarely going to give you a fully visible line. The technical details for why it's entirely invisible have to do with the smooth line style's implementation reducing the core line width in order for the surrounding ou...
- Mon Oct 23, 2023 6:44 pm
- Forum: Support and Development
- Topic: Cam11 bug when zoom = 0.6 (specifically)
- Replies: 4
- Views: 3060
Re: Cam11 bug when zoom = 0.6 (specifically)
What do you expect a line with less than 1 pixel width that's not centered at the middle of pixels to look like in a pixel grid?
If you offset the line's position by (0.5, 0.5), then the centers of each end will be at the center of a pixel instead of in between 4 pixels.
If you offset the line's position by (0.5, 0.5), then the centers of each end will be at the center of a pixel instead of in between 4 pixels.
- Mon Oct 23, 2023 11:31 am
- Forum: Support and Development
- Topic: Is there a way to program constraints for resizable windows?
- Replies: 4
- Views: 6369
Re: Is there a way to program constraints for resizable windows?
love.conf and love.window.updateMode have minimum window size parameters you can set.
- Thu Oct 19, 2023 10:59 am
- Forum: Support and Development
- Topic: Can you color quads in a Spritebatch?
- Replies: 2
- Views: 2887
- Wed Oct 04, 2023 1:40 am
- Forum: Support and Development
- Topic: [SOLVED] love.filesystem.read only reads Text?
- Replies: 2
- Views: 5696
Re: love.filesystem.read only reads Text?
Can you share the file you're using? I don't think that's expected behaviour.