Sign in to follow this  

I Was reading HOw to make games

This topic is 4738 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

actually, for your first game, id reccomend pong, why? its about as basic as you can get, and it teaches you how to basic collision, input, and graphics.

But first, do you actually know any programming at all?

Share this post


Link to post
Share on other sites
Before you even start considering making games, I recommend that you should be up to at least lesson 17 on CProgramming.com, even if you don't use C/C++ to code with, as the general concepts are easily translatable to other languages and doing the "challenger" examples will teach you the good logical problem solving that you'll need to figure out what components will be written.

For the record, I have never written a Tetris game; I did do a Pong game but way after my first four or five games. I think my first "real" (i.e. not done in Atari/Commodore BASIC) one was a test of input to make a guy walk around on a static background; my second one (Herd) was a demo for linked lists.

Share this post


Link to post
Share on other sites
Yea then I'd suggest learning more C++ as Ravuya says, then do a Pong clone like liam666 said. I know I've been programming for quite some time now, and I have yet to make tetris (even though I am able to do more complex stuff - figures). Tetris in all honesty is a rather complex game. Most people won't admit that because it is regarded as a simple noob game, but if you really analyze the concepts it uses, it is more sophisicated than it appears. Anyways enough about tetris, I'd strongly advise you to wait on games, if you jump right into games, you might miss inportant C++ concepts. Just an idea. Good luck in whatever you choose!

Share this post


Link to post
Share on other sites
Actually, I would recommend that you start with a text adventure. (rather than tetris/pong - not rather than learning the actual language first [smile])

It's perfectly scalable to whatever scale you want (as in, you can be done whenever you feel like it). You don't have to worry about any math (collisions) or graphics at all. (well, ascii art can be added when/if you feel like it). It is also a great way to learn the differences between structured and object oriented programming. (You can do the same game both ways and really get a feel for the differences. Structured programming is also easier to grasp at first (might just be me though)).

Just my opinion though, your mileage may vary.

Share this post


Link to post
Share on other sites
I think tetris can be just as easy as pong, it just depends on how far you want to take the realism aspect. Tetris could be as simple as a grid with varying size squares falling into it, if the grid space a piece is trying to enter is occupied then it stops where it is. Nothing complex about that. Pong typically requires more knowledge of collision detection and reaction to implement correcty, though again, you could make pong using very simple physics indeed, just wouldnt look very good. So in short, make the kind of game that interests you the most, just dont try to make it too complex to start with.

Share this post


Link to post
Share on other sites
I never made tetris. I made a turn based strategy game before I will ever make tetris. In my oppinion, it's one of the hardest games possible to make.

I suggest starting out with pong, checkers, or reversi. checkers is insanely easy.

Share this post


Link to post
Share on other sites
When I started out, I made a simple fruit machine. There was a button to click, which generated 3 values, if certain combinations appeared, you got some money. Each time you clicked the button cost you a set amount. The game ended when you ran out of money or you quit. I think it was a pretty good insight into how random numbers are important in game development.

And I would also recommend not learning tetris for a while. The simplicity of the gameplay is not necessarily reflected in the code, especially if you have no tutorial to go by.

Good luck!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
http://www.icarusindie.com/DoItYourSelf/rtsr/blackjack/lessons1-10.php

Currently 4 lessons are up on implementing Blackjack using C++. The lessons will go through the entire process of making a game starting with a design document. The game is currently text based but by the end of it, it will use software rasterization to render the cards and whatnot. Probably use it as an excuse to cover Ogg and add music and sound effects as well.

After 16 years of coding this is actually the first time I've ever made blackjack. It was way too overdone for my taste when I started. I prefer originality. My first big game was a 4 way scrolling top down graphical maze game written in QuickBASIC. That was made when I was 14. I made a bunch of little demos before then practicing different things. I learned how to use tiles and scroll by watching Super Mario Bros.

The secret to making any game is just breaking it down into chunks. The tetris playing field is just a 2D array. You just then need to figure out how to define the blocks, define how to rotate them and define how to put them into the array and move them around. To move it around you need input. To display it you need graphics.

I don't recommend starting programming and graphics at the same time. They're two seperate and distinct sets of problems. Learn how to code first, then learn how to use graphics.

You're better off starting with typewriter games such as "Cave" and various card games. Figure out how to make a game before you bother learning how to make it graphical.

When you're ready to make Tetris you won't have to ask how to make Tetris. You'll be able to figure it out on your own.

Share this post


Link to post
Share on other sites
If you're just starting today, then you won't get into anything graphical for a while. For now you just have to have fun with console applications. The first thing you should make is a Hello World application.


#include <iostream.h>
using namespace std;

int main()
{
cout << "Hello World!";
cin.get();
return 0;
}



After you do that and you can see "Hello World!" popping up on the screen you can then move on and get into variables and structural programming. Once you have that knowledge, I'd suggest doing Tic Tac Toe. It's a good project to take on as it introduces most concepts of game programming inside a simple console application. If your looking for a book (which I recommend you do), Object Oriented Programming in C++ by Robert Lafore is excellent.

Share this post


Link to post
Share on other sites
Quote:
Original post by Rob Loach
If you're just starting today, then you won't get into anything graphical for a while. For now you just have to have fun with console applications. The first thing you should make is a Hello World application.


Arguably yes.
Quote:


#include <iostream>



Ahem.

Share this post


Link to post
Share on other sites
There's a tetris tutorial on The IonWare Site.

I think the OP created a spinoff thread because this has deviated slightly from being about tetris. Can we please bring it back on track in order to help the OP find some tutorials about making tetris or some of the other games you're recommending.

I think it's good advice, tetris may be slightly abitious for one who's never programmed - but some good tutorial links to tetris or other simple games would be useful in helping the OP decide which is best for him.

And let's all be thankful that it's not another MMORPG as a first project :)

Good luck dbztoolkit, I hope you find what you're looking for.

Share this post


Link to post
Share on other sites
Yeah I really like the QBasic version, if your looking for code do a google search on code like...

1.Making Pong with QBasic

2.Making Pong with C

3.Making Pong with C++

(etc.)

I don't have any code for you because I havn't worked too much with QBasic or C, but I suggest doing a google search on all your code needs.

Study the code, you'll get the hang of it.

Share this post


Link to post
Share on other sites

This topic is 4738 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.

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