Page 2 of 3

Re: Those physics

Posted: Wed Aug 11, 2010 9:01 pm
by Robin
It's not very hard to do. The hardest part is figuring out which data structures and algorithms to use, and I'm sure the LÖVE CLUB can help you on any step of the way. I think quadtrees are your best bet here.

Re: Those physics

Posted: Wed Aug 11, 2010 9:25 pm
by kikito
Jasoco wrote:Edit: One day SOMEONE here will make a working side-scroller engine framework and offer it as an example to Löve users so we can stop getting these same questions every week.
I estimate this to happen around mid-October.

EDIT:
Robin wrote:I think quadtrees are your best bet here.
I happen to have implemented one of those (It needs middleclass).

Re: Those physics

Posted: Thu Aug 12, 2010 6:51 am
by Mizore
bartbes wrote:Instead of correcting the x and y values, use the offsets to set the origin to center (ox and oy). (it'll fix rotation)
And how could i do that?

Re: Those physics

Posted: Thu Aug 12, 2010 11:35 am
by bartbes
Using the ox and oy parameters to love.graphics.draw.

Re: Those physics

Posted: Thu Aug 12, 2010 2:09 pm
by Robin
bartbes wrote:Using the ox and oy parameters to love.graphics.draw.
Documentation.

Re: Those physics

Posted: Sat Aug 14, 2010 12:14 pm
by Mizore
bartbes wrote:Using the ox and oy parameters to love.graphics.draw.
Fixed, thank you.

Re: Those physics

Posted: Thu Aug 19, 2010 8:02 am
by Geti
btw: http://love2d.org/forums/viewtopic.php?f=5&t=1560
box2D can be used for platformers, though doing that game made me angry at the inability to edit maximum body constants and the like (turns out you need a heap of shapes for tiles, even when the shapes are turned off on tiles that don't have exposed edges. Also, it would be a lot nicer if the game bound shape:destroy() to a function that made it miss all the coming collisions and destroyed it immediately without causing a freaking segfault <_<

Re: Those physics

Posted: Wed Sep 01, 2010 5:43 pm
by Taehl
Jasoco wrote:Yeah. I hate to say it... again... but 2d side-scrollers and Physics just don't work together.
*Feeling somewhat slighted* Hey, wait a minute...

Re: Those physics

Posted: Wed Sep 01, 2010 7:31 pm
by Robin
Taehl wrote:*Feeling somewhat slighted* Hey, wait a minute...
Yeah, and that was fun and all, but not really a side scroller. It didn't feel that way anyway.
Geti wrote:btw: http://love2d.org/forums/viewtopic.php?f=5&t=1560
box2D can be used for platformers,
Yes, much in the same way a tank can be used to go to school every day, or a nuclear bomb can be used to clean your garage. ;)

Re: Those physics

Posted: Fri Sep 03, 2010 2:47 pm
by VideroBoy
Just to play devil's advocate, but what about Gish? That game was pretty physics-based but still fun.