Page 1 of 1
IM NEW
Posted: Wed Jan 18, 2012 7:58 pm
by rokit boy
Hello fellow lua writers,
I have studied lua on the basics, and I wanted to make games. So I chose this engine, I got it from stabyourelf.net as I was playing Not Tetris.
I know the basics of love2d, now i'm trying to make a platformer, but this is the part where i'm stuck. I have no idea about physics in lua...
Can someone explain to me how a platformer works?
Re: IM NEW
Posted: Wed Jan 18, 2012 8:32 pm
by TechnoCat
I wrote a post about this actually to get people started:
viewtopic.php?f=5&t=2315&p=42275&hilit=+hardon#p42275
Re: IM NEW
Posted: Wed Jan 18, 2012 9:01 pm
by rokit boy
I'd prefer to use the original physics since I don't like libraries.
Re: IM NEW
Posted: Wed Jan 18, 2012 9:11 pm
by RetroMan
I'd prefer to use the original physics since I don't like libraries.
You would probably want to look at Fizz then ... it's written in lua and doesn't use libraries ...
Other than that, you'll have to deal with libs sometime as there's only so much one can do in native lua ...
Cheers.
Re: IM NEW
Posted: Wed Jan 18, 2012 9:48 pm
by Ellohir
If you don't like using libraries you will have to program one on your own. A platformer shouldn't have many physics related, you can take a look at Fizz and copy the parts you need
Re: IM NEW
Posted: Thu Jan 19, 2012 1:06 am
by Lafolie
This article on Sonic 2 gives a great insight on one way to do it.
http://info.sonicretro.org/Sonic_Physics_Guide
Re: IM NEW
Posted: Thu Jan 19, 2012 3:24 pm
by headchant
That is a very nice article. But I think it might be very hard to implement for someone who just learned Lua.
Just to complete the list: I wrote a small tutorial(well, part 2 is coming soon) for platformers in Löve with the external library HardonCollider:
here
Re: IM NEW
Posted: Thu Jan 19, 2012 4:13 pm
by tentus
headchant wrote:
Just to complete the list: I wrote a small tutorial(well, part 2 is coming soon) for platformers in Löve with the external library HardonCollider:
here
Quick note about that tutorial: in the last block of code / line 70 of the full source, do you mean
shape_b == her or should it be
shape_b == hero?
Otherwise, very helpful little writeup, you should pimp it more.
Re: IM NEW
Posted: Thu Jan 19, 2012 5:47 pm
by rokit boy
headchant wrote:
That is a very nice article. But I think it might be very hard to implement for someone who just learned Lua.
Just to complete the list: I wrote a small tutorial(well, part 2 is coming soon) for platformers in Löve with the external library HardonCollider:
here
I've been learning lua for 3 years...