Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hey, a legitimate question!
#5
ok, so i'm trying this experiment:

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
Reply


Messages In This Thread
Hey, a legitimate question! - by Dio - 03-03-2007, 08:43 AM
Hey, a legitimate question! - by DrV - 03-03-2007, 08:59 AM
Hey, a legitimate question! - by Skyler - 03-03-2007, 06:05 PM
Hey, a legitimate question! - by phycowelder - 03-03-2007, 08:03 PM
Hey, a legitimate question! - by Dio - 03-04-2007, 06:27 AM
Hey, a legitimate question! - by phycowelder - 03-04-2007, 07:34 AM
Hey, a legitimate question! - by Skyler - 03-04-2007, 07:41 AM
Hey, a legitimate question! - by phycowelder - 03-04-2007, 08:04 AM
Hey, a legitimate question! - by Skyler - 03-04-2007, 05:17 PM
Hey, a legitimate question! - by phycowelder - 03-04-2007, 08:05 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)