Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleMake a geography game
DescriptionThis example shows how to make a geography game in Visual Basic 6. The game names a state. When the user clicks on an area, the program floods a hidden picture starting at the point clicked and sees whether an identifier pixel is colored.
Keywordsmap, flood game, FloodFill
CategoriesGraphics, Puzzles and Games
 
When the user clicks on a point on the map, the program uses the FloodFill API function to fill the area clicked. It then checks the desired state's identifier pixel to see if it has been colored. If it has, then the user clicked the right region.

This zip file also includes a program that helps make a database of positions of points in each state for a map.

 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated