Solved

What is the best way to start Game Programming?

Posted on 2002-04-29
4
397 Views
Last Modified: 2013-12-04
I would like to know the best way to start game programming using Visual C++ and DirectX 8 SDK.
I am currently working on my own version of TETRIS but I'm having trouble with sorting out my ides.
0
Comment
Question by:Samir__max
  • 2
4 Comments
 
LVL 5

Expert Comment

by:Jan Louwerens
ID: 6981714
Do you have questions about the programming or the design?
For pragramming, a good way to start is to go through the DirectX8 documentation, and reading through all the examples, and meybe even implement them yourself, to get a good understanding of how it works. That might be a good place to start.

More game programming information can be found at:
http://www.gamedev.net/
http://www.gamasutra.com/

0
 
LVL 19

Accepted Solution

by:
DreamMaster earned 50 total points
ID: 6986298
If you say you are having trouble sorting out your ideas...it sounds to me like the programming itsself is not your first concern.

The best way to start ANY programming project, is to make sure for yourself that you understand every functionality you want to build in.

A good way to start is as global as possible and work things out from there.

For example, for the game of Tetris you want to build, you would start by defining what different game states there will be and what should happen in those states.

For example the game will have:

- IDLE State. (Game has not been started yet)
- Starting State (Game is starting, loading of intro screens, setting variables that are needed further on and that sort of thing)
- Menu state (actually also a sort of IDLE state. The game has loaded and you now have a menu where you can choose to start or set options or things like that)
- Options state (Options were chosen, so display a screen where you can set options, if there are any)
- Game Running state (The actual game is running, here is where the most things happen. Scoreboard updates, amount of lifes left etc...)
- Game end state (The game has ended, here you could update a leaderboard, unload different screens etc..)

These steps (and there are more) give you a framework from which to start...and as soon as you have these steps, go on. Most of the time I start with a purely functional game. Screw the graphics and beautifull pictures...eventhough they are very attractive, they cloud you from what you need...a working game. So graphics I usually implement later.

Games usually take a lot of time to create, so be patient...keep trying, mistakes are bound to be made, but the result...your own created game is well worth it...

If you need any more help, just ask.. :)

Max.
0
 

Author Comment

by:Samir__max
ID: 6989388
Thanx DreamMaster for the advice it helps a lot but i could still use more help with source code for similar games like tetris,
so if anyone has any sites to offer where i can find free code it would be great.

Samir__Max
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 6989651
There are some Tetris source codes here..

http://www.ziron.com/links/srccode.htm

and another one here:

http://hem.netlink.se/~sbe10329/

Good luck,
Max.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Windows 7 or 8 for new gaming PC? 12 187
Computer now crashes when running WOW 42 328
Is draftkings.com only for people in gambling states? 1 69
java continue statement 10 138
Article by: ErwindeVries
Released on the 7th of September this real time strategy game sets a new bar for any real time strategy game. R.U.S.E. is a game made by Eugen Systems and published by Ubisoft and released for the PC, Playstation 3 and the Xbox 360. The setting o…
Programming  of  forecasting lottery numbers for self use  on Turbo C++ is done by use of random number generator code by a program algorithm logic. Random numbers usually generates numbers between definite interval. Therefore, when entering the c…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question