Search found 2605 matches

by pgimeno
Sat Nov 21, 2015 5:50 am
Forum: Support and Development
Topic: math.clamp?
Replies: 18
Views: 17042

Re: math.clamp?

I like mlepage's approach, it's clear and fast. No variable arguments, no function calls, no intermediate tables or objects: function clamp(v, a, b) assert(a <= b, "invalid clamp range") -- optional: debug message if v < a then v = a elseif v > b then v = b end return v end Here's a small...
by pgimeno
Fri Nov 20, 2015 3:50 pm
Forum: General
Topic: Blacklisted
Replies: 7
Views: 5243

Re: Blacklisted

This seemed to happen only for one particular Tor exit node. So far everything's back to normal. Sorry for the noise.
by pgimeno
Thu Nov 19, 2015 10:25 pm
Forum: Support and Development
Topic: Obtaining body by point.
Replies: 5
Views: 1317

Re: Obtaining body by point.

By "body" do yo mean a physics body?
by pgimeno
Wed Nov 18, 2015 6:12 pm
Forum: Support and Development
Topic: Mouse/Selection system dependent on camera scale/position
Replies: 3
Views: 1591

Re: Mouse/Selection system dependent on camera scale/positio

I needed to make a change to main.lua to be able to check: diff -ru --strip-trailing-cr a/main.lua b/main.lua --- a/main.lua 2015-11-17 23:49:16.000000000 +0100 +++ b/main.lua 2015-11-18 18:38:52.000000000 +0100 @@ -26,7 +26,7 @@ ui:load() camera:load() icl:load("f1", "f2", "...
by pgimeno
Wed Nov 18, 2015 6:11 pm
Forum: General
Topic: Blacklisted
Replies: 7
Views: 5243

Blacklisted

I'm exclusively using Tor for browsing, out of being sick of privacy violations by certain agencies. I just got this notice when trying to preview a message I was going to send: Your IP 185.36.100.145 has been blocked because it is blacklisted. For details please see http://www.spamhaus.org/query/bl...
by pgimeno
Tue Nov 17, 2015 4:03 am
Forum: Games and Creations
Topic: Pokemon Clone
Replies: 33
Views: 13276

Re: Pokemon Clone

I've managed to make it work in love 0.5-0 if that helps...

Do you realize the OP is from 2009?
by pgimeno
Sun Nov 15, 2015 1:58 am
Forum: Support and Development
Topic: [Solved] Garbage during scrolling of a canvas
Replies: 5
Views: 2049

Re: Garbage during scrolling of a canvas

Btw @OP: I am not sure why you are drawing the canvas onto itself for scrolling in the first place. Why don't you just move the canvas around when you draw it? (love.graphics.draw(canvas, x, y)) It's what I was doing but it looked like a kludge given the program's structure, see https://github.com/...
by pgimeno
Sun Nov 15, 2015 12:10 am
Forum: Support and Development
Topic: [Solved] Garbage during scrolling of a canvas
Replies: 5
Views: 2049

Re: Garbage during scrolling of a canvas

Ugh, thanks. Doing that within a renderTo() callback function may be tricky, though. I'll see what I can do.
by pgimeno
Sat Nov 14, 2015 7:31 pm
Forum: Support and Development
Topic: [Solved] Garbage during scrolling of a canvas
Replies: 5
Views: 2049

[Solved] Garbage during scrolling of a canvas

I'm trying to make a scrolling effect for Thrust II. The scrolling basically consists of painting a part of the canvas onto itself. However, it's leaving some garbage behind during the scrolling. Is that not supported? Here's a minimal main.lua that reproduces the problem: lg = love.graphics local c...
by pgimeno
Sat Nov 14, 2015 5:36 pm
Forum: Support and Development
Topic: [Solved] Loss of energy?
Replies: 1
Views: 735

Re: Loss of energy?

Operator error, sorry :oops:

This line was the culprit:

Code: Select all

  fixture:setFriction(0.001)