Dark Bit Factory & Gravity

PROGRAMMING => Other languages => Yabasic => Topic started by: Wenlock on July 12, 2009

Title: Bugs in PONG.YAB
Post by: Wenlock on July 12, 2009
Yeah, here's some more.

In sub draw_score

text XSIZE - 50, 20, str$(score(1)), "cc"
Should be (score(2))

and

In sub_check_leftright_collission

score(2) = score(2) + 2

should be - score(2) = score(2) + 1

Time to fire the proofreader!  :D


Incidently, when I've been unable to spot my typos I've found Xfdiff-cut in Puppy Linux invaluable, but have to use Windows to extract the text from my saves as the Linux text editors are too smart - "this does not appear to be a text file"..

Wenlock
Title: Re: Bugs in PONG.YAB
Post by: Jim on July 12, 2009
You might try using the Linux utility 'strings'

strings < yabasicsave.bin > yabasicsave.txt

That'll remove the binary bits.

Jim
Title: Re: Bugs in PONG.YAB
Post by: Wenlock on July 12, 2009
Thanks Jim,

I`ll try that next time I`m seatching for bugs. 

Not many left to type, and mainly games at that.

Wenlock.
Title: Re: Bugs in PONG.YAB
Post by: Shockwave on July 12, 2009
What are you going to do when you run out of things to type? :)
Title: Re: Bugs in PONG.YAB
Post by: Wenlock on July 13, 2009
Hm, I could play games, or maybe even  :inspired: try some coding.

Wenlock