Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Falling Snow actually works
Index -> Programming, Turing -> Turing Submissions
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
mirhagk




PostPosted: Wed Dec 09, 2009 4:35 pm   Post subject: RE:Falling Snow actually works

yeah of course lol. thats about 15 minutes of code.
Sponsor
Sponsor
Sponsor
sponsor
308989961




PostPosted: Tue Jan 01, 2013 3:19 pm   Post subject: Re: Falling Snow actually works

Sorry, this is really off topic, but how would I get the snow for a small area? Not the entire screen
Insectoid




PostPosted: Tue Jan 01, 2013 4:01 pm   Post subject: RE:Falling Snow actually works

If you understand how the code works, it should be easy to adapt it to your own needs. If you can't make this simple change, then it looks to me like you're just copying code without knowing anything about it, and I won't support that.
308989961




PostPosted: Wed Jan 02, 2013 12:31 pm   Post subject: Re: Falling Snow actually works

Okay so I've figured it out how to write it in one area but I'm sure how to make it in two separate areas.

for flake : 1 .. NoOfFlakes
flakeX (flake) := Rand.Int (200, 620)
flakeY (flake) := Rand.Int (95,550)

flake : 1 .. NoOfFlakes
flakeX (flake) := Rand.Int (710, 1123)
flakeY (flake) := Rand.Int (95,550)
end for

This is essentially the code but it doesn't work. How can I change it so I have it in 2 separate areas?

Thanks!
Insectoid




PostPosted: Wed Jan 02, 2013 2:04 pm   Post subject: RE:Falling Snow actually works

You'll need 2 arrays of flakes, one for each area.
Ali669




PostPosted: Fri May 31, 2013 4:19 pm   Post subject: Re: Falling Snow actually works

Cool game
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 21 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: