Search found 2050 matches

by zorg
Wed Feb 21, 2018 12:52 pm
Forum: Support and Development
Topic: Apply noise to bounce
Replies: 3
Views: 101

Re: Apply noise to bounce

What PGUp means is that usually, pong games aren't made with realistic physics engines like Box2D (what love.physics uses), although if you wanted to do it that way, it's not wrong per se; that said, if i'm not mistaken, the setLinearVelocity method of a body wants the dx and dy parameters; you'd ne...
by zorg
Tue Feb 20, 2018 9:15 am
Forum: Support and Development
Topic: Rotating a shape?
Replies: 8
Views: 264

Re: Rotating a shape?

rectangles are axis-aligned, as far as love.graphics.rectangle is concerned; you can only rotate those through the transform function love.graphics.rotate, which takes an angle in radians. Ok I see. But love.graphics.rotate just takes one argument which is an angle, how would you tell it to rotate ...
by zorg
Tue Feb 20, 2018 7:57 am
Forum: Support and Development
Topic: Rotating a shape?
Replies: 8
Views: 264

Re: Rotating a shape?

rectangles are axis-aligned, as far as love.graphics.rectangle is concerned; you can only rotate those through the transform function love.graphics.rotate, which takes an angle in radians.
by zorg
Mon Feb 19, 2018 2:32 pm
Forum: Support and Development
Topic: Camera and pause problem
Replies: 4
Views: 144

Re: Camera and pause problem

A bit hard without knowing what gamestate lib you're using, among a few other tidbits of info that may be necessary for us to give you an answer.
by zorg
Sun Feb 18, 2018 4:09 pm
Forum: Support and Development
Topic: Disable key repeat?
Replies: 22
Views: 669

Re: Disable key repeat?

LÖVE mainly handles input via events, the "isDown" is for quick and dirty hacks mid-development and you shouldn't rely on it. I don't know, I see that the most in other people's finished source code. It's even used in Mari0 the most well known Love2d game. Be aware that Maurice (its dev) did state ...
by zorg
Sun Feb 18, 2018 4:05 pm
Forum: General
Topic: Poor mobile support?
Replies: 4
Views: 200

Re: Poor mobile support?

Define what you mean by poor mobile support, maybe we can give you concrete answers then.
by zorg
Sat Feb 17, 2018 1:05 pm
Forum: Support and Development
Topic: Disable key repeat?
Replies: 22
Views: 669

Re: Disable key repeat?

By isUp I obviously meant key released. Detecting if the keyboard is not down would detect what happens the entire game apart from when the key is down... I was just remarking that the other languages I used they all had several stage IF checks for the keyboard presses. So I found it strange that l...
by zorg
Sat Feb 17, 2018 3:25 am
Forum: Support and Development
Topic: Disable key repeat?
Replies: 22
Views: 669

Re: Disable key repeat?

It's extremely strange to only have love.keyboard.isDown...where's isUp?? It's like having a boolean with only false as a choice. Yes, because you can't do something like if not love.keyboard.isDown(key) then end right? Boolean logic functions don't need unnecessary complement functions, although f...
by zorg
Sat Feb 17, 2018 2:18 am
Forum: Support and Development
Topic: Enumerate files outside of root / save directory, recursively
Replies: 22
Views: 550

Re: Enumerate files outside of root / save directory, recursively

...I still disagree with this one; the snippet i reposted should fix all problems without needing to call ffi.C.PhysFS_mount more than once and check whether it failed. ... assuming the Windows version is not statically linked like my Linux versions are. I didn't suggest calling it, just trying to ...
by zorg
Sat Feb 17, 2018 2:12 am
Forum: Support and Development
Topic: Ternary operator for just two possibilities?
Replies: 9
Views: 244

Re: Ternary operator for just two possibilities?

other than what metatables offer (which isn't much), using metaprogramming with löve may be harder than what's it worth.