• Advertisement
Sign in to follow this  

Developing a Game?

This topic is 4401 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i just got Beginning c++ game programming and i was wondering how much i would need to learn to be able to create a simple 2D game with c++ after getting through this book. is there another book i could get after this that wuold show me how to incert a bitmap, sprite, tiles ect using c++. Because i looked at this book and it was all text based games but i was unsure if it went over incerting bitmaps using c++. Im still defenitly going to finish this book i just want to know were to go next after i finish it. Thanx

Share this post


Link to post
Share on other sites
Advertisement
well you will have to take up a development package such as SDL which i am on now... allegro... opengl... or windows programming... i tried windows programming after reading that book and its kind of a motivation killer lol... ide skip it and goto sdl just make sure you know your pointers well.

Share this post


Link to post
Share on other sites



Is directX the same thing as SDL, allegro, and opengl. If so what are the differents is one better then the other or easier to use?

Share this post


Link to post
Share on other sites
DirectX and OpenGl are generally for 3d, SDL and Allegro are for 2d graphics. I know with SDL you can add sound and other things to you programs. I suggest you use SDL. In my opinion it is the easiest to learn and use.

Share this post


Link to post
Share on other sites
OpenGL only handles graphics, so it is a bit different than SDL, Allegro and DirectX which also handle things like Window creation, Sound, Input devices (Keyboard, Mouse), Timers and some networking. There are libraries such as OpenGLUT or freeGLUT which are utility toolkits to handle input, timers and window creation.

There are tutorials for SDL that can help you with getting started with SDL. Personally I haven't read any of them, but I assume they are good. The Forum FAQ has more links on SDL, Allegro, DirectX, Win32 and OpenGL.

Share this post


Link to post
Share on other sites
I assume your using windows, probably the best 3d engine for windows is directx , but there is a lot more to games than 3d and 2d you will have to worry about input , sound , networking etc.. OpenGL wouldn't provide as much as DirectX and neither would SDL but OpenGL has a huge advantage over DirectX its platform independent (i.e it can work on any O/S) and SDL is easier to use, so :

DirectX:
Advantages:
Provides 3d, 2d, input, Sound, Networking
Disadvantages:
Not platform Independent

OpenGL:
Advantages:
Provides 3d, input, Platform independent
Disadvantages:
Lacks a lot of other functionality

SDL:
Advantages:
Provides 2d, input, really Easy to use
Disadvantages:
Lacks a lot of other functionality

this is a very , very simple analysis , if I had time I would make a full objective analysis between them sorry , so the more efficient choice would be DirectX , the less efficient but more expandable choice would be OpenGL, the more newbie choice would be SDL , of course there is a lot of other factors for example , the language your going to use , the type of game your making not just the geometrician type , if you plan on going Pro with game development you better learn them all , even better make your own; hope this narrowed the choices down for you.

Share this post


Link to post
Share on other sites
I started with "Beginning Game Programming" which does 2D pretty well and it even Slightly touches 3D while using DirectX. There's good news and bad news about this book though...

BAD = It's out of date, so you'll probably have some trouble compiling the code. However, the changes are pretty minor,... after all it was my 1st game dev book and I figured them out.

GOOD = After using this book and making a few of my little games, I really feel that my 2D game dev ability is only limited by my imagination.

Now, I'm half way through "Programming Role Playing Games with DirectX (2nd Ed.).

Good Luck.

Share this post


Link to post
Share on other sites
well after messing with DirectX for a while now(not too long) I would recommend that if your just beginning C++ stay away from DirectX for a while. and I would probably learn some windows programming as well before doing DirectX.
if you really wanna make a game ASAP. Id do it in OpenGL wuth GLUT.:)

Share this post


Link to post
Share on other sites


Thanx for all the help i think im gunna go directX or openGL after i understand C++ more. Also if you have any recommendations for books about DirectX or openGL or any more information on the subject im open to sugestions.

Thanx

p.s. my final goal after learning all i need to know is to make a rpg or mmo but im a long way from that goal its seems lol
--

Share this post


Link to post
Share on other sites
Quote:
Original post by Code Fusion
SDL:
Advantages:
Provides 2d, input, really Easy to use
Disadvantages:
Lacks a lot of other functionality


what functionality does it lack? if you allow openGL to count as 3D for it (and i will), and you count the common expansion libraries (SDL: TTF, NET, IMAGE ) then it does about as much or more than many libraries do. and its nice and easy too

Share this post


Link to post
Share on other sites
Quote:
Original post by Code Fusion
OpenGL:
Advantages:
Provides 3d, input, Platform independent
Disadvantages:
Lacks a lot of other functionality


Maybe I've overlooked OpenGL, but when did it start providing input handling?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
when glut was released

Share this post


Link to post
Share on other sites
Quote:
Original post by Anonymous Poster
when glut was released


but GLUT is not OpenGL, otherwise SDL would be OpenGL as well. It just builds upon OpenGL for graphics.

I agree with rip-off's point about SDL not really lacking functionality and it has the advantage of being cross-platform.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement