dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: I want to learn programming 2D games. What's the best E-Book?

  1. #1
    Join Date
    Sep 2016
    Posts
    0

    I want to learn programming 2D games. What's the best E-Book?

    Hello everyone!

    I've been programming with C++ for a bit more than a year now. I already have the basic concepts of it like creating functions and multi-file projects and why is that useful. Though I am a bit clunky in OOP. Today I thought to myself that it's finally time to move onto something a bit more advanced than command line projects and I want to make a 2D game (side scroller preffered). For the last few hours I've been doing research on what would be the best E-Book to learn that and there were so many different ones. I looked through all of them and each and every single one them explains stuff in different ways. Though I noticed that they all used Visual Studio so I have just installed it (been using Dev-C++ and might still use it). Since I have zero experience in 2D game making I'd like a book with detail explanations why should something be "like that" and not "like that". What would you recommend me to read? Any help is much appreciated!

  2. #2
    2kaud's Avatar
    2kaud is online now Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    6,676

    Re: I want to learn programming 2D games. What's the best E-Book?

    If you're programming for Windows, I'd recommend VS (2015 Community is free if you meet the criteria).

    For learning c++, I'd suggest
    http://www.learncpp.com/

    and for reference,
    http://www.cplusplus.com/reference/
    http://en.cppreference.com/w/cpp/language

    2-D games are based upon graphical programming - so the first thing to decide is what graphical framework you're going to use? There are several - GTK, QT, GDI+, FLTK etc etc etc - not forgetting Microsoft's Direct-X & MFC.

    As I'm not a game/graphical developer I can't advise which. It will also depend upon your target computer(s) and whether you want/need x-platform support. It will also probably depend upon which book(s) you go for!

    For books, try
    Programming: Principles & Practice using c++ https://www.amazon.co.uk/Programming...actice+c%2B%2B
    (get the 2nd edition). This teaches classes using the FLTK framework.

    For games, have a look at
    https://www.amazon.co.uk/Programming...%2B%2B+2d+game
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++17 Compiler: Microsoft VS2019 (16.1.0)

  3. #3
    Join Date
    Mar 2019
    Posts
    0

    Re: I want to learn programming 2D games. What's the best E-Book?

    Quote Originally Posted by zablas View Post
    Hello everyone!

    I've been programming with C++ for a bit more than a year now. I already have the basic concepts of it like creating functions and multi-file projects and why is that useful. Though I am a bit clunky in OOP. Today I thought to myself that it's finally time to move onto something a bit more advanced than command line projects and I want to make a 2D game (side scroller preffered). For the last few hours I've been doing research on what would be the best E-Book to learn that and there were so many different ones. I looked through all of them and each and every single one them explains stuff in different ways. Though I noticed that they all used Visual Studio so I have just installed it (been using Dev-C++ and might still use it). Since I have zero experience in 2D game making I'd like a book with detail explanations why should something be "like that" and not "like that". What would you recommend me to read? Any help is much appreciated!
    When you have mastered these industry standard game engines then you slowly need to concentrate on 5 major topics in game programming. They are as follows:

    Physics for games.
    Graphics, lighting, camera and shadows.
    Audio and design.
    AI for video games.
    Multiplayer game design, memory management, debugging, parallel programming and general game engine overview.
    Now lets list out the books according to the topics mentioned above.

    I. Physics for games

    Game Physics Engine Development: How to Build a Robust Commercial-Grade Physics Engine for your Game - Ian Millington
    Game Physics - David H. Eberly
    Physics for Game Programmers - Grant Palmer
    Real-Time Collision Detection - Christer Ericson

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)