Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
v1.8.9 bright 8 does not work (*solved*)
#1
Hello Boriel,
I found a problem wih bright 8
I'm coding some routines for a game and I need use bright 8 to draw four lines on a square with attributes: ink 2 and bright 1
I set paper 8, ink 8 and bright 8 to draw lines in this zone but zxbasic changes the brightness to zero and seems doesn't works.

Thanks

Code:
ink 2: bright 1
plot 117,154:
draw 0,-8: draw 1,0: draw 0,-5: draw -1,0: draw 0,-8: draw 8,0: draw 0,1: draw 5,0: draw 0,-1: draw 8,0: draw 0,8:
draw -1,0: draw 0,5: draw 1,0: draw 0,8: draw -8,0: draw 0,-1: draw -5,0: draw 0,1: draw -8,0

do

.....

if IN 32766 = 190 go sub fire

print paper 6;over 1; INK 0;AT 5,15;"  ";AT 6,15;"  "

loop

fire:

ink 8: paper 8: bright 8: over 1
for n=1 TO 2
    plot 0,191:draw 126,-47
    plot 255,191:draw -126,-47
    plot 80,75: draw 48,69
    plot 175,75:draw -48,69
next n

over 0

return
Reply
#2
My apologies for repeat the question, I'm in trouble with this Smile specifying
bright 8 works in zxboriel as sinclair basic ?
(transparent bright)
Thx a lot
Best regards!

Siento insistir en esta cuestión
Para poder tomar una decisión, tan solo necesito saber si es un posible bug de esta versión o el zx basic no soporta el valor 8 para el brillo de la misma manera que lo hace el basic de sinclair .
Muchas gracias
Un saludo!
Reply
#3
It should work as in Sinclair BASIC. ZX Basic uses its own printing routine.
I'll look into it, thx 8)
Reply
#4
Problem only is with bright 8.
paper 8 and ink 8 works fine in zx basic
Thank you very much Boriel!
Reply
#5
Ok, there was a (long lasting!) bug in both FLASH and BRIGHT, now fixed.
Please, download this beta, and tell me if it works ok :roll:

http://boriel.com/files/zxb/zxbasic-1.8....-win32.zip
http://boriel.com/files/zxb/zxbasic-1.8....a11.tar.gz
http://boriel.com/files/zxb/zxbasic-1.8.10-beta11.zip
Reply
#6
Awesome!! Confusedhock:
Thank you very much Boriel, now it works perfectly

Thx a lot!

[Image: cfa239d6adb00e0497158fff3a3f76c5o.jpg]

1.8.9
[Image: 13a4d640126c2761c9da15a4a8c77443o.jpg]

1.8.10
[Image: 03672527049e58a914c097d7345a5a62o.jpg]
Reply
#7
Seems that nobody used BRIGHT 8 nor FLASH 8 before!
I will put these updates in the next 1.8.10 stable. In the meantime, keep this beta10 :wink:

BTW nice screenshots!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)