Search found 3544 matches

by pgimeno
Mon Sep 24, 2018 6:15 pm
Forum: Support and Development
Topic: HTTPS (SSL/TLS) requests
Replies: 2
Views: 2594

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: 3310

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,...
by pgimeno
Sun Sep 23, 2018 7:59 pm
Forum: Support and Development
Topic: Sample average of multiple canvases.
Replies: 3
Views: 3310

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...
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: 2323

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: 2
Views: 1849

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: 106
Views: 613328

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: 4338

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 mak...
by pgimeno
Wed Sep 19, 2018 2:45 pm
Forum: General
Topic: GLSL unsigned integers not supported in last version ?
Replies: 6
Views: 4338

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: 4622

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...
by pgimeno
Tue Sep 18, 2018 10:24 pm
Forum: General
Topic: GLSL unsigned integers not supported in last version ?
Replies: 6
Views: 4338

Re: GLSL unsigned integers not supported in last version ?

Try adding this line at the top of the shader:

Code: Select all

#pragma language glsl3