• Advertisement

Archived

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

New to programming, can't find any tuts to start my own game.

This topic is 5097 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, im quite new to programming, i have enough knowladge on borland C++ to make a text based HumanVSHuman Tick-Tack-Toe or a very simple text RPG. I Would like to learn more, but i can''t find any tutorials or anything. Most of them are for more experienced programmers. The first normal game i would like to make would be tetris (or anything VERY simple(2D)) and im ready to learn ANYTHING i need to make it. Could you people give me some links to tutorials, any help would be great. I know that with the knowladge i have i can''t just read a little and make a game. Like ive said im ready to learn anything i need before making a game. Just that i can''t find any tutorials on how to do 2D, or something that i need before i can even start thinking about making 2D games/stuff. Theres just no things like "Everything you need to make a 2D game for complete beginners". Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Learn an API like SDL or Allegro which will provide you will all the tools you need to do 2D graphics, I''m not sure if these provide Borland libs but I''m sure there''s a program floating around on the net to convert MSVC++ .libs to Borland, can''t remember the name or link though

Share this post


Link to post
Share on other sites
Read the sticky thread in the Beginners forum: " Tetris clone in an hour with C++". That one might get you started...

- Gom Jabbar

Share this post


Link to post
Share on other sites
Yeah, sorry. Ive posted and only then started looking around. Ive red some of the tetris clone tut (still reading/writting) but theres stuff i don''t understand. Ok, i understand (for example):
"const int TILERED=3;" or

"void GameDone(); " or

" struct Piece {
int size[4][4];
int x;
int y;};"

But some stuff just get me confused a lot.. like:
"hbmOldBitMap=(HBITMAP)SelectObject(hdcMemory,hbmNewBitMap);"

I mean, I would like to not only know what this line does but what every piece of text mean. I want to know what im writting so i could use it when making something diffrent, not just memorize the line.. Any tutorials to help me understand all the harder parts?



Share this post


Link to post
Share on other sites
Go through it visiting MSDN and look up all the functions you don''t. This is a great resource to have, and also goes over some Microsoft libraries, as well as DirectX and OpenGL. If you have Visual Studio and have installed MSDN, simply highlight the code, and in the dynamic help bar, the MSDN entry will come up.

Scott Simontis
e-mail:ageofscott@NOSPAM.comcast.net
AIM:ssimontis

Share this post


Link to post
Share on other sites
quote:
Original post by ZadrraS
Yeah, sorry. Ive posted and only then started looking around. Ive red some of the tetris clone tut (still reading/writting) but theres stuff i don''t understand. Ok, i understand (for example):
"const int TILERED=3;" or

"void GameDone(); " or

" struct Piece {
int size[4][4];
int x;
int y;};"



You have to learn C++ before trying to make a bigger game, like a 2d pong/tetris clone

Share this post


Link to post
Share on other sites
quote:
Original post by Hedos
quote:
Original post by ZadrraS
Yeah, sorry. Ive posted and only then started looking around. Ive red some of the tetris clone tut (still reading/writting) but theres stuff i don''t understand. Ok, i understand (for example):
"const int TILERED=3;" or

"void GameDone(); " or

" struct Piece {
int size[4][4];
int x;
int y;};"



You have to learn C++ before trying to make a bigger game, like a 2d pong/tetris clone



Thats exactly what i want, to learn C++ so i can acomplish my goal (make a 2D game). But like ive said, theres no tutorials on "what you need to know to be able to make a game". Anyway, isn''t Visual C++ similar to Visual Basic or C++ Builder? I use Borland C++, but if Visual C++ is better then i will get it.

Share this post


Link to post
Share on other sites
It''s quite similar - shouldnt give you any problems to switch between the two.

Try www.gametutorials.com - they have some very good c / c++ tutorials too.

The Monkey is back !

Share this post


Link to post
Share on other sites
Get a few books! I found The C++ Language, Special Edition online as an e-book. If you search hard enough, you can find any book you need. However, I reccomend Bruce Eckel''s Thinking in C++ books, which can be found here. Or, get a book in print. I used C++ from the Ground Up, 2nd Edition, but 3rd edition is out. Just find a tutorial or book, and read through the first few pages. This will let you see if you like the writer''s style and let you see if you are at an appropriate level for the book. If C++ seems too confusing, choose an easier language like Visual BASIC and find a tutorial.

