Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - AohmZ

Pages: [1]
1
SFML projects / Re: A Game with Box2D integration
« on: August 09, 2012, 01:34:43 am »
If you want to help the community and you think you could trim down the code so it wouldn't have any unessecary parts, I think it could be a nice contribution to the source section (or tutorial section) of the SFML wiki. There've been quite a few users trying to get Box2D work with SFML and some never got it to work, with your code they just might. ;)

I think I will do that. I hope to release a cleaner version of the "engine"/utilities that I've wrote for this which will have Box2D integration in it.

2
SFML projects / A Game with Box2D integration
« on: August 07, 2012, 11:49:35 pm »
For the past week or so I've been working on a game using Box2D. So far it's culminated in this:



A lot of what I've got so far is just backend code to make later development easier, but I plan to start working on the game specific elements today. The game I plan to develop is a magic combat game with a dynamic environment (hence, the physics). I am going to be using the Spark particle engine later on, however, if there is another mature particle engine that works with SFML, would anyone be so kind as to point me to it?

3
Graphics / Re: Making the draw origin in the bottom left
« on: August 05, 2012, 07:41:26 pm »
You can swap it. Just treat box2d coordinates like the sfml ones. The higher the y the lower the object is. Set your gravity to b2Vec2(0.f,9.8f), that way there is absolutely no +/- work to be done between box2d and sfml, but you still have to remember to convert meters to pixels and radians to degrees.

That's what I've already done, I was just wondering if I could do it differently.


4
Graphics / Making the draw origin in the bottom left
« on: August 05, 2012, 01:30:27 pm »
I have recently done an integration of Box2D into SFML, but working with the physics having an origin in the top left feels a bit... unnatural. I Googled around and found a post about changing the draw origin to the bottom left, and I was wondering if there has been any new development in doing so.

It's not really that big of a deal, but any help would be greatly appreciated. (This is with SFML 2)

Pages: [1]
anything