home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / CODIGO_2 / RUTHIE / GAME3.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1992-03-16  |  45.4 KB  |  227 lines

  1. Game3
  2. RuthieWare
  3. Form1%
  4. Timer2
  5. Timer1
  6. Storage
  7. Storage
  8. pppppppppppppppp
  9. pppppppywppppppp
  10. ppppppy
  11. wpppppp
  12. pppppp
  13. pppppp
  14. ppppp
  15. ppppp
  16. ppppy
  17. wpppp
  18. pppppppppppppppp
  19. Storage
  20. Hooray
  21.     6    y    +    n    
  22. Storage
  23. Storage
  24. Storage
  25. Storage
  26. IIIII
  27. Storage
  28. DDDDDDDDDDDDDDD
  29. DDDDDDDDDDDDDDD
  30. Storage
  31. Storage
  32. Storage
  33. Storage
  34. DDDDDDDDDDDDDDD
  35. DDDDDDDDDDDDDDD
  36. QUUTW
  37. Picture1
  38. Actions
  39. g    GoToGame4
  40. i    GoToGame2
  41. SadFace
  42. SourcePicture
  43. DDDDDDDDDDDDDDD
  44. DDDDDDDDDDDDDDD
  45. QUUTW
  46. wwwwwwwwwwwwwwp
  47. wwwwwwwwwwwwwp
  48. Targets
  49. Target
  50. Target
  51. Target
  52. Target
  53. Target
  54. Target
  55. &File
  56. k    FileAbout
  57. &About Ruthie
  58. FileExit
  59. E&xit
  60. &Game
  61. n    GameGame1
  62. &Game &1
  63. o    GameGame2
  64. Game &2
  65. p    GameGame3
  66. Game &3
  67. Instructions
  68. &Instructions
  69. r    PlayGame3
  70. Playing Game &3
  71. GoToGame2_Click8
  72. Game2m
  73. RuthieM
  74. Game3
  75. Quit_Click"
  76. SourcePicture_Click
  77. SourcePicture_MouseDown
  78. Button
  79. ShiftN
  80. SourcePictureG
  81. StartX7
  82. StartY
  83. SourcePicture_MouseUp
  84. GoToGame4_Click
  85. Target_Click
  86. Index
  87. Target_DragOver
  88. Source
  89. State
  90. Picture
  91. Target
  92. Form_Click~
  93. @    Form_Loadb
  94. Storage
  95. Counter
  96. numberZ
  97. between
  98. LoadEm
  99. SortPicturet
  100. Counter1
  101. Counter27
  102. OptionArray
  103. FillOptions
  104. PixOrderF
  105. Pictures
  106. PictureNum
  107. DragIcon
  108. Num2W
  109. StoragePicture
  110. Count1
  111. array
  112.     TempArray
  113. Counter3
  114. Temp2h
  115. @    InitGame3
  116. Target_DragDrop
  117. Hooray
  118. VisibleG
  119. Timer1
  120. Interval-
  121. Timer1_Timer
  122. SadFace7
  123. Timer2
  124. Timer2_Timer
  125. Hooray_Click
  126. Hooray_Change
  127. Hooray_GotFocus
  128. Width
  129. Screen
  130. Height
  131. Picture1_ClickY
  132. InstContinue_Clickn
  133. InstPicture
  134. SuccessPict_Click
  135. PlayGame3_Click+
  136. ScaleHeightP
  137. SuccessPict3_Click=
  138. FileExit_Click
  139. FileAbout_Clickj
  140. Open2
  141. InstPicture_Click
  142. InstText2_Change
  143. Instructions_Click
  144. Form_Resize
  145. ScaleWidth
  146.     InstGame3a
  147. Border
  148. BorderType+
  149. BorderStyle
  150. Picture1_DragDrop
  151. Storage_Click
  152. File_Click
  153. Picture1
  154. Targets
  155. Actions
  156. ScaleWidthSource
  157. ource}
  158. GameGame1_Click
  159. GameGame2_Click
  160. GameGame3_Click
  161. Actions_Click
  162. MODAL
  163. Game_Click
  164. HEADER
  165. TRUE.
  166. HOWLONG
  167. SadFace_Click
  168. Targets_Click
  169. FALSE
  170. Minimize
  171. WindowState
  172. Control
  173. FileAbout_Click
  174. FileExit_Click
  175. Form_Load
  176.  Reset the scale to twipsd
  177.  Define standard size (note 3/4 proportion)a
  178.  Center form horizontally.
  179.  Center form vertically.
  180. Upon loading the form, initialize the pictures
  181. Form_Resize
  182.  Reset scale to twips 
  183. Sorry, you can't make the game any shorter...
  184. RuthieWare
  185. Whoa, Dude! You can't make the game any narrower...
  186. RuthieWare
  187. GameGame1_Click
  188. GameGame2_Click
  189. GameGame3_Click
  190. We hate to break the bad news, but... You're already playing Game 3
  191. GoToGame2_Click
  192. GoToGame4_Click
  193. Chu got a problem, main... There is no game 4 yet.
  194. InitGame3
  195.  What we need to do is initialize an array with 6 elements. We want to initialize the
  196.  array in a random fashion, but we don't want the elements duplicated. That is, we wante
  197.  to "shuffle" the elements. 
  198.  This "seeds" the random number generatorw
  199.  Now we'll assign 0 to 5 to an array
  200.  Now we'll swap 30 random pairs in that temporary array
  201.  produces a value from 0-5
  202.  sometimes these'll be the same valueh
  203.  Now we'll use the shuffled array to load the target picture array
  204.  Now we'll pick a random picture for the source picture...
  205.  and it's pair for the DragIcon.
  206.  Some other Form_Load and Form_Resize events
  207.  Define the internal scale (note the 3/4 proportion)
  208.  No need to define height or width--it's a fixed-size icon
  209.  Thus flush right on scale 90e
  210.  Thus flush with scale 70e
  211.  Adjust visible width to hide GoToGame4e
  212. 333333
  213.  Force refresh of Picture1
  214. Picture1_Click
  215. Picture1_DragDrop
  216. PlayGame3_Click
  217. Quit_Click
  218. SourcePicture_MouseDown
  219.  Initiate drag movementn
  220. SourcePicture_MouseUp
  221. Target_DragDrop
  222.  Interval is defined in the (general declarations) section
  223. Timer1_Timer
  224.  Turn off the Hooray! picture
  225.  Depending on which picture was displayed, turn off SadFace...
  226. Timer2_Timer
  227.