Search found 16 matches

by TheHUG
Sat Jan 19, 2019 9:44 pm
Forum: Libraries and Tools
Topic: Breezefield: a lightweight windfield alternative (love.physics wrapper)
Replies: 9
Views: 3092

Re: Breezefield: a lightweight windfield alternative (love.physics wrapper)

Hi,
I've pushed a couple changes, there are more collider types available now, I corrected get/setUserData and made some minor stylistic alterations (removing redundant comments, abbreviating core love libraries á la 4zerov).
Cheers, All
by TheHUG
Wed Jan 09, 2019 2:05 pm
Forum: Libraries and Tools
Topic: Breezefield: a lightweight windfield alternative (love.physics wrapper)
Replies: 9
Views: 3092

Re: Breezefield: a lightweight windfield alternative (love.physics wrapper)

Thanks 4vZerov, I'll definitely have a look at trimming the comments - I do tend to leave them lying around when they're no longer relevant. I'm keeping (and maybe adding more) docstrings though, if that's what you mean. and yeah since I'm using so few of mlib's functions it is kind of overkill to i...
by TheHUG
Tue Jan 08, 2019 1:24 pm
Forum: Libraries and Tools
Topic: Breezefield: a lightweight windfield alternative (love.physics wrapper)
Replies: 9
Views: 3092

Re: Breezefield: a lightweight windfield alternative (love.physics wrapper)

Nicely done and thanks for sharing! Your implementation has some nice touches, I hope you don't mind if I poach a few of them? It also gave me some new ideas, so thanks again! If you don't mind, could you state a couple ways in which the way breezefield is structured clashes with what is comfortable...
by TheHUG
Tue Jan 01, 2019 9:18 pm
Forum: Libraries and Tools
Topic: Cellular Automata Engine
Replies: 2
Views: 1811

Re: Cellular Automata Engine

Oh nice idea!
CA are fun to play around with, and love seems just the thing to do it with.
Thanks!
by TheHUG
Tue Jan 01, 2019 5:38 pm
Forum: General
Topic: Codding player death
Replies: 9
Views: 842

Re: Codding player death

is Collision_with_enemy perhaps nil at the start of the game? while nil may be falsey, I don't think nil == false
you could try
if not Collision_with_enemy then
instead of
if Collision_with_enemy == false then
by TheHUG
Sun Dec 16, 2018 12:03 pm
Forum: Libraries and Tools
Topic: Breezefield: a lightweight windfield alternative (love.physics wrapper)
Replies: 9
Views: 3092

Breezefield: a lightweight windfield alternative (love.physics wrapper)

Hi everyone! I made a little library in the vein of windfield, but simpler to use and modify. https://github.com/HDictus/breezefield Basically, it makes working with the love.physics library a lot easier, faster, and more concise. calling bf.Collider.new(world, shape, args*) creates body, fixture, a...
by TheHUG
Sun Sep 09, 2018 5:50 pm
Forum: Support and Development
Topic: World:queryBoundingBox not finding any fixtures
Replies: 2
Views: 268

Re: World:queryBoundingBox not finding any fixtures

Oh yeah whoops, that explains, thanks!

And yeah I posted the wrong version, I had inverted the points to see if I was putting them in the wrong way around and forgot to put it back for the example :P
by TheHUG
Sun Sep 09, 2018 11:49 am
Forum: Support and Development
Topic: Rotate quads
Replies: 2
Views: 376

Re: Rotate quads

The issue is that when you are reversing your translation, you are reversing by a different amount than the initial translation, so instead of love.graphics.translate(-150, -150) do love.graphics.translate(-rotatex, -rotatey) , which reverses love.graphics.translate(rotatex, rotatey) one point to co...
by TheHUG
Sun Sep 09, 2018 9:21 am
Forum: Support and Development
Topic: World:queryBoundingBox not finding any fixtures
Replies: 2
Views: 268

World:queryBoundingBox not finding any fixtures

Hi! I'm trying to use World:queryBoundingBox(), but it doesn't seem to find anything. using windfield's query functions does work, and though I can't tell what I'm not doing that they are, I can't get it to work for myself. a minimal example is: function love.load(arg) midx = love.graphics.getWidth(...