Difference between revisions of "Visual Basic"

From WLCS
(Thursday (2/19/09))
(Thursday (2/19/09))
Line 7: Line 7:
 
** When the button is hit, use a while loop to make all the images invisible
 
** When the button is hit, use a while loop to make all the images invisible
 
* Makin' it rain
 
* Makin' it rain
** Add a picture of a raindrop to the screen
+
** Add an array of pictures of raindrops to the screen
 
** In the Form_Load, use a loop to randomly place all of the rain drops
 
** In the Form_Load, use a loop to randomly place all of the rain drops
 
** Add a button to the screen
 
** Add a button to the screen

Revision as of 13:30, 19 February 2009

Thursday (2/19/09)

  • Array Practice
    • Create a new form
    • Place 5 images on the form
    • Give each image on the form a unique index starting at 0
    • Add a button
    • When the button is hit, use a while loop to make all the images invisible
  • Makin' it rain
    • Add an array of pictures of raindrops to the screen
    • In the Form_Load, use a loop to randomly place all of the rain drops
    • Add a button to the screen
    • When the button is hit, use an infinite loop (While True), to move all the rain drops down the screen
    • Inside the loop, if the rain drop is past the bottom of the screen, then place it back at the top of the screen

Tuesday (2/17/09)

Tuesday - Friday (2/10/09 - 2/13/09)

Monday - Friday (2/2/09 - 2/6/09)

  • Demo Whack-a-Mole Game to Mr. Bui
  • Reading and writing to files
  • Using the file I/O demo as an example, add a high score saving feature in your game. A high score should be read from a file at the beginning of the game. When the game is over, if the new score is greater than the old high score, then output the new high score to file.

Archives