Api

This is a discussion on Api within the Game Programming forums, part of the General Programming Boards category; I gave been programming in C for a few months and I want learn how to program games. I was ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    28

    Api

    I gave been programming in C for a few months and I want learn how to program games. I was wondering what is the best API is for 2d game programming. Is Win32 a good api to start with?

  2. #2
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    There is no real "best." WinAPI can do what you'll want, but it might be too unwieldy for you. The function calls and stuff all have ugly names with a ton of hungarian notation and...well... it's kinda yucky. Some people like it more than others.

    If you're looking for something simple, but that won't really "take" you anywhere towards a career, look into SDL (Simple Directmedia Layer) and/or Allegro. Just do a board search or search on Google. Those are two easy graphics APIs that work well for 2D stuff.
    Away.

  3. #3
    plzduntlakliekthiskthx
    Join Date
    Oct 2002
    Posts
    138

  4. #4
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    well how about OpenGL

  5. #5
    plzduntlakliekthiskthx
    Join Date
    Oct 2002
    Posts
    138
    Originally posted by vasanth
    well how about OpenGL
    Wouldn't that be too difficult for just a 2d game when something like allegro is available?

  6. #6
    Registered User
    Join Date
    Oct 2002
    Posts
    118
    I would recommend using DirectX 7 for 2D stuff. I have not used anything else, so im not an expert, but I programmed in C+ for only a few months, and then jumped into DirectX 7. It was a little hard at first, but I found if I stuck with it and continued reading even if I didn't understand everything it slowly made sense. The book I first read was Windows Gaming for Dummies, and then Tricks Of The Windows Game Programming Guru's. They are both similar, just the later explains the same stuff in greater depth.
    "The distinction between past, present and future is only an illussion, even if a stunning one."
    -Albert Einstein

  7. #7
    Registered User Ace Bowers's Avatar
    Join Date
    Jul 2003
    Posts
    23
    I couldn't get allegro to work so I got SDL (www.libsdl.org) and it seems simple enough, I also just downloaded ZEngine I heard that it's good. I haven't actually tried it myself, though. I do C++ so I don't know if SDL will work with C for sure but I think it does.
    "I have read about a hill in a book, so the hill must exist." -a Christian quote
    "I have not seen this hill, so it must not exist." -an Athiest quote
    "Well, I've heard of this hill, so lets bomb it." -a George Bush quote

  8. #8
    Registered User
    Join Date
    Jul 2003
    Posts
    28
    I'll think I might learn Win32 first and then DirectX7 and if it's to hard I try SDL. I was thinking of getting the book Programming Windows and then get Tricks of the windows game programming gurus. What kind of math is needed to program in 2d? and in 3d? .

  9. #9
    plzduntlakliekthiskthx
    Join Date
    Oct 2002
    Posts
    138
    Originally posted by Ace Bowers
    I couldn't get allegro to work so I got SDL (www.libsdl.org) and it seems simple enough, I also just downloaded ZEngine I heard that it's good. I haven't actually tried it myself, though.
    ZEngine is awsome! Blows SDL and Allegro away (ZEngine uses SDL and OpenGL)

  10. #10
    Registered User
    Join Date
    Oct 2002
    Posts
    118
    There is not much math involved in 2D graphics with DirectX 7. If you can do basic grade 11 math, you should be fine. Don't think it is too hard to learn, because if I can do it i'm sure anyone can. It usually takes me three or four reads of a chapter, and then some for it to sink in, so I think you'll be okay.
    "The distinction between past, present and future is only an illussion, even if a stunning one."
    -Albert Einstein

  11. #11
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    What book do you hav Tommaso?

  12. #12
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Originally posted by o0obruceleeo0o
    If you choose to learn allegro look at this thread Where do I find some exellent tutorials on beginning game programming with allegro?
    or save time and go here:

    Game Programming Links

  13. #13
    Registered User Ace Bowers's Avatar
    Join Date
    Jul 2003
    Posts
    23
    ZEngine is awsome! Blows SDL and Allegro away (ZEngine uses SDL and OpenGL)
    Speaking of which, I just got it downloaded (as you know) but there are no tutorials on their site, actually their tut's are down, do any of you know where I could find some good tut's and/or docs for ZEngine? Thanks.

    P.S. I think a lot of you guys are across the waters, or at least some, because someone told me that not many post in the middle of the night but I posted it in the middle of the day.
    "I have read about a hill in a book, so the hill must exist." -a Christian quote
    "I have not seen this hill, so it must not exist." -an Athiest quote
    "Well, I've heard of this hill, so lets bomb it." -a George Bush quote

  14. #14
    Registered User
    Join Date
    Oct 2002
    Posts
    118
    I have quite a few, but the very best books I have are:

    "Tricks Of The Windows Game Programming Guru's", by Andre Lamothe, "Windows Game Programming for Dummies" also by Andre LaMothe and a very good beginner book for learning C++, "C++ A Beginners Guide", by Herbert Schildt. Also I have quite a few books from Premier Press, "Game Development Series". Each of these books in the series is an excellent source for learning game development. Some are more useful than others. The very best from the series that I have are "Data Structures for Game Programmers", by Ron Penton, and "Isometric Game Programming with DirectX 7.0", by Ernest Pazera. These books are very expensive, but tought me a lot and are well worth the money. If the books can teach me, they can teach anyone - trust me.
    "The distinction between past, present and future is only an illussion, even if a stunning one."
    -Albert Einstein

  15. #15
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    I'll think I might learn Win32 first and then DirectX7
    Wow, that's exactly what I did BTW, I think you mean DirectDraw7, since DirectX includes sound, music, networking, videos, 3d, etc (?). Heh, just a technicality in the name

    Windows GDI (the Win32 graphics you were talking about) is pretty easy to use and include in your program, since everything in a Windows application is sort of built to include it, and it also comes in VERY handy when using DirectDraw7. It just might be confusing to learn it Possibly, you could try the other graphics libraries and come back to learn it later once you've got your game/graphics concepts down pat.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

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

Similar Threads

  1. platform specific API or C standard API
    By George2 in forum C Programming
    Replies: 1
    Last Post: 11-12-2007, 01:32 AM
  2. OpenSSL and Win32 SSL API :: SSL/TLS
    By kuphryn in forum Networking/Device Communication
    Replies: 0
    Last Post: 03-10-2004, 07:46 PM
  3. FILES in WinAPI
    By Garfield in forum Windows Programming
    Replies: 46
    Last Post: 10-02-2003, 07:51 PM
  4. OLE Clipboard :: Win32 API vs. MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 08-11-2002, 06:57 PM
  5. pthread api vs win32 thread api
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 11-20-2001, 08:55 AM

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