Development Process – 5
Posted by on October 18, 2011
After a version was completed for class the next thing that I set out to accomplish was getting the collapse chance code to work properly. Me and Phil had been working on the code previously but I realized we made an error in our calculations. The only correct way for the mine to collapse was if any player didn’t place a support on their first turn. But if a player did place a support it calculated the collapse chance wrong. So to correct this I came up with the idea that if a player digs an unsupported dirt area a block would be created in its place that would then be used to calculate the collapse chance. If that unsupported area was then reinforced with a support that block would be deleted. Finally at the end of the fourth players turn all unsupported blocks created would be added together and multiplied by the collapse multiplier and that number would then represent the collapse chance. Then the final change that we placed into the game was changing the color of blocks that were supported and the ones that were unsupported to give the players a visual representation of both.
Recent Comments