HomerSp

Member
  • Content count

    92
  • Joined

  • Last visited

Community Reputation

126 Neutral

About HomerSp

  • Rank
    Member
  1. You need to call Write(1, "Error - %s", "Problem with foo") to get "Problem with foo" to appear. If you didn't know this already you might want to have a look at vsprintf
  2. Using the Command Line and Paths with Spaces

    That should be how you do it.. What if you cd to "C:\Program Files\Stuff" and instead do doStuff.exe "C:\Users\Me\Documents\stuff.txt"
  3. How to get user's music folder

    If you are using win32 api you can use SHGetFolderPath with the CSIDL_MYMUSIC parameter. Example: char szPath[MAX_PATH]; SHGetFolderPath(NULL, CSIDL_MYMUSIC|CSIDL_FLAG_CREATE, NULL, 0, szPath);
  4. Unknown Horizons are waiting for you

    It looks very nice indeed, will try this when I get home.
  5. OpenGL OpenGL and OpenAL?

    OpenGL is a graphics library used mainly for 3D (but can be used for 2D aswell). OpenAL is an audio library used for 3D and 2D that strives to be similar to OpenGL in the way functions are named and such. Both of them are however quite hard to use and require alot of work, especially if you're only going to do 2D.
  6. Are you using relative paths? If so make sure the files are in the current working directory (in visual studio it's where you keep the solution file I believe).
  7. If you intend to make your game (or whatever it might be) cross-platform you're better off using cross-platform libraries and code from the start. Otherwise it's going to be a pain when you do decide you want to compile it on another OS (lots and lots of rewriting).
  8. C++ / OpenGL Limiting Framerate?

    Fix your timestep - Great article about time-based movement.
  9. Any specific reason you want to work with Win32 api (GDI to be more exact)? Otherwise I'd suggest a "real" library such as SDL or SFML :) Also, you never mentioned what programming language you're going to use (if any)?
  10. 2D Isomentric maps.

    Don't you want it to be: g_pGrassBitmap->Draw(hDC, (xPos + w) * TILE_WIDTH, (yPos + h) * TILE_HEIGHT,true); Keep in mind that 1 + 2 * 3 is not equal to (1 + 2) * 3 because multiplication has a higher priority than addition ;)
  11. tring to make smily face follow cursor

    Quote:Original post by markg51571 Quote:Original post by jyk Quote:No,all I am tring to do is get a smiley face to follow my mouse cursor in a console window.No, what? I'm not sure I follow... So we know you're on Windows because of the win32 exception. Can you tell us what language you're using? What IDE? all I am tring to do is get a smiley face to show in the console window, and when ever I put my mouse pointer in the console window the smiley face will start to follow the mouse pointer. I am using visual studio 2005, and using c++ as the programming language. We'll need some code if we are going to be able to help you.
  12. Character animation

    Quote:Original post by Hazard org P.S: How do I put the code in a text box like you did? You use tags: FAQ ;) The black bakground can either be blended away or you can use a format that has an alpha channel (PNG for example) and remove the black yourself.
  13. Best Books for Beginners?

    If you want to be a professional game developer you pretty much have to learn a programing language. If you just want to do some hobby game developing a tool such as Game Maker works just fine. Python or similar is good for beginners, but professionals mostly use C++. And to answer your initial question, there are no ideal books. You'll have to do some searching yourself until you find one that you like.
  14. Character animation

    2. Just check for diagonal movement (if two keys are pressed) before you check non-diagonal. E.G. (pseudo code) if key left and key up left-up diagonal movement else if key left left movement else if up up movement end
  15. It will most likely never be removed, but as resolutions get bigger and bigger it'll start to look uglier and uglier. Especially on widescreen resolutions (16:9 or 16:10). An idea would be to keep the resolution at 800x600 but without stretching the screen, instead add black borders (so essentially outputting the screen in native resolution and the game in 800x600).