Dark Bit Factory & Gravity

PROGRAMMING => Other languages => Yabasic => Topic started by: Wenlock on June 20, 2009

Title: 3DDEMO Error in listing
Post by: Wenlock on June 20, 2009
Hi Guys,

Tripped over an error in the listing of 3DDEMO:

    if (xand=0) then

     yplus=y+twotop

     ymind=y-twotop

     if (yplus>size) yplus=1

     if (ymins<1) ymins=size

     average=(array(x,yplus)+array(x,ymins))*0.5

     col=average+roughness*(ran()-0.5)

     goto nxt

The line "ymind=y-twotop" should read "ymins"

It does work with ymind, but looking at the rest of the code, it's pretty clear this should be ymins. 

Cheers,

Wenlock
Title: Re: 3DDEMO Error in listing
Post by: Jim on June 20, 2009
Cool!  Does this win a prize for the latest bug report?  O0

Jim
Title: Re: 3DDEMO Error in listing
Post by: Shockwave on June 20, 2009
I think it's wonderful that Wenlock is learning enough to be able to spot these things now :) Maybe we'll see something new in Yabasic soon eh?
Title: Re: 3DDEMO Error in listing
Post by: Wenlock on June 21, 2009
LEARNING!   :boxer:

Spotting that was from all that experience with the Disk Extended Color BASIC in the 80's and 90's.   No wonder I'm so patient typing all these listings.

Now, I'll type Paracetamol soon, just got 1 to finish first.

After that, I think there's 1 or 2 demos then it's games if I want to keep typing.

Wenlock