Thursday, 30 January 2014

BattleShips Games development

BattleShips Games


This application presents a grid of 100 squares to the user. The user has thirty five attempts to find to find the computers fleet. The computer randomly positions five ships of varying sizes around the board.
The board is made up of 100 buttons each uniquely numbered. They start sea-green indicating not selected. When selected the application checks if the area is occupied and turns red if unoccupied turns blue. The application also emits an explosion for a hit and a splash for a miss. It also recognizes a complete sinking by ringing the ships bell. On complete sinking of a ship it's corresponding ship indicator turns yellow.
After 35 attempts the application will show all missed squares by turning the squares yellow.


It uses the following......
wav files for all the sounds
Buttons for the squares
Random method to place the ships
Use manager to organise the squares
I have included the code and wav files in the following zip file (See attached file: BattleBoat.zip)

0 comments:

Post a Comment