Win32 game programming

This is a discussion on Win32 game programming within the Game Programming forums, part of the General Programming Boards category; Okay, I'm about to work with allegro, and I'm currently learning Win32 API and my curiousity is arroused. When you ...

  1. #1
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584

    Win32 game programming

    Okay, I'm about to work with allegro, and I'm currently learning Win32 API and my curiousity is arroused.

    When you program a Win32 API game, are you just "drawing" and "moving" the drawing?

    --Garfield
    1978 Silver Anniversary Corvette

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    Win32 dosent do the drawing, well it can, but nothing complex.

    Thats where Direct3D and OpenGL come in. most mail loops are just
    {
    Check for messages
    Dispatch Messages
    Draw the Scene
    Update the scene depending on the time it took to draw
    start over
    }

  3. #3
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Okay, I understand. Thanks.

    I'm going to learn allegro, but is DirectX pretty hard to learn?

    --Garfield
    1978 Silver Anniversary Corvette

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    I reccomend OpenGL, Its easy to learn.

  5. #5
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Do you do allegro?
    1978 Silver Anniversary Corvette

  6. #6
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    Talking [COLOR=blue]Haha[/COLOR]

    Originally posted by Eber Kain
    most mail loops are just
    Haha, that's a funny spelling error
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  7. #7
    Registered User
    Join Date
    Aug 2001
    Posts
    411
    No i dont do allegro.

    You can draw stuff to the screen the first day you pick up OpenGL, and ive never looked back from there.

  8. #8
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    i do some allegro... and all my behold stuff is vesa scratch... so... if you need that kind of help, pm me... oh, and i've not looked back either... and look what neat things i've beheld... hint hint, check out my demonstration...
    hasafraggin shizigishin oppashigger...

  9. #9
    Registered User
    Join Date
    Sep 2001
    Posts
    412
    DirectX is pretty simple, too. Easy to learn, doubly easy if you know the WinAPI.

    Took me ~25 mins to get a DirectX program working the first time.

  10. #10
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Arg!!! All the game programming languages...which to choose!

    What do you all think?

    --Garfield
    1978 Silver Anniversary Corvette

  11. #11
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    > doubly easy if you know the WinAPI.

    Oh, and I do know (well, I'm learning right now) Win32 API.
    1978 Silver Anniversary Corvette

  12. #12
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    A typical Windows program (win32 api) is not really designed for game programming. It is designed to give control back to the OS so multi-tasking is faster. I like Allegro because you can make it use DirectX and/or OpenGL. OpenGL is nice, but doesn't work well on some hardware, and has no support for sound, networking, etc. DirectX is a bit clunky in my opinion, but a good option for Windows only as it supports most gaming elements (graphics, sound, networking). It isn't cross platform like OpenGL though.

    Allegro wraps the best libs on each platform, gives you their speed, and makes it completely cross platform. That's enough for me, but to each their own.

    Whatever you choose, it is important not to "look back" as the others have said. Concentrate on that one lib, know it inside and out. You will be a much stronger game programmer much sooner. In the end, it is you that makes the lib good or not.

    -Justin
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

  13. #13
    Registered User
    Join Date
    Sep 2001
    Posts
    412
    OpenGL and Allegro are nice choices for cross platform -- but it can be hard to make a truly cross-platform game that works well on all platforms.

    Being as I only write games for Win32 anyway (I like to use MMX/3DNow when applicable to handle certain math operations faster) and I like to keep myself familiar with WinAPI style programming, I like DirectX. It's also wonderful for keyboard/joystick handling; I plan to move my sound routines into DirectSound soon, I haven't done so yet.

    I haven't looked at the DirectX 8 SDK yet (I'm currently in a different state from my copy of Win98 so I've got Win95 installed, and DX8 won't work on Win95) but using the DX7 SDK, it's easy to learn how to use DirectX. They have step-by-step tutorials which can get you up to speed relatively quickly.

    The sample programs are kind of poor style (more globals than needed, etc), and sometimes they show you a kind of poor way to do certain things (like using standard GDI calls instead of DirectX calls) but overall they're helpful.

  14. #14
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Allegro it is. Now I just have to dl djgpp to compile the lib.
    1978 Silver Anniversary Corvette

  15. #15
    Registered User
    Join Date
    Oct 2001
    Posts
    375
    Yeah, installation is the rough part. You can delete djgpp if you like after it is done.
    Allegro precompiled Installer for Dev-C++, MSVC, and Borland: http://galileo.spaceports.com/~springs/

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please comment on my c++ game
    By MegaManZZ in forum Game Programming
    Replies: 10
    Last Post: 01-22-2008, 11:03 AM
  2. C Programming 2d Array Question
    By jeev2005 in forum C Programming
    Replies: 3
    Last Post: 04-26-2006, 04:18 PM
  3. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 05:19 AM
  4. Game Programmer's AIM Circle: Join Today
    By KingZoolerius66 in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 12-20-2003, 12:12 PM
  5. My Maze Game --- A Few Questions
    By TechWins in forum Game Programming
    Replies: 18
    Last Post: 04-25-2002, 12:00 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21