SRL Archive - C/C++ Help and Tutorials

Game Development


Neehosoft

2009-09-26 09:20:31

I decided to make the game in C++ as it has almost no limits.
So, i learned c++ the basics (vars, loops, constants, ext).
Now, what 2D graphics lib should i use? And could someone point me in direction of some tutorials?
Now. what networking libary should i use? And if i host on my comp, am i going to lagg like crazy?

TRiLeZ

2009-09-26 09:35:07

Search c++ game engine on google to find a 2d graphics library… I did it for you.
Use Wiki

For a networking library, just google c++ networking library. You lag depending on the speed of your computer and the speed of your internet.

fronty

2009-09-26 15:54:50

SDL is a good cross-platform library that can do 2d graphics, networking, audio etc.

If you want to use 3d graphics, you have two choices, OpenGL and DirectX. OpenGL is cross-platform and DirectX is Windows-only. If you want to write 3D games for Windows, you should use it's native interface, WinAPI for drawing windows and things like that.

Other "good" choices for game development include C# and Microsofts game development framework XNA. With it you get (at least almost) full .NET framework and some extra stuff designed just for game development. With XNA you can make games for Windows, XBox and Zune.

Neehosoft

2009-09-26 21:03:45

From: TRiLeZ
Search c++ game engine on google to find a 2d graphics library… I did it for you.
Use Wiki

For a networking library, just google c++ networking library. You lag depending on the speed of your computer and the speed of your internet.


I did not want an engine

Dan Cardin

2009-09-27 01:37:08

SDL is supposedly good. I quite liked Allegro when i was using it…very simple for the smaller projects.

caused

2009-09-27 01:46:02

From: Dan Cardin
SDL is supposedly good. I quite liked Allegro when i was using it…very simple for the smaller projects.


Haha, I tried those for my tetris project at school.

They're both very good =), you can't go wrong with them, fast drawing, good performance, stable, easy to use ;D. Probably everything you need for your 2d or "simple" 3d games ;D.

~caused

Neehosoft

2009-09-27 02:01:08

The project im working on is very large, which is why i cant use flash which was my main choice.
I will mess around with SDL and Allegro, i did use allegro once and i liked it alot. Ive heard good things about SDL.
Once im done i'll probably assemble a team and use open gl for a 3D version

boberman

2009-09-27 03:35:16

If the goal is to eventually use opengl anyways, I would suggest using Opengl from the beginning (With the SDL for window creation stuff).

Swapping graphics engines after the game is developed is a nightmare to deal with.

Neehosoft

2009-09-27 03:46:14

From: boberman
If the goal is to eventually use opengl anyways, I would suggest using Opengl from the beginning (With the SDL for window creation stuff).

Swapping graphics engines after the game is developed is a nightmare to deal with.


It'd be a complete rewrite

fronty

2009-09-27 12:11:31

I agree with boberman. If you're going to extend it to 3d with opengl, you should use it to draw your 2d graphics too. Rewriting very large programs is very big job, it takes very long time, and if you just kept extending original version, you could continue optimizing game logic very much earlier. If you rewrite the project, you'll have to throw away couple hundred thousands lines of game logic and few hundreds thousands lines of graphics code.

rogue poser

2009-09-29 17:26:08

www.ogre3d.org

object oriented graphics rendering engine, takes away the pains of writing all opengl or directx, and has the ability to render anything in both formats. cross OS compatible, very diverse, can download the source and modify it if you feel necessary. Easy to move models from blender/3dsmax to be rendered.

Frement

2009-09-30 22:05:29

I would recommend SFML.