Arena of Doom:

Program Source Code



How are video games created? Creating video games, of course, involves lots of programming. 'Programming', if you didn't already know, is the process of how a person assembles the instructions and commands that tell a computer how to accomplish a specific task. Programming consists of 2 main components: variables and code. Variables are the entities within which information is stored. Code, on the other hand, consists of the instructions that act upon the variables. What did creating Arena of Doom involve? Arena of Doom involved a special type of programming called object-oriented programming ("OOP"). What sets apart object-oriented programming from average, everyday, standard programming? OOP is far superior to the regular programming approach. OOP, however, does not discard the use of "structured" programming (the 'standard' means of programming just mentioned), but rather takes over where structured programming leaves off.

In what way is OOP superior to "structured" programming? OOP is superior to normal "structured" programming not in the sense that OOP code can perform tasks that structured programming can't, but is superior rather because of how it organizes its code and variables. The manner in which OOP code and variables is organized, you see, has a very direct, noticable effect upon how easy programs are to update, modify, and maintain. How, then, does OOP work? Understanding how OOP works means understanding the 3 fundamental concepts that make OOP what it is. These concepts are referred to by the terms encapsulation, inheritance, and polymorphism. All 3 of these programming techniques are made use of, as one will find, in the downloadable Arena of Doom program source code.


C++ is an object-oriented programming language, and is the object-oriented programming language in which Arena of Doom is written. In fact, most video games are written using object-oriented programming, because the manner in which video games are required to be assembled happens to be highly compatible with the interface that object-oriented programming provides.

Arena of Doom was compiled using Microsoft Visual C++ 1.52. Later versions of Microsoft Visual C++, however, may not be capable of compiling the downloadable source code. C++ compilers made by other companies, in turn, may not be able to compile the source code either. However, this is not an issue, because a compiled copy of the game is made available. It must be realized, then, that the purpose of offering the downloadable source code is not so that it can be recompiled, but rather so that those who view it can learn of the details behind how the game works, obtain a greater knowledge of C++, and perhaps use that knowledge for their own programming purposes.


My own C++ tutorial


The 2 main files the Arena of Doom source code consists of are ARENA.CPP and ARENA.H. ARENA.CPP, first of all, is the file that contains a copy of the main C++ game source code. ARENA.H, in turn, is the file that contains information vital to the assembling-together of ARENA.CPP. If you desire to obtain a quick summary of the program behind Arena of Doom, refer to ARENA.H. If you desire to learn of the involved details of how the Arena of Doom program works (recommended for those who know C++), on the other hand, refer to ARENA.CPP.

To view either ARENA.CPP or ARENA.H using your Internet browser, simply click on the "view ARENA.CPP" or "view ARENA.H" link found near the bottom of this page. Press the "BACK" button of your browser when done examining the code.

Is the source code meaningful to you? If so, you may desire to download a copy of ARENA.CPP and ARENA.H to your hard drive. To do so, go through the following steps:

  1. Click on the desired "view" link below displaying the name of the file you wish to download. The file appears on the screen.
  2. Click on the "File" option at the top of the the window of the Internet browser you are using. Next, choose "Save As".
  3. A new window appears.
  4. Click on the down arrow next to "Save as type", and then choose "Text File".
  5. Select the folder you wish to download the file to, then choose "Save".
  6. The file downloads to your hard drive.
  7. Press the "BACK" button of your browser.
  8. Do this for both files.

To view one of the files at a later time:

  1. Open a text-managing program such as NOTEPAD or WORDPAD.
  2. Next, click "File", then "Open".
  3. Click on the down arrow next to "Files of type", and then choose "All Files".
  4. Find the folder you saved ARENA.CPP and ARENA.H to.
  5. Click on the file you wish to view.
  6. Click "Open".
  7. The file appears.


ARENA.CPP is the file that contains a copy of the main C++ game source code. ARENA.H is the file that contains information vital to the assembling-together of ARENA.CPP.
view ARENA.CPP view ARENA.H
file size: 158K file size: 34K

If it was your wish, you should now have a viewable copy of ARENA.CPP and ARENA.H on your hard drive.



Click arrow to return to Arena of Doom main page.

Comments, questions, feedback: jsfsite@yahoo.com