Archived

This topic is now archived and is closed to further replies.

yuzuo1216

a jackaroo's problem about entering game programming

Recommended Posts

hello, I''m a programmer who want to entering into the field of game programming. Please excuse my poor English. I have some problems: 1) In windows, can we operate on hardware directly ? or we must use DirectX? 2) about programming language, I have some knowedge about C++,now Microsoft is advocating C#, is it suitable for game programming? what''s the best language for game programming? best regards. Yu Zuo

Share this post


Link to post
Share on other sites
to #2: there is no "best" language for game programming. Use whatever is most suitable for what you're trying to make. If it's a text game anything will work, if its a web application/small game you may want to use Java/C#, if its a project you and a team will be spending monthes and millions of dollars on you're probably going to want to use C++. I personally would recommend Java or C++ for pretty much anything you need to make.

[edited by - Ceoddyn on May 24, 2004 9:56:42 PM]

Share this post


Link to post
Share on other sites
1) Interacting with hardware directly is possible if you are willing to write your own device driver. Doing this requires, of course, having access to the hardware specifications, which is less than easy in many cases (listen to the laments of the Linux people).

Share this post


Link to post
Share on other sites
quote:
Original post by Fruny
1) Interacting with hardware directly is possible if you are willing to write your own device driver. Doing this requires, of course, having access to the hardware specifications, which is less than easy in many cases (listen to the laments of the Linux people).


...also it's often hardware-specific, so you'll be writing drivers for each piece of hardware you want to support (including different vendors).

[edited by - henrym on May 25, 2004 1:07:19 AM]

Share this post


Link to post
Share on other sites
It''s easier to not work with hardware directly, use the libraries that are avaliable! That doesn''t necessarily mean DirectX. That could mean OpenGL and OpenAL (which is what I use).

Regarding programming language, I''d ignore C# and concentrate on C++. The reason being, C++ is a very popular language, and when you''re just learning you''ll want to read tutorials. There are millions of tutorials written in C++, so it''s perfect.

Share this post


Link to post
Share on other sites
Thanks all.

Another question is about Engine. which I thought is used to render graphics into video card , isn''t it? If it is , can I the GDI+ library and DirectX as an engine. If it isn''t, what is it?
what functions should be included in a simple 2D engine, how about 3D engine?

Share this post


Link to post
Share on other sites
The engine is simply the code that does the basic work (ie. non game-logic) of your games. This includes input, graphics, sound, etc.

I dont know the GDI+ library, so I cant really comment on it, except to say that it sounds like it utilizes GDI, and GDI functions can often be slow - thats why we have DirectX.

DirectX has components for input, sound, graphics, networking, and a few other nifty things to boot, but it will restrict you to the Windows operating system (not always a bad thing, but keep it in mind).

Share this post


Link to post
Share on other sites
thank you,Kazgoroth
If we hope to write a game which can run on multiple platforms such as Mac, Windows and Linux, then we need to write a common engine. Isn''t it? Is there some common engines?

best regards.
Yu zuo

Share this post


Link to post
Share on other sites
There are cross-platform engines, that are built using cross-platform libraries.

One of those cross-platform libraries is SDL

Edit: I suck at teh HTML

[edited by - xMcBaiNx on May 25, 2004 9:36:26 PM]

Share this post


Link to post
Share on other sites