Search found 1103 matches

by pgimeno
Mon Jun 18, 2018 12:00 pm
Forum: Support and Development
Topic: access to fonts directory
Replies: 5
Views: 111

Re: access to fonts directory

As I said, LÖVE is designed to encourage cross-platform compatibility, so these things are out of the scope of what it is designed to do. Still, you can do what you want, but it's not easy. You need to mount the folder using PhysFS via FFI. I believe zorg is working on a library to make that easier,...
by pgimeno
Sun Jun 17, 2018 10:48 pm
Forum: Support and Development
Topic: access to fonts directory
Replies: 5
Views: 111

Re: file system / path

You can copy the file to a subfolder in your application and reference it with a relative path. LÖVE is made to be cross platform. It is not Windows-specific. I use Linux and I would not be able to use a program that depends on Windows- or MacOS-specific directories, just as you wouldn't be able to ...
by pgimeno
Sat Jun 16, 2018 3:57 pm
Forum: Libraries and Tools
Topic: 3d dice roller
Replies: 34
Views: 13908

Re: 3d dice roller

Why don't you download LÖVE 0.6 (which is the version this is made for) from here: https://bitbucket.org/rude/love/downloads/ and try running it on the attachment in the OP? I tried it, and I was impressed. If you want the most recent version, grab LÖVE 0.8 too and get it from here: https://code.goo...
by pgimeno
Sat Jun 16, 2018 5:32 am
Forum: Support and Development
Topic: Mouse dragging
Replies: 3
Views: 142

Re: Mouse dragging

I think the issue is a confusion about when to do what. You need to capture the coordinate difference only when the mouse button goes down, not every frame while it's pressed. The easy way is to use the love.mousepressed event for that. function love.mousepressed(mx, my, b) if b == 1 then diffx = mx...
by pgimeno
Thu Jun 14, 2018 5:02 pm
Forum: Support and Development
Topic: [SOLVED] Math + angle + following object on click
Replies: 13
Views: 813

Re: [SOLVED] Math + angle + following object on click

Please post your follow-up questions in the forum. You don't need to open a new topic if it's still related; you can just use the old one and click "Post Reply" or "Full Editor & Preview" and you can attach images again. Clicking on the exact position of the car causes a division by zero, that's why...
by pgimeno
Wed Jun 13, 2018 8:45 pm
Forum: Support and Development
Topic: Problem with Space Invaders
Replies: 2
Views: 155

Re: Problem with Space Invaders

Hi, welcome to the forums! I believe the cause of the desync is that, by the time you detect that one alien is out of the screen, you have already moved several others. This is made worse by the fact that you're using pairs() instead of ipairs(), and pairs() visits the elements in a random-ish order...
by pgimeno
Tue Jun 12, 2018 9:07 pm
Forum: Games and Creations
Topic: Windows XP Minesweeper clone
Replies: 3
Views: 374

Re: Windows XP Minesweeper clone

Cool :cool: I've found a problem. When clicking with the middle or left+right button on an uncovered cell that shows a number N, and it's surrounded by exactly N *marked* covered cells, the remaining unmarked covered cells that surround it should be uncovered. Of course, if the marks were wrong, tha...
by pgimeno
Tue Jun 12, 2018 5:02 pm
Forum: Support and Development
Topic: Pixelation when downscaling images, even when using 'linear' filter?
Replies: 5
Views: 233

Re: Pixelation when downscaling images, even when using 'linear' filter?

I did someone homework on mipmaps, and maybe the optimal solution would be to just make a couple of different downscaled sizes (like diy mipmaps) for each icon outside of Love in Photoshop and then just use the size that's closest to what's needed ingame? Hopefully they then never need to be scaled...
by pgimeno
Tue Jun 12, 2018 11:14 am
Forum: General
Topic: Could LÖVE run on a Raspberry Pi 2B WITH x11?
Replies: 16
Views: 461

Re: Could LÖVE run on a Raspberry Pi 2B WITH x11?

There are Raspbian binary packages for 0.9.1: http://archive.raspbian.org/raspbian/pool/main/l/love/ To extract, you need either dpkg-deb (easiest) or ar + tar. In case you don't have dpkg-deb, note that a .deb package is an ar archive which contains three files, two of which are typically tar.gz or...
by pgimeno
Mon Jun 11, 2018 9:54 pm
Forum: Support and Development
Topic: Pixelation when downscaling images, even when using 'linear' filter?
Replies: 5
Views: 233

Re: Pixelation when downscaling images, even when using 'linear' filter?

Yeah. Bilinear filtering alone can't scale down further than half the original size without these issues, because then it skips pixels and causes aliasing. I guess OpenGL doesn't do anything beyond bilinear filtering (edit: see Nelvin's reply below) . I see that issue here as well. You can perhaps u...