Jump to content
  • Advertisement

jakaita

Member
  • Content Count

    7
  • Joined

  • Last visited

Community Reputation

114 Neutral

About jakaita

  • Rank
    Newbie
  1. jakaita

    Delay(int milliseconds)

    Use the Sleep(milliseconds) function on Windows. Linux has a sleep(seconds), and a usleep(microseconds).
  2. You could also use private inheritance.
  3. jakaita

    What happend to Math3D?

    I just finished putting together a nice set of math classes based on the math code at http://www.geometrictools.com/ I know at least a few engines out there, like Ogre3D, also use this code.
  4. jakaita

    C++ Exception Handling

    I find that using exceptions makes the code much more readable. When updating some old code, I found myself replacing things like: bool ok = DoSomething(); if (ok) { ok = AnotherThing(); if (ok) { YetMoreThings(); } } with just try { DoSomething(); AnotherThing(); YetMoreThings(); } catch(whatever) { } which I think is easier to follow, without the error handling interspersed. The error return code version is probably only actually doing anything a small fraction of the time, yet causing a lot of clutter all the time.
  5. jakaita

    Database in game engines?

    One game engine I've used recently used Sqlite to store levels and other game data. Sure, it's fast, but I found it tedious to deal with when editing. IMO, if you're going to use a database, make an xml/some other format also, for use during development. That's what I'm doing with mine.
  6. jakaita

    Math little problem

    If you're going to just multiply the distance by the Direction vector, yes, it must be normalized.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!