03-04-2007, 06:27 AM
ok, so i'm trying this experiment:
before, i had it just pick a random x and y and if that happened to be a blue pixel, it would move it down. but that was really slow.
so i made List(480000) and used the first 2400.
line eight seems to be te problem.
Code:
screenres 800,600,32,2,1
dim water(800,600)
dim list(480000)
for i = 0 to 2399
do
x = int(rnd*800):y = int(rnd*600)
loop until water(x,y) = 0
list(i) = water(x,y)
water(x,y) = 1
pset(x,y),255
next
sleep
do
i = int(rnd*2399)
if water(x,y+1) = 0 then
water(x,y+1) = 1
water(x,y) = 0
pset(x,y-1),0
pset(x,y),255
list(i) = water(x,y)
end if
loop
before, i had it just pick a random x and y and if that happened to be a blue pixel, it would move it down. but that was really slow.
so i made List(480000) and used the first 2400.
line eight seems to be te problem.
quote="whitetiger0990"]whitetiger is.. WHITE POWER!!! [/quote]
Here
Here