Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maze code/vbx/ocx etc

Status
Not open for further replies.

dragnut

Technical User
Dec 27, 2000
125
US
Hi all,
I was wondering if anyone knew of a way to draw a maze on a form using vb4-16 without making a bunch of lines and trying to line them up. I found an ocx/vbx/dll or something but it didnt work on my system even aftr registering it.
I am trying to make something for my kid to learn not to hit like 5 keys at a time, and think this would be pretty good. Any help would be greatly appreciated.
Thanks
Dragnut
 
Confused?

What would you use to represent the elements of the maze structure if not lines?

How is the maze to be 'used' by your child/children? What feature of the maze will 'teach' them to not hit multiple keys?

Anyway, If i were going to represent a maze in VB, the hardest part would be to designate the path(s) which would be 'open'. To just get the basic rectangular set of lines, Defing a matrix (array) and give each point the coordinates of an intersect in the maze. Annother array would be set up to determine if a specific line segment would be drawn between the intersect points. A simple loop would draw the line segments - unless the parallel array set the segment to FALSE.


MichaelRed
mred@duvallgroup.com
There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top