IM NEW

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
rokit boy
Party member
Posts: 198
Joined: Wed Jan 18, 2012 7:40 pm

IM NEW

Post 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?
u wot m8
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: IM NEW

Post by TechnoCat »

I wrote a post about this actually to get people started: viewtopic.php?f=5&t=2315&p=42275&hilit=+hardon#p42275
User avatar
rokit boy
Party member
Posts: 198
Joined: Wed Jan 18, 2012 7:40 pm

Re: IM NEW

Post by rokit boy »

TechnoCat wrote:I wrote a post about this actually to get people started: viewtopic.php?f=5&t=2315&p=42275&hilit=+hardon#p42275
I'd prefer to use the original physics since I don't like libraries.
u wot m8
User avatar
RetroMan
Prole
Posts: 16
Joined: Fri Oct 10, 2008 7:05 pm

Re: IM NEW

Post 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.
Old programmers never die, they just get disassembled...
User avatar
Ellohir
Party member
Posts: 235
Joined: Sat Oct 22, 2011 11:12 pm

Re: IM NEW

Post 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 ;)
User avatar
Lafolie
Inner party member
Posts: 809
Joined: Tue Apr 05, 2011 2:59 pm
Location: SR388
Contact:

Re: IM NEW

Post by Lafolie »

This article on Sonic 2 gives a great insight on one way to do it. http://info.sonicretro.org/Sonic_Physics_Guide
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.
User avatar
headchant
Party member
Posts: 105
Joined: Fri Sep 03, 2010 12:39 pm
Contact:

Re: IM NEW

Post by headchant »

Lafolie wrote:This article on Sonic 2 gives a great insight on one way to do it. http://info.sonicretro.org/Sonic_Physics_Guide
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
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: IM NEW

Post 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.
Kurosuke needs beta testers
User avatar
rokit boy
Party member
Posts: 198
Joined: Wed Jan 18, 2012 7:40 pm

Re: IM NEW

Post by rokit boy »

headchant wrote:
Lafolie wrote:This article on Sonic 2 gives a great insight on one way to do it. http://info.sonicretro.org/Sonic_Physics_Guide
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...
u wot m8
Post Reply

Who is online

Users browsing this forum: No registered users and 53 guests