Jump to content
  • Advertisement

MindFlayer

Member
  • Content Count

    199
  • Joined

  • Last visited

Community Reputation

262 Neutral

About MindFlayer

  • Rank
    Member
  1. MindFlayer

    Getting into Linux/Cross Platform Development

    Have you ever considered using Java for your projects? I find C++ incredibly burdensome for hobbyist game programmers and always cry a little when I see it used when it's not really needed. There are some really good opensource IDEs for Java such as Eclipse available for any *nix, 3D engines such as JMonkeyEngine and so on. And it's cross-platform of course. :) I'm just trying to say that there are easier alternatives to this horrible autotools/library/C++ mess.
  2. MindFlayer

    How to develop a game

    If I were to start creating a new game, I'd probably go with one of these :) Python : PyGame C# : XNA Java : jMonkeyEngine
  3. I used glSDL in a previous video engine of mine and it really helped with my frame-rates (went from around 50 to way over 300). Basically, the library wraps most of the SDL rendering functions into OpenGL ones so you don't have to modify any of your earlier code. Unfortunately, the library is no longer actively developed but I guess you should still try it out. here's a linky.
  4. MindFlayer

    C#: XNA game not running in XP

    Any program can do *bad* things even if not classified as a virus. Since you're posting here for the first time and you're recommending us to use an "online virus checker", I too got a little suspicious. Maybe posting some screenshots would gain you more trust ^^
  5. MindFlayer

    best TWO-player games for: C64, (S)NES, Sega 8 & 16bit consoles

    Nintendo World Cup for NES It's brilliant when played with some friends and/or alcohol. And the graphics... Man! Look at those eyes! x_X
  6. MindFlayer

    best game ever played

    Chrono Trigger, Nethack and Natural Selection.
  7. MindFlayer

    Wish distortion!

    Quote:Original post by Elevens Wish Granted, but in your desperation you paid way too much for it. I wish for nothing. Nothing happens. But shortly after, you realize that you've just wasted a wish. I wish for a blessed +2 gray dragon scale mail.
  8. MindFlayer

    Having trouble with SDL, KDevelop and Linux

    Quote:Original post by agi_shi Does anyone know how to tell KDevelop where to look for SDL? Because right now I have to use SDL/SDL.h, which isn't all that great. I'm afraid that's the most portable way to include SDL. :)
  9. MindFlayer

    [QUESTION]

    Quote:Original post by tufflax Start here! :) Is it just me or is this stuff somewhat outdated now? :/ I mean, just look at this: "I want to make my DirectX game in 16-bit"
  10. MindFlayer

    Design a spaceship!

    The above spaceship looks like a....
  11. MindFlayer

    Compiling SDL - need ddraw.h

    I believe you have to install DirectX SDK to get DirectDraw (ddraw.h). It _should_ be available in all of the modern SDK versions for backward compatibility. Anyone correct me if I'm wrong... Linky
  12. Quote:Original post by TEUTON Why do always non-static const and non-static reference data members need to be initialised in initilisation lists? Because both are designed to be types that cannot be changed in the code, only in initialization stage (and that's exactly what the initializer list is for!)
  13. MindFlayer

    [java] Dear Java

    Quote:Original post by Kevinator Java's been really pissing my off *a lot* lately. Not everything is appropriately modeled by a class, dammit! How about this? [grin] class SomethingNotModeledByAClass { public static void DoSomething() { } }
  14. MindFlayer

    [java] Java SE 6.0 Scripting

    Wow that sure looks nice! Thanks for sharing this info with us :) Now I've began to like Java even more.
  15. MindFlayer

    OpenAL sound devices

    Here's my code for initializing the best device available. This code may still have some bugs in it but hey it worked for me - so here it goes: ALCint highest_version = 0; // Highest version number found const ALCchar * best_device = NULL; // Name of the 'best' device // Find the highest-version device available const ALCchar * device_name = alcGetString(NULL, ALC_DEVICE_SPECIFIER); // Get list of all devices (terminated with two '0') while (*device_name != NULL) // Loop until two terminating zeroes has been read { ALCint major_v=0, minor_v=0; ALCdevice * _temp_device = alcOpenDevice(device_name); // Open a temporary device for reading in its version number if (_temp_device == NULL) // Just keep looping if we couldn't open the device { cerr << "AUDIO: Couldn't open a temporary device: " << device_name << endl; device_name += strlen(device_name) + 1; continue; } ALCcontext * temp_context = alcCreateContext(_temp_device, NULL); // Create a temporary context if (temp_context == NULL) // Keep looping again if no context was created { cerr << "AUDIO: Couldn't create a temporary context for device: " << device_name << endl; alcCloseDevice(_temp_device); device_name += strlen(device_name) + 1; continue; } alcMakeContextCurrent(temp_context); alGetError(); alcGetIntegerv(_temp_device, ALC_MAJOR_VERSION, sizeof(ALCint), &major_v); // Get the version number alcGetIntegerv(_temp_device, ALC_MINOR_VERSION, sizeof(ALCint), &minor_v); alcMakeContextCurrent(NULL); // Disable the temporary context alcDestroyContext(temp_context); // Destroy the temporary context alcCloseDevice(_temp_device); // Close the temporary device if (highest_version < (major_v * 10 + minor_v)) // Check if we found a higher version { highest_version = (major_v * 10 + minor_v); best_device = device_name; } device_name += strlen(device_name) + 1; // Go to the next device name in the list } // Open the 'best' device we found above _device = alcOpenDevice(best_device); if (_device == NULL) { cerr << "AUDIO ERROR: Failed to initialize OpenAL and open a default device." << endl; return false; } ALCcontext * context = alcCreateContext(best_device, NULL); alcMakeContextCurrent(context); alGetError(); I'd still suggest to check hh10k's advice
  • 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!