sweet....
I made some modifications too...I altered the code in the first function to make snow, light rain, heavy rain, and even a tornado effect lmao!
Srlancelot39
Posted: Fri Jan 08, 2010 2:22 pm Post subject: Re: RE:My rain program
loop
Draw.Fill (100, 100, brightred, green)
const NoOfrain := 400
var rainX : array 1 .. NoOfrain of int
var rainY : array 1 .. NoOfrain of int
for rain : 1 .. NoOfrain
rainX (rain) := Rand.Int (0, maxx)
rainY (rain) := Rand.Int (0, maxy)
end for
for rain : 1 .. NoOfrain
%Drop The rain
rainY (rain) -= Rand.Int (1, 5)
%rainX (rain) += Rand.Int (-1, 1)
if rainY (rain) < 0 then
rainY (rain) := maxy
rainY (rain) := Rand.Int (0, maxx)
end if
Draw.FillOval (rainX (rain), rainY (rain), 1, 1, blue)
end for
%Update the screen (because of offscreen only)
View.Update
delay (100)
end loop
lol...that looks more like particle physics than rain
Srlancelot39
Posted: Tue Sep 07, 2010 11:12 pm Post subject: Re: RE:My rain program
belarussian @ Thu Dec 10, 2009 8:14 pm wrote:
your not really doing any rain that is different than mine you are just changing the y value and making it faster. so yeah have a good day
really? looks significantly different to me. besides, mirhagk is a good sport, you're not - "so yeah have a good day".....honestly? sounds like jealousy to me...
andrew.
Posted: Wed Sep 08, 2010 6:57 am Post subject: Re: RE:My rain program
To quote Euphoracle:
Euphoracle @ Thu Dec 10, 2009 9:19 pm wrote:
...You're aware this thread was started in 2005, right?
Dan
Posted: Wed Sep 08, 2010 9:18 am Post subject: RE:My rain program
Thread locked due to necroposting.
Computer Science CanadaHelp with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!