Old stuff I still know
Our Ginger Fuhrer says that he could still code up a simple game idea in Amstrad Basic, while I'm your man if you ever need to rebuild the suspension on an Austin Allegro (1750 Equipe version). This stuff doesn't leave your mind - tell us about obsolete talents you still have.
( , Thu 30 Jun 2011, 17:04)
Our Ginger Fuhrer says that he could still code up a simple game idea in Amstrad Basic, while I'm your man if you ever need to rebuild the suspension on an Austin Allegro (1750 Equipe version). This stuff doesn't leave your mind - tell us about obsolete talents you still have.
( , Thu 30 Jun 2011, 17:04)
« Go Back | See The Full Thread
Nope..
Plot indeed does produce a dot, but the loop moves the new position of the cursor (so to speak) one pixel in any of the chosen directions.. To avoid creating a load of gaps between your plotted dots, change the 10' to 1' -1 etc..
The draw command has two coordinates, the start of the line, the end of the line, then it simply connects the two.
Oh, and stick this in at the end (before the loop):
66 If g$ = " " THEN CLS:PLOT 128, 191
That'll clear your screen, then re-centre your dot.
( , Sat 2 Jul 2011, 17:22, 1 reply)
Plot indeed does produce a dot, but the loop moves the new position of the cursor (so to speak) one pixel in any of the chosen directions.. To avoid creating a load of gaps between your plotted dots, change the 10' to 1' -1 etc..
The draw command has two coordinates, the start of the line, the end of the line, then it simply connects the two.
Oh, and stick this in at the end (before the loop):
66 If g$ = " " THEN CLS:PLOT 128, 191
That'll clear your screen, then re-centre your dot.
( , Sat 2 Jul 2011, 17:22, 1 reply)
Then you were using different Spectrums to the ones I was.
Plot does do what you say but it's next to useless in drawing the lines. DRAW simply draws from the last cursor position (either top left, or a plotted dot) for the length required. I know I'm right because I recall the program pretty much line for line -- I don't have a photographic-style memory of the book I copied it from now, but I did about 2 decades ago.
As for clearing the screen etc. -- I added a lot since then, including clear the whole screen, use an eraser-line, add characters, add plotted dots, draw diagonal lines, and so on. I omitted the add-ons for brevity.
( , Sat 2 Jul 2011, 19:32, closed)
Plot does do what you say but it's next to useless in drawing the lines. DRAW simply draws from the last cursor position (either top left, or a plotted dot) for the length required. I know I'm right because I recall the program pretty much line for line -- I don't have a photographic-style memory of the book I copied it from now, but I did about 2 decades ago.
As for clearing the screen etc. -- I added a lot since then, including clear the whole screen, use an eraser-line, add characters, add plotted dots, draw diagonal lines, and so on. I omitted the add-ons for brevity.
( , Sat 2 Jul 2011, 19:32, closed)
Agreed..
There were many ways to get the 'etch a sketch' effect, the plot routine is the one I remember.
I do recall combining this with a UDG editor, so I could put fancy borders and patterns on the screen too.
Damn, I really should have got out more when I was younger *sigh*
( , Sat 2 Jul 2011, 19:58, closed)
There were many ways to get the 'etch a sketch' effect, the plot routine is the one I remember.
I do recall combining this with a UDG editor, so I could put fancy borders and patterns on the screen too.
Damn, I really should have got out more when I was younger *sigh*
( , Sat 2 Jul 2011, 19:58, closed)
« Go Back | See The Full Thread