Platform Engine - A Few Thoughts

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Cruiser23rus
Prole
Posts: 9
Joined: Mon May 04, 2009 11:41 am

Re: Platform Engine - A Few Thoughts

Post by Cruiser23rus »

"When the player landed, the game reset both variables back to False."

Ok. And how to define that player landed?
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Platform Engine - A Few Thoughts

Post by Robin »

Cruiser23rus wrote:"When the player landed, the game reset both variables back to False."

Ok. And how to define that player landed?
Well, for example, you could check for y <= 0 and collisions with platforms, as I did it with Jump Game.
(See http://love2d.org/forum/viewtopic.php?f ... t=30#p6575)
Help us help you: attach a .love.
User avatar
Xcmd
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Re: Platform Engine - A Few Thoughts

Post by Xcmd »

In my particular case I knew where the ground was at all times, so it wasn't hard to find. In a platform game you almost have to be tile-based. If you don't know where the ground is, you're going to have a hard go of things.
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!
Post Reply

Who is online

Users browsing this forum: No registered users and 53 guests