Game Development Reference
In-Depth Information
may take him a few tries at it. Once the code is working correctly, adding the rest
of the gang is very easy:
1. Add a button to the form below Eddy for Larry. Larry's event handler needs
just one line of code:
RunSim("Larry", New Larry)
2. Add a button to the form for Gary. Gary's event handler needs this line of
code:
RunSim("Gary", New Gary)
3. Add a button to the form for Carl. Carl's event handler needs this line of
code:
RunSim("Carl", New Carl)
4. Add a button to the form for Mike. Mike's event handler needs this line of
code:
RunSim("Mike", New Mike)
5. Add a button to the form for Barry. Barry's event handler needs this line of
code:
RunSim("Barry", New Barry)
Run them all and see how they do. The final running project looks like Figure 5.2.
Figure 5.2
Barry has an excellent run.
 
Search Nedrilad ::




Custom Search