Scott Simontis
e-mail:ageofscott@NOSPAM.comcast.net
AIM:ssimontis

Share this post


Link to post
Share on other sites
Hmmm, just installed Microsoft Visual Studio 6.0 (it has Microsoft Visual C++ v6.0). The Letters are really small, its impossible to tell a diffrence between a ")" and a "}". It doesn''t understand "cinn" or ">>"... I think ill have to get used to it. And i can''t buy any books, i live in Lithuania and theres only few C++ books, i can''t order online couse rarely they ship to Lithuania and i don''t have a credit card..

Share this post


Link to post
Share on other sites
So, which is better, Visual C++ or Borland C++ and why? Which are the people on this site using? I liked Borland C++ more, its so much nicer...

Share this post


Link to post
Share on other sites
dude, if you want to start out with something simple, then i would strongly reccommend SDL. SDL is so simple, you dont have to bother with the complications of the win32 hassle of setting up windows and taking input and stuff. in SDL, taking input and setting up a window is only a few lines of code. i bet if you have even a decent knowledge of c++, you could make your own pong clone. you just have to understand this:

an API is just a set of functions you can use to draw images to the screen (someone correct me if im wrong). once you have the API installed on your comp, you just need to know the functions to draw to the screen. in SDL this is just a single line of code called SDL_BlitSurface, its great. just go to cone3d.gamedev.net and check out the SDL tutorials. after you finish the second tutorial you should be able to make a pong clone pretty easily. just use some logic - put 2 paddles on the screen, then put a ball on the screen, then get the ball bouncing off the paddles/wall. its not hard at all, really, and you dont need any tutorials except the basic one to teach you how to draw to the screen.

Share this post


Link to post
Share on other sites
quote:
Original post by ZadrraS
So, which is better, Visual C++ or Borland C++ and why? Which are the people on this site using? I liked Borland C++ more, its so much nicer...


It is all opinion. Some people are anti-Microsoft fanatics and will not use Visual C++ just because it has Microsoft in the name, even though it is a great compiler. I would say get a trial of both of them, and see which one you like more. Also, the one that will be easiest for you to get support for will probably be the best choice. About your Visual C++ 6.0 question above, you can change the text size in the options, or you can increase your monitor DPI like this.
1. Go to your desktop and right-click anywhere there is not an icon. Select properties.
OR:
Go to Start->Control Panel->Display.
2. Go to the Appearance tab. Here you can modify font size.
3. Go to the Settings Tab, and click on the Advanced button. This screen will depend on your video card, but under the general tab, it should say DPI Setting. Put it to 120 DPI or the highest you can go.
And as for me, I use Microsoft Visual C++ .NET, Dev-C++, and g++, depending on which computer I am using in my house.

Scott Simontis
e-mail:ageofscott@NOSPAM.comcast.net
AIM:ssimontis

Share this post


Link to post
Share on other sites
Its usually a good idea to use two (or possibly more) different compilers like VC++ and Dev-C++ for example as this will stop your code from becomimng dependant on one particular compiler''s interpretation of the C++ standard. This will become more important if you plan to port your games/app to different platforns.

Share this post


Link to post
Share on other sites
I have full versions of both of them (Visual C++ v6.0 and Borland C++ v5.02) So i can use any one i like more, will, BC++ compile a tetris written in VC++ (the one in this forum) without errors? I want to use the one that everyone use, so i could follow any C++ tutorial not just "VC++ tutorial" or "BC++ tutorial"

Share this post


Link to post
Share on other sites
quote:
Original post by ZadrraS
So i can use any one i like more, will, BC++ compile a tetris written in VC++ (the one in this forum) without errors?


Assuming you didn''t use anything weird or unsupported by either compiler (read the docs! read the docs! read the docs!) - you ought to be able to, yes. That''s the whole point of using standardized high level languages.


“Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.”
— Brian W. Kernighan (C programming language co-inventor)

Share this post


Link to post
Share on other sites

  • Advertisement