These are projects posted by the students of Dr. Gove Allen at Brigham Young University. These students have taken one semester-long course on VBA and generally have had no prior programming experience

Wednesday, December 8, 2010

Matt Blodgett VBA Project - Nibbles Game

Executive Summary

For my project, I decided to address the significant lack of Excel games for my young son to play. I created an excel version of the game ‘Nibbles’ or ‘Snake’.

In this classic game, the user controls a snake on a game board made entirely of squares. The head of the snake occupies one space on the square, with a long tail trailing behind it. The goal of the game is for the snake to eat ‘apples’, or red squares with a number embedded in it. Once a certain number of apples (9 in my version of the game) have been eaten, the level is complete and the snake moves on to another level. If the snake runs into its own body or the walls of the level, the level must be restarted. After the snake runs out of lives, the game is over. Scoring is awarded based on the number of the apple being eaten, a multiplier defined for each level, and a reward for the speed of the snake.

Creating user-defined levels
In order to keep the game fresh, new and entertaining, I added the ability of the user to create new levels to play. Users can create any number of level sets, with any number of levels. Each level can be customized in size, starting position, scoring options, and with user drawn walls.


No comments:

Post a Comment

Blog Archive