Sign in to follow this  
tengfeigoon

the step to making game

Recommended Posts

tengfeigoon    122
I wanted to make my first 2D game.but I only know about c++.How could I make 2D game like Super Mario Brothers.Should I study Direct X or OPENGL or clanlib?It confusing me.Who could tell me the step to making my first 2D game.Are there any tutorials about it? whether should I learn from source code?if so where could I find it?later.I wanted to make my 3D game?the step?

Share this post


Link to post
Share on other sites
Knaperstekt    122
I have used OpenGL quite a bit and it is a pure 3D graphics lib. But a nice thing is that you can just ignore the third dimension to make a 2D application, and thats easier than it sounds. So the step between 2D and 3D is not that hard to take.
(I don't know about DirectX or clanlib (whatever that is...))

Share this post


Link to post
Share on other sites
jack_1313    536
You can start right here or here. You'll need to learn some form of graphics API in order to present the game world to the user - three popular ones are Direct3D (used for both 3d and 2d), OpenGL (3d and 2d) and SDL (2d only). Everything you need is right here on the internet - tutorials, examples, SDKs, and most questions you have can be answered via Google or Gamedev.net.

Jackson Allan

Share this post


Link to post
Share on other sites
daviangel    604
if you are finding directx and opengl too confusing I'd suggest allegro and "game programming all in one" 2nd edition which pretty much walks you stepbystep to making a 2d sidescroller type games like mariobros.

Share this post


Link to post
Share on other sites
BiGF00T    435
if you feel ready for the graphics world then try both, ogl and dx. after trying i decided i like ogl more but thats just my opinion. i friend of me likes dx more. but it doesnt really matter. just roll a dice, google for tutorials and start a small project. i found it very useful to have (working) code in tutorials... you can then take this code and look at it and change things and see how it affects the program. just dont copy and paste things you dont understand. try to find out and then use your knowledge to reinvent the wheel (i know some ppl think it isnt necessary to reinvent everything but it helps understanding how it works. i invented all kinds of wheels since i started programming. none was circular but some came near.) there are many articles here on gamedev (the links jack_1313 posted) for beginners and advanced game programmers. google search on newsgroups turned out to be helpful for me as well.

hope this helps...

BiGF00T

PS: dont overestimate the choice of programming language or direcx vs. opengl thing. everything you learn can be applied to other languages or gfx libs. if you decide to switch to the other then just do it. its easy after you learned one of them.
i liked the NEHE tutorials here on this site... they have working source code (this has to be pointed out because many source files from other tuts never worked for me and being a n00b i couldnt find out why.) and i think they give you some nice examples of what you can do with opengl. if you decide to use directx then just google for a beginner tutorial.

Share this post


Link to post
Share on other sites
Daaark    3553
Quote:
Original post by tengfeigoon
I wanted to make my first 2D game.but I only know about c++.How could I make 2D game like Super Mario Brothers.Should I study Direct X or OPENGL or clanlib?It confusing me.Who could tell me the step to making my first 2D game.Are there any tutorials about it? whether should I learn from source code?if so where could I find it?later.I wanted to make my 3D game?the step?


CLICKY

Share this post


Link to post
Share on other sites
romainechester    122
hello! I'm new here at gamedev. I just want to know how to incorporate 3d graphics from--lets say--3ds max. I only need to know how its done. I wont have any problems in coding. I just need to know, again, how its done.

Share this post


Link to post
Share on other sites
demonkoryu    980
Thats great!
Just export them (for example, in .x format), import them into your game (using D3DX), and you are fine!
Really, you can't expect a helpful answer without providing more information.

Thermo

Share this post


Link to post
Share on other sites
FireNet    187
Start with 2D first, 3D is really confusing if you dont know anything about 2D.

Read this Thoughts on a Project for a begginner



Instead of trying jump into windows programming, it might be better if your started with dos, which is much simpler.Mode13h is a good mode to start with.Just look to the internet(google) and you should find loads of tuts which show you the simplest stuff in graphics (both 2D and 3D) like setting a pixel, drawing lines, polygon filling etc which are ther very basics of graphics programming.

Move on to OpenGL and DirectX after you have done a game in Mode13h.You will learn a lot of real graphics basics.Also I preffer OpenGL to DirectX.

Share this post


Link to post
Share on other sites
demonkoryu    980
Sorry, but I wouldn't recommend DOS programming today. He would be learning a lot of outdated/misleading stuff (I just remember someone posting "use small memory model in win32" or the like... thats braindead)
I have a better idea:
Use SDL. Look (on the web) for SDL DrawPixel/ReadPixel (maybe put/getpixel).
Then you have the exact possibilites for your creativity as with mode 0x13, but of course on Windows, with all sorts of graphics modes supported. It really can't become easier than with SDL.
Thats the way I am gonna write a Raycaster now (inspired by the raycaster thread).

Thermo

Share this post


Link to post
Share on other sites
Carnage_frank    122
First thing I suggest learning is BitBlt'ing. Its the method of displaying images and ultimatley animating them. DirectX and OpenGl uses BitBlt'ing to copy data from one buffer to the actual video memory that will be displayed on the screen.

I would start out by using C++ win32 API and creating simple games like TicTacToe, or Breakout. Once you have that down pretty good start doing some simple DirectX and OpenGL tutorials.

Good Luck

Share this post


Link to post
Share on other sites
FireNet    187
Quote:
Original post by Konfusius
Sorry, but I wouldn't recommend DOS programming today. He would be learning a lot of outdated/misleading stuff (I just remember someone posting "use small memory model in win32" or the like... thats braindead)



You have a point there it's true, but since tengfeigoon says he knew only C++, Mode13h is a very nice entry level thing for graphics programming.Windows programming will be a bit complex with it's diffrence from the usual DOS way of thought.My policy is when you are trying to learn something keep the new stuff as minimal as possible.

Once he gets the hang of what goes into a game, then he should be ready to take on the next level and enter Windows programming.

Once the basics of win32 programming are in, OpenGL and DirectX are free game... to hunt ;)

Quote:

I have a better idea:
Use SDL. Look (on the web) for SDL DrawPixel/ReadPixel (maybe put/getpixel).
Then you have the exact possibilites for your creativity as with mode 0x13, but of course on Windows, with all sorts of graphics modes supported. It really can't become easier than with SDL.
Thats the way I am gonna write a Raycaster now (inspired by the raycaster thread).


Yea that's a good idea too, hope you have VC++.

Hey,tengfeigoon, let us know what you have on your hands like compilers and maybe the non-graphical projects you have attempted.

Think you should know,I knew a bit of the windows API before I got into game programming, but everything what I did when I started game programming was in Mode13h.The second in Win API and the 3rd in OpenGL ;).
You can find my games >>>>>here<<<<<


Good of you to point it out Konfusius.(rates '/|\')

[Edited by - FireNet on September 30, 2004 1:51:50 PM]

Share this post


Link to post
Share on other sites
daviangel    604
A third and nonportable way to go is to use win32 and GDI which is alot less complex compared to opengl and directx like done in "beginning game programming" by mike morrison

Share this post


Link to post
Share on other sites
tengfeigoon    122
I am glad to get some answers from you .
I know nothing about Mode13h and know a bit API .opengl and direct.
Are there some better tutorials about making simple game like Super Mario Brothers.perhaps use API but not Mode13h.
Please give me some sites
I use vc++.

Share this post


Link to post
Share on other sites
darookie    1441
Quote:
Original post by tengfeigoon
Are there some better tutorials about making simple game like Super Mario Brothers.perhaps use API but not Mode13h.

The problem is, that there are just too many ways to actually put a game together. Most tutorials will therefore only focus on the different aspects of it. Such as how maps can be built and displayed. How sound effects work and so on. For a complex game like SMB you won't find any complete tutorial that just tells you all the steps to take.

Just don't think that SMB is a simple game just because it's rather old and there are many clones. If it really was such a simple thing to do, anyone could do it [wink].

Seriously, even Pong is hard enough for a beginner so I'd suggest starting with that. Pong will teach you all the basics you need for a platformer/ jump 'n run like Super Mario Brothers™:


  • Simple graphics

  • Handling user input

  • Basic gameplay (this includes scoring points)

  • Rudimentary physics (e.g. collision response)

  • ...



A nice Pong with all the goodies (sound effects and music, game menu, hi-scores, multi-player, different user-adjustable graphic sets, multiple AI levels, ...) can be more challenging and rewarding than you might think, while being simple enough to not get you frustrated too soon.

You will get much out of such very simple game that gets you ready for your SMB-like game without needing a complete tutorial (which you might not even find).

Best of luck and happy game coding!
Pat.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this