Those physics
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Those physics
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.
Help us help you: attach a .love.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Those physics
I estimate this to happen around mid-October.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.
EDIT:
I happen to have implemented one of those (It needs middleclass).Robin wrote:I think quadtrees are your best bet here.
When I write def I mean function.
Re: Those physics
And how could i do that?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)
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Those physics
Using the ox and oy parameters to love.graphics.draw.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Those physics
Documentation.bartbes wrote:Using the ox and oy parameters to love.graphics.draw.
Help us help you: attach a .love.
Re: Those physics
Fixed, thank you.bartbes wrote:Using the ox and oy parameters to love.graphics.draw.
Re: Those physics
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 <_<
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 <_<
- Taehl
- Dreaming in associative arrays
- Posts: 1025
- Joined: Mon Jan 11, 2010 5:07 am
- Location: CA, USA
- Contact:
Re: Those physics
*Feeling somewhat slighted* Hey, wait a minute...Jasoco wrote:Yeah. I hate to say it... again... but 2d side-scrollers and Physics just don't work together.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Those physics
Yeah, and that was fun and all, but not really a side scroller. It didn't feel that way anyway.Taehl wrote:*Feeling somewhat slighted* Hey, wait a minute...
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.Geti wrote:btw: http://love2d.org/forums/viewtopic.php?f=5&t=1560
box2D can be used for platformers,
Help us help you: attach a .love.
Re: Those physics
Just to play devil's advocate, but what about Gish? That game was pretty physics-based but still fun.
Who is online
Users browsing this forum: No registered users and 4 guests