SFML community forums

General => SFML projects => Topic started by: harimohan106 on April 28, 2014, 04:29:43 pm

Title: Need help integrating Box2D and SFML
Post by: harimohan106 on April 28, 2014, 04:29:43 pm
Hello everyone.

I'm a newbie who has been assigned the task of creating a graphics project for my semester exams. I have been planning to do a platform game. So I have thought up several questions...please go through them patiently.

---> How to integrate Box2D physics with SFML projects?
---> I need a moving environment. How do I achieve that?
---> Multiple shapes will be populated within a single screen, which means I need a way to display them all.
Title: Re: Need help integrating Box2D and SFML
Post by: Nexus on April 28, 2014, 04:37:51 pm
You're not the first with this problem. Have you searched the forum?

I don't think somebody will write a complete tutorial here, so you should rather research a bit and then ask concrete questions ;)
Title: Re: Need help integrating Box2D and SFML
Post by: fallahn on April 28, 2014, 05:40:43 pm
My tmx map library (http://trederia.blogspot.co.uk/2013/12/tiled-map-loader-for-sfml-and-box2d.html) has box2D support, you can browse the source (https://github.com/fallahn/sfml-tmxloader) as reference.