Animated Hangman Game

Category:
Multimedia/Games
Type:
Applications
Difficulty:
Beginning
Author:
Ethan

Version Compatibility: Visual Basic 6

More information:
This gives the old game of hangman a new twist... You can click on a letter or press a letter on your keyboard. To add or delete words you can modify the hangman.dat file with notepad.

The code show how to:

  • Open and read strings from a file into an array
  • Choose a random array element
  • Dynamically load and display word and letter labels
  • Use shape controls in drawing
Note: The animation speed can be adjusted by changing the speed variable in the GameLost event.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download hangman.zip