O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building the Game’s Source Code

Now it’s time to dig into the source code for the game. I’m going to go slowly and explain every variable declaration and function in the entire game, which is about 25 pages of code. This is actually quite small for a complete game. But Battle Checkers is not 100% polished, so there are some gameplay items that were left out of the game in order to keep the code shorter and more understandable. The two main features of checkers that were left out of the game are shown in the following list:

  1. “Kinging” a pawn piece. Adding this capability would have significantly lengthened the key functions of the game, which currently work only in a single direction for each player. Adding kings to the game would have required ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required