The goal of this project was to find the source code of a game, alter it and compile it using Microsoft Visual Studio (MSV). I downloaded the code for a game called BlockD from the website http://planet-source-code.com. Since the game was built in MVS 2006 I had to rebuild the solution so that it would be updated to match the version of the software I was running, which was MSV 2010.
BlockD is a Bejeweled styled game. It utilizes an array to store the the different block types, one for each color, the background image and empty spaces. Something that I thought was interesting about how the sprites were instantiated is how they are being defined in a separate file called resource.h and are set-up an INT called #define IDB_B1 130. These objects were then called by the LoadBitmap function and stored in an array. My alteration to the source code was a simple one where I made all of the blocks the same color by only calling IDB_B1 into all the slots of the array.