[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
re: StarLogo overload
- Date: Sun, 2 Nov 97 01:43:20 -0800
- From: Andrew Begel <abegel@alum.mit.edu>
- Subject: re: StarLogo overload
Hmm, this looks to be a bug on our part. This dry.up function causes it
when it's turned on.
When dry.up only has the every 0.1 [drop.level] line in it, everything
works.
However, it also works when just check.for.border is on. But when all
three forever buttons are on, it stops working after a while. I suspect
something with the code we added to support sprout. (It's tricky code.
Very messy).
Well, we'll take a look at this and see if we can get to the bottom of
it...
For now, separate your dry.up procedure into two separate procedures.
This seems to fix it.
to dry.up
every 0.1 [drop.level]
end
to energy.gain
setenergy energy + 5
end
Andy
>to dry.up
>every 0.1 [drop.level]
>setenergy (energy + 5)
>end
>
>to drop.level
>if ycor = (ysky - 1) [setpc sky]
>if ((xcor = screen-edge) and (ycor >= (ysky - 1))) [setpc yellow]
>if ((xcor = -1 * screen-edge) and (ycor >= (ysky - 1))) [setpc yellow]
>if ycor = ysky [setpc white]
>setysky (ysky - 1)
>end
>
Andrew Begel
Dept. of Computer Science
UC Berkeley