Hey guys!
First off, GREAT SITE, I've been looking into learning to code old-school style demos for a long long time, and this site is a great resource.
Basically, I'm sure that my question is going to be ridiculously noobish, but I have to ask.
Essentially, I am trying to modify the "line-drawing" code from the second FB tutorial to make a crosshair in the center of the window.
So far, I've got it centered, and the "left" and "right" of the crosshair, but I cannot get the vertical lines for some reason, I figured it would involve just using Y in place of X and some tweaking, but I can't figure it out.
I know that it writes from left to right, and I think this is my problem. I feel like such a n00b, but I've never really done any graphics programming before.
heres the code...
WHILE(1)
X = 320
Y = 240
FOR A = 0 TO 49
BUFFER (X + A +(Y*XRES)) = &HFFFFFF
NEXT
FOR A = 0 TO 49
BUFFER (X - A +(Y*XRES)) = &HFFFFFF
NEXT
FOR A = 0 TO 49
BUFFER (Y + A +(X*YRES)) = &HFFFFFF
NEXT
I know that the framework can do this for me, but I like to learn the dirty, long way to do things purely because then I fully understand it.
Thanks for your help guys, I'm happy to be a new member to this community.