Computer Science Canada Falling Snow |
Author: | Turing_Student [ Tue Dec 03, 2002 11:27 pm ] |
Post subject: | Falling Snow |
Hey, how are you all doing? I'm a h/s student and I'm just trying to get thru my computer science class ![]() |
Author: | Tony [ Tue Dec 03, 2002 11:54 pm ] | ||||
Post subject: | |||||
there're few ways of doing that, it depends on the result you want to achive. The easiest is
Here you basically randomly pick location for the snowflake and draw it there. But it will be different every time you do that, since its random. To make snow actually fall, you'd have to create an array, storing their location and making it "fall" (y:=y-1) each time you go through the loop. As in
Good luck on your project ![]() |
Author: | Turing_Student [ Tue Dec 03, 2002 11:57 pm ] |
Post subject: | Thanks! |
Wow, thanks so much! I'll let ya know if I can get it working! ![]() |