Jump to content

  • Log In with Google      Sign In   
  • Create Account

jonbonazza

Member Since 07 Sep 2011
Offline Last Active Jun 20 2012 08:41 AM

Posts I've Made

In Topic: Hello Box2D not working. What am I doing wrong?

12 March 2012 - 12:33 PM

Hmm... I seemed to have figured it out, though not really sure why it didn't work before. What I did to fix it was move the world initialization out of the scene manager's ( I know, I know. The name is bad, but w/e) constructor and into the Start() method which is called at the beginning of a scene.

I do have one more question, however. To be sure I am doing things right, Box2D considers the center of the window as the origin, correct? So, if I had an 800x600 window, then the origin of the physics world in pixels would be (400, 300)? I know that Box2D works in meters and not pixels, but I want to be sure I have the origin correct for the conversions.

In Topic: Hello Box2D not working. What am I doing wrong?

12 March 2012 - 10:10 AM

I actually Am calling world->Step() inside of the while loop at the bottom. With that said, I found the problem, which was very stupid. when I called world->Step(), I passed 1/60 as the first parameter and since 1 and 60 are both integer literals, the result of the division is also an integer, which in this case would be 0. After changing that to 1.0f/60.0f, It worked.

After I got that working, I went on to make the same corrections in my project, but it's still not working. I even went as far as to temorarily change the b2FixtureDef and b2BodyDef settings to the same ones I used in the working example, and to no avail. I would provide some code, but everything is spread across so many different files that I don't think you guys would want to mess with it. I'll continue to try to debug and keep you all updated with my findings. If I really can't figure it out after a few days, I'll post the code and hope for a response as a last resort.

In Topic: Browser Game - any good engines people can recommend

12 February 2012 - 06:25 PM

I'm sure unity supports this? http://lmgtfy.com/?q=unity


Unity will do what he wants, but it is by no means Open Source. If that is a requirement, then that excludes Unity from the possible candidates.


EDIT: To more answer your question, I don't know of any engines that are open source AND support the feature set you need. Is open source really that necessary? If so, why?

In Topic: Making the sprite animation walk...

11 February 2012 - 07:24 PM

look into the use of sprite sheets. Given a sprite sheet, it is just a matter of looping through the required frames.

In Topic: 3ds Max map -- now what?

07 February 2012 - 03:36 PM

Alone, you will never make anything that could be considered "industry" quality if you only have a year and a half to do it while attending school at the same time.

You should start simple--build some 2D games using C# or Java or even Python if you are entirely new to programming.

PARTNERS