Search found 2130 matches

by pgimeno
Mon Jun 01, 2020 10:08 am
Forum: Support and Development
Topic: Overlay
Replies: 3
Views: 135

Re: Overlay

If I understood what you're after I would be able to give you better advice. For colours, white (or full intensity of a given component) counts as 1.0, black counts as 0.0; for alpha, fully opaque counts as 1.0 and transparent as 0.0. That's the value that gets multiplied by the given component. Thi...
by pgimeno
Sun May 31, 2020 12:11 am
Forum: Support and Development
Topic: Overlay
Replies: 3
Views: 135

Re: Overlay

I'm not sure I'm understanding, but doesn't "multiply", "premultiplied" do this?
by pgimeno
Sat May 30, 2020 9:54 am
Forum: Support and Development
Topic: Code/game examples
Replies: 2
Views: 132

Re: Code/game examples

See also this subforum: https://love2d.org/forums/viewforum.php?f=14 in which several users post games. The advantage of the latter is that the games in the last threads are usually for the latest version of Löve.
by pgimeno
Fri May 29, 2020 7:32 pm
Forum: Support and Development
Topic: Attempt to perform arithmetic on "color" a nil value.
Replies: 4
Views: 126

Re: Attempt to perform arithmetic on "color" a nil value.

lushfoliage wrote:
Fri May 29, 2020 7:00 pm
Ahaha...turns out in some functions I had brick:render() instead of Brick:render(),
That should be the correct thing to have. You don't call an instance method on a class (Brick), you call it on the instances (brick). That's the whole point of the self parameter and the colon syntax.
by pgimeno
Fri May 29, 2020 10:12 am
Forum: Games and Creations
Topic: I have a problem with lag
Replies: 7
Views: 192

Re: I have a problem with lag

And please use the support forum to post questions!
by pgimeno
Fri May 29, 2020 10:08 am
Forum: Support and Development
Topic: Two dimensional love.math.noise with big values
Replies: 2
Views: 133

Re: Two dimensional love.math.noise with big values

Hello, welcome to the forums. Quite unfortunately, Löve is using single precision to generate noise, which intrinsically has that limitation on big values. Here's a representation of the range 1999999.5 to 2000000.5 in both dimensions, showing the loss of precision in the coordinates (it gets worse ...
by pgimeno
Thu May 28, 2020 8:57 pm
Forum: General
Topic: Optikon: A WYSIWYG Level Designer for LÖVE
Replies: 21
Views: 2985

Re: Optikon: A WYSIWYG Level Designer for LÖVE

Is it fair to say that it would be better to have a clearer separation between the generated map and the engine necessary to load it? Kind of like the file that Tiled generates, on one hand, and the library that loads them (plus a simple program to use the library to represent it, if you wish), on t...
by pgimeno
Wed May 27, 2020 9:18 pm
Forum: General
Topic: Keep coordinate fullscreen mode
Replies: 1
Views: 164

Re: Keep coordinate fullscreen mode

I'm not sure if I've understood correctly what you're asking, but you can try combining love.graphics.setScissor with love.graphics.translate . Something like this (use F11 to toggle fullscreen mode): -- This is just a demonstrative effect local circles = {} local nCircles = 20 local circleRadius = ...
by pgimeno
Sun May 24, 2020 12:35 am
Forum: General
Topic: Code Doodles!
Replies: 156
Views: 79015

Re: Code Doodles!

While I was watching this demo by Melon Dezign, the shadebobs effect caught my attention. I wondered if I would be able to replicate it with Löve to any degree of accuracy, and well, while it's not identical, I'm pretty satisfied with this result. The first three effects use parameters that mimic th...
by pgimeno
Sat May 23, 2020 11:12 am
Forum: Support and Development
Topic: Load from file
Replies: 11
Views: 628

Re: Load from file

Thank you, I understand :nyu: But I still have "test_output.txt" empty after running the code It seems that the values do not write to it. Your code works for me. Are you sure the input file has the right contents? Are you sure you're looking at the right output file? test_output.txt should be in t...