Search found 505 matches

by grump
Thu Feb 21, 2019 5:02 pm
Forum: Support and Development
Topic: Scenes/Views/Activities question [Answered]
Replies: 25
Views: 508

Re: Scenes/Views/Activities question [Answered]

You literally told me to and here's the quote: "shut the fuck up" That's the same thing you told people who tried to help you, I just did it in more clear words, and only after you've insulted more than one user here, and insisted you're right even though you are not. The Internet is a rough place ...
by grump
Thu Feb 21, 2019 4:28 pm
Forum: Support and Development
Topic: Scenes/Views/Activities question [Answered]
Replies: 25
Views: 508

Re: Scenes/Views/Activities question [Answered]

i don't think my post was much of a character attack or whatever, nor did i intend it that way, for the record. (not gonna go into grump's responses though) It wasn't. You did nothing wrong. Asking to clarify bogus claims is very much expected in a technical forum, and if you hadn't done it, someon...
by grump
Thu Feb 21, 2019 3:44 pm
Forum: Support and Development
Topic: Scenes/Views/Activities question [Answered]
Replies: 25
Views: 508

Re: Scenes/Views/Activities question [Answered]

Again, no intellectual value, totally not related to thread, so I'm just avoid the point of this reply Like, there's a subject of the thread for some reason, if You don't have anything to say related to the subject, just stay quiet, please. It makes things a lot easier Sure dude. Way to make a gian...
by grump
Thu Feb 21, 2019 2:46 pm
Forum: Support and Development
Topic: Opposite colors to the background
Replies: 10
Views: 137

Re: Opposite colors to the background

An 'invert' blendmode would be useful to have. This is by far the easiest way to do it and it doesn't require shaders. Blending in LÖVE is weird. I for example never really understood why multiplicative blending can only be used with premultiplied alpha, and does not multiply the alpha component. I...
by grump
Thu Feb 21, 2019 2:44 pm
Forum: Support and Development
Topic: Scenes/Views/Activities question [Answered]
Replies: 25
Views: 508

Re: Scenes/Views/Activities question

Just please, avoid sending replies that have no intellectual value, specially if thread has an answer You should avoid making statements that have no basis in reality, then get pissed when being asked to clarify and to back your claims with facts. Having a lot of unrelated code in a single file may...
by grump
Thu Feb 21, 2019 11:34 am
Forum: Support and Development
Topic: Opposite colors to the background
Replies: 10
Views: 137

Re: Opposite colors to the background

pgimeno wrote:
Thu Feb 21, 2019 11:31 am
Edit: Oops, ninja'd by grump :nyu:
Ha! :) But you walked the extra mile, while I was lazy as usual. Edit: and my solution wouldn't even work right with an actual background because the texture coords are bogus

An 'invert' blendmode would be useful to have.
by grump
Thu Feb 21, 2019 11:29 am
Forum: Support and Development
Topic: Opposite colors to the background
Replies: 10
Views: 137

Re: Opposite colors to the background

Now, I want to create a circle just like love.graphics.circle("line", circle.x, circle.y, circle.r) (the size and position work just fine) but I have an image as a background and I want the color of the circle to be the opposite color of which it's above. I suppose you mean that the circle should i...
by grump
Thu Feb 21, 2019 11:07 am
Forum: Support and Development
Topic: UDP networking for multiplayer game
Replies: 8
Views: 188

Re: UDP networking for multiplayer game

You can even write it like this:

Code: Select all

repeat
    local data, err_msg = udp:receive()
    ...
until not data
by grump
Mon Feb 18, 2019 10:15 am
Forum: Support and Development
Topic: Converting imageData:getPixel() numbers to the 0-255 range
Replies: 2
Views: 220

Re: Converting imageData:getPixel() numbers to the 0-255 range

math.floor(c * 255 +.5) should do the trick. Or use cindy . Either call require('cindy').applyPatch() to have the old behavior restored in all relevant functions, or use the provided *Bytes alternatives. function converter:imagetomap(img) local pixelData = {} local function map(x, y, r, g, b, a) pi...
by grump
Tue Feb 12, 2019 5:03 pm
Forum: General
Topic: [SOLVED] (breakout clone) powered up big ball doesn't remove several bricks at once
Replies: 2
Views: 302

Re: [HELP] (breakout clone) powered up big ball doesn't remove several bricks at once

When you remove table entries in a loop like this, entries will be skipped. The simplest solution is to iterate backwards over the bricks when your remove them.