Question about 2D platformer games (collision system)

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
SundayAfternoon
Prole
Posts: 1
Joined: Tue Mar 17, 2015 1:56 am

Question about 2D platformer games (collision system)

Post by SundayAfternoon »

Hey Indie Developers !! :) Question about LOVE2D Engine..
I have attached 2 photos below. currently I'm working on simple 2d platformer game; idea is the player starts from left corner of the screen and if player captures the flag on the right corner of screen player wins and will take the player to the next level.
So I have my player and the ground set up and I applied the gravity and collision bounds to them. (picture 1 reflects the situation) Anyways, here's the tricky part , how do I add the collision system to platform1,2,3 ?? I didn't want to use "Tiled Map Editor" or such. Goal is to create the levels using photoshop&illustrator and bring those to the game world.
any thoughts and ideas? or any advise ?
thank you for your time, I'd be much appreciated !!
Cheers.
Attachments
flaggerground.png
flaggerground.png (67.96 KiB) Viewed 985 times
flagger.png
flagger.png (74.02 KiB) Viewed 985 times
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Question about 2D platformer games (collision system)

Post by ivan »

First, set up your fixtures/bodies with love.physics (Box2D) and test the gameplay.
After you make sure that it works, just draw a graphic on top.
I think it works better for action games because with Box2D, you're never 100% sure how objects are going to behave without testing the gameplay first.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest