How to write a computer game
From ArticleWorld
Writing a computer game is probably one of the most rewarding challenges for a programmer. However, it is surely not a simple job. It requires not just programming skills, but also game design skills, which are not easily obtained.
This guide will outline the steps to take when you write your first computer game.
[edit]
Steps
- Decide upon the game. Do not write any piece of code yet. Sit down and think. What kind of a game is? What will it do? It may be useful to take a familiar concept (Tetris, Pacman, Space Invaders) and add your own twists to give an original touch.
- Select the programming language and the libraries you will use. Choose the programming language you are most familiar with. You may need to use some graphics routines though, if you do not already know them. Libraries like SDL or Allegro may be especially useful to C programmers.
- Design the graphics. You can do this while you are writing code, but it is better not to mix up things.
- Make a clear picture of the object interaction in your game. Before coding anything, make sure you understand how the various components of your game bind together and influence each other.
- Start coding your game. Use a top-down approach, and prototype things quickly: you are on new ground, so try to build a base upon which you can test anything new that you implement.
[edit]
Notes
It is sometimes difficult to stay motivated. Therefore, for the extra challenge, try to write some additional things, like a level editor or a trainer.