Search found 3544 matches

by pgimeno
Mon Nov 06, 2023 7:33 am
Forum: Support and Development
Topic: [solved] why does love.filesystem.getInfo return nil on a file that is definitely there?
Replies: 6
Views: 2216

Re: why does love.filesystem.getInfo return nil on a file that is definitely there?

MWTab wrote: Sun Nov 05, 2023 9:21 pm Btw, is there a way to mark this topic solved?
By editing the first post and changing the topic.
by pgimeno
Sun Nov 05, 2023 6:26 pm
Forum: Support and Development
Topic: More filesystem questions
Replies: 5
Views: 6190

Re: More filesystem questions

EAFP (Easer to ask for forgiveness than permission) ;)
by pgimeno
Sun Nov 05, 2023 6:14 pm
Forum: General
Topic: Code Doodles!
Replies: 196
Views: 260099

Re: Code Doodles!

To get back on topic, I was watching a video about an Arkanoid-type game which abuses physics, and found it very interesting, so I tried to reproduce the setup of one of the levels (level 3, minute 4:35 in the video) with Löve using love.physics. The result, while not as polished, was mesmerizing en...
by pgimeno
Sun Oct 29, 2023 9:13 am
Forum: Support and Development
Topic: UTF-8 encoding error when erasing accent characters
Replies: 5
Views: 21764

Re: UTF-8 encoding error when erasing accent characters

Each UTF-8 character above the ASCII range consists of a byte in the range C0-FF followed by one or more bytes in the range 80-BF (the exact range is a bit more restricted but that's irrelevant here). If you don't remove all the bytes from the character, you get an error like the one you're getting....
by pgimeno
Wed Oct 25, 2023 6:14 pm
Forum: General
Topic: Shame I'm leaving the Love2D Reddit
Replies: 7
Views: 32065

Re: Shame I'm leaving the Love2D Reddit

Reddit is cancer. Try twitter I guess. These forums are good. They used to be. Nowadays there are a few unfriendly, unhelpful people that lower the quality of the community support in these forums quite a bit. Thankfully, most issues are already posted in previous threads, so just searching a littl...
by pgimeno
Tue Oct 24, 2023 8:49 pm
Forum: General
Topic: Gravity
Replies: 6
Views: 7191

Re: Gravity

tourgen has a point IF you are going to need more forces to be applied to the object. You first calculate the force due to gravity times mass (i.e. the weight), then add it to all other forces acting on the object, and then obtain the final acceleration of the object by dividing the resulting force ...
by pgimeno
Tue Oct 24, 2023 12:06 pm
Forum: Support and Development
Topic: Cam11 bug when zoom = 0.6 (specifically)
Replies: 4
Views: 2950

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. But what about the circle?
by pgimeno
Mon Oct 23, 2023 4:11 pm
Forum: Support and Development
Topic: Cam11 bug when zoom = 0.6 (specifically)
Replies: 4
Views: 2950

Re: Cam11 bug when zoom = 0.6 (specifically)

It's not a bug of cam11. Try this as main.lua: function love.draw() love.graphics.scale(0.6) love.graphics.circle("fill", 100, 200, 10) love.graphics.circle("line", 200, 200, 10) love.graphics.rectangle("fill", 300, 190, 20, 20) love.graphics.rectangle("line",...
by pgimeno
Sun Oct 22, 2023 7:52 am
Forum: Support and Development
Topic: Variable seen as nil for some reason.
Replies: 2
Views: 21465

Re: Variable seen as nil for some reason.

You can't have multiple love.load and love.update in different files (unless you know what you're doing and how to handle the switching between them, which is obviously not the case here, and even if you know what you're doing it's pretty discouraged in general, with pretty few exceptions). You have...
by pgimeno
Mon Oct 16, 2023 7:52 pm
Forum: Games and Creations
Topic: Silent Strike - WIP
Replies: 19
Views: 19942

Re: Silent Strike - WIP

It was suggested it should be green because Hollywood always has them green - but is that just a Hollywood thing? Green phosphor? It was a pretty common compound to make CRT screens of. It had a good retention of light. Also, radars actually update positions when the bar crosses them, not continuou...