Search found 1235 matches

by pgimeno
Tue Sep 25, 2018 8:50 pm
Forum: Support and Development
Topic: Is there any list of LÖVE's environment variables?
Replies: 3
Views: 71

Re: Is there any list of LÖVE's environment variables?

First, the bad news. I don't think there's such an environment variable. These things are normally handled through redirection of standard output or standard error. In Bourne shells (sh, bash...) that's done with > for standard output and with 2> for standard error. The typical place to send the out...
by pgimeno
Mon Sep 24, 2018 6:15 pm
Forum: Support and Development
Topic: HTTPS (SSL/TLS) requests
Replies: 2
Views: 112

Re: HTTPS (SSL/TLS) requests

Not without the luasec binary module, to my knowledge. viewtopic.php?f=4&t=85389
by pgimeno
Mon Sep 24, 2018 10:35 am
Forum: Support and Development
Topic: Sample average of multiple canvases.
Replies: 3
Views: 103

Re: Sample average of multiple canvases.

You're welcome! After reviewing the blend formulas, I've noticed that you don't even need the canvas (maybe you need it anyway for other operations, but for just the averaging it's not necessary): love.graphics.setBlenderMode("alpha", "alphamultiply") love.graphics.setColor(1, 1, 1, 1) love.graphics...
by pgimeno
Sun Sep 23, 2018 7:59 pm
Forum: Support and Development
Topic: Sample average of multiple canvases.
Replies: 3
Views: 103

Re: Sample average of multiple canvases.

You don't need a shader. If you have say 6 images to average, you can use this: -- Prepare the canvas and draw mode love.graphics.setCanvas(averageCanvas) love.graphics.clear(0, 0, 0, 0) love.graphics.setBlenderMode("alpha", "alphamultiply") -- Draw the images, each with an alpha equal to 1/number-o...
by pgimeno
Sat Sep 22, 2018 1:12 pm
Forum: Support and Development
Topic: Help with FPS capped at 20 for Love2D.
Replies: 3
Views: 135

Re: Help with FPS capped at 20 for Love2D.

How many FPS do you get when you disable vsync?

Code: Select all

love.window.setMode(love.graphics.getWidth(), love.graphics.getHeight(), {vsync = false})
by pgimeno
Sat Sep 22, 2018 1:01 pm
Forum: Support and Development
Topic: Can I not use dt in local calculations? What is a table value?
Replies: 1
Views: 70

Re: Can I not use dt in local calculations? What is a table value?

Hello, welcome to the forums. The problem here is that you're using colon syntax to call knight:move(dt), which is OK, but you're not using it nor adding the implicit 'self' argument when declaring the function. Take into account that this syntax: table:method(params) is equivalent to this: table.me...
by pgimeno
Fri Sep 21, 2018 11:19 am
Forum: General
Topic: Offline LÖVE documentation for download
Replies: 88
Views: 77166

Re: Offline LÖVE documentation for download

You probably meant to add --page-requisites

The problem with that method is that, in order to keep it updated, it needs to be fully re-downloaded every time.
by pgimeno
Wed Sep 19, 2018 9:57 pm
Forum: General
Topic: GLSL unsigned integers not supported in last version ?
Replies: 6
Views: 294

Re: GLSL unsigned integers not supported in last version ?

"#version" is not directly supported by Löve. I imagine that the main reason is that it needs to be placed at the very beginning, but Löve needs to add code before that, and the code it needs to add may depend on the version. "#pragma language glsl3" is for Löve 11.1 only. It makes it add "#version ...
by pgimeno
Wed Sep 19, 2018 2:45 pm
Forum: General
Topic: GLSL unsigned integers not supported in last version ?
Replies: 6
Views: 294

Re: GLSL unsigned integers not supported in last version ?

Really? It works fine for me after that change. I've attached it.
by pgimeno
Wed Sep 19, 2018 2:22 pm
Forum: Games and Creations
Topic: Wÿld Ünÿcÿrns - A music-based shooterlike game made for music game jam 2018
Replies: 5
Views: 317

Re: Wÿld Ünÿcÿrns - A music-based shooterlike game made for music game jam 2018

Cool game! I had to make a little adjustment to make it work. --- main_game.lua.orig 2018-09-17 23:40:04.000000000 +0200 +++ main_game.lua 2018-09-19 16:18:21.180301615 +0200 @@ -50,7 +50,7 @@ float amount = sqrt(x*x+y*y); // /sqrt(2) amount = amount * amount * amount * amount * amount * amount; flo...