Questions about Game Programming

View previous topic View next topic Go down

Questions about Game Programming

Post  Gaz on Sat Apr 18, 2009 12:59 pm

I want to learn game programming and I have a question about how do I start "drawing" stuff on my screen.

My only experience in game programming is from Visual Studio C# using the XNA Gamestudio, but I'm trying to figure how do I get a "draw" method while I study C++.

I'm currently downloading the DirectX 11 for Development but I don't know if it is exactly what I want.

So I question:
1. Isn't there a way for me to make my own draw method, and if there is how hard is it?

2. If there isn't, or if it's just too complicated, then is every game out there then made with DirectX, OpenGL or other graphics library?

3. How does these graphics libraries "fit" in my code? In XNA you get a method called Draw where you can insert whatever you want to be draw on screen, is it the same on C++?

4. Do I need to download the DirectX SDK if I want to use it's library? 1gb seems a bit too much for a graphics library, I downloaded SDL and it was like 300kb...

Gaz
Junior
Junior

Posts: 8
Reputation: 0
Join date: 2009-04-18

View user profile

Back to top Go down

Re: Questions about Game Programming

Post  Xarver on Sat Apr 18, 2009 1:08 pm

I can only answer one question:

2. Most games for Windows use DirectX/Direct3D, but all for Linux and some for Windows are made in OpenGL. For 2d games, it's DirectX, but also I highly recommend SDL, a really awesome 2d library.

I also can tell you one thing:
Game making is hard stuff.

As far as I know,
Game making is a really hard subject on programming
and requires a lot of logic and skill.


~ Xarver

Xarver
Admin
Admin

Posts: 32
Reputation: -1
Join date: 2009-04-17
Location: Somewhere

View user profile http://codegreen.gooforums.com

Back to top Go down

Re: Questions about Game Programming

Post  Gaz on Sat Apr 18, 2009 1:51 pm

Ok, I know game making is hard, but I really want to try! Well, at least one of my questions were answered. Very Happy

Now, I just need to find someone that knows the rest.

Gaz
Junior
Junior

Posts: 8
Reputation: 0
Join date: 2009-04-18

View user profile

Back to top Go down

Re: Questions about Game Programming

Post  xmariux on Sat Apr 18, 2009 3:11 pm

about:

1)
to make your own draw method(made from scratch) u need low level programming to make your own library.
But you don't need to do this when you can find libraries for this. Directx/openGL is the solution.

2)Xarver gave the answer

3)on c++ you have to do everything with c++ way, you need to "include" some header files ,using functions classes from these files and then compiling and linking with these libs(compiler does or your IDE). The thing is to learn what you want to make and how(what stuff of the libraries to use).

4)Ofcourse to use DirectX stuff you need the SDK and a lot of reading to find a starting point. Have in mind that the SDK does not contain only stuff for graphics but many things to help you make a complete game(stuff to control keayboard,mouse,music and more) instead of OpenGL.

If you don't want to use OpenGL or DirectX and making something very simple like a draw on a window with mouse and creating lines and more you can use c functions from the windows API. Just find info about the windows API.

xmariux
Junior
Junior

Posts: 6
Reputation: 0
Join date: 2009-04-18
Age: 27
Location: Thessaloniki/Greece

View user profile

Back to top Go down

Re: Questions about Game Programming

Post  TheFellow on Sat Apr 18, 2009 5:12 pm

lol, nice, I came to the rescue to late, lol. well thank ya all for helping helping, lol. I was too late, but that is ok.

TheFellow
Forum Regular
Forum Regular

Posts: 26
Reputation: 0
Join date: 2009-04-18
Location: CyberSpace

View user profile http://revware.comuf.com

Back to top Go down

View previous topic View next topic Back to top


Permissions of this forum:
You cannot reply to topics in this forum