May June 1980 - Commodore Computers
May June 1980 - Commodore Computers
May June 1980 - Commodore Computers
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
98<br />
98<br />
COMPUTE. MAY/JUNE. MAV / JUNE. <strong>1980</strong>. ISSUE &..:1,<br />
Now that t these tips lips on on Atari color are under your<br />
belt, it it is is time to to try tryout the the program.<br />
The listing starts out OUl by by setting tting a moderately high<br />
resolution full-frame m e graphics mode in in statement 20.<br />
This mode allows the display of of four colors and contains<br />
160 x 96 96 picture elements -- plenty for our need.<br />
The OPEN statement lets us us use a GET statement to to<br />
receive data from the keyboard without having to to press<br />
RETURN. Note that the Atari version of GET is is<br />
very different from the version you may be accustomed<br />
to from Microsoft BASIC. Next, the color registers<br />
are all set at the same color value so that when the<br />
cube is is first drawn you cannot see it. The front face of<br />
the cube is is drawn in COLOR 1 (from SETCOLOR<br />
register 0) in lines 70-90, a nd the other two<br />
register 0) in lines 70-90, and the other two<br />
faces are drawn in COLOR 2 and COLOR 3 in<br />
lines 110-130 and 150-170 respectively. At this<br />
point the computer waits s in line 190 until a key is<br />
typed. (Note that in Microsoft BASIC the program<br />
would not stay at a GET command, but would<br />
look once and be on its way.) y.) Since I expect<br />
to be GET-ting a keystroke from keys 0 through 7<br />
(which have the Atari-ASCII values 48 through 55),<br />
lines 200 and 210 convert the keystroke to an even<br />
number between 0 and 14 for use in the SETCOLOR<br />
command. This program looks for three keystrokes -<br />
one for each face of the cube. As each key is<br />
typed (try 5, 6 and 7, for example) a cube face will<br />
become visible. The result is that a ""three-dimen<br />
three-dimen<br />
sional" " representation of a cube is now nicelyy<br />
displayed on your TV screen. .<br />
If you want to change the shadings, type three<br />
more numbers between 0 and 7 and see what happens.<br />
Next, for some more excitement, type J, K and L.<br />
Once again you will see the shaded cube, but the<br />
color will have changed from gold to more of a<br />
magenta. As you can see, luminance values greater<br />
th than an 14 cause the hue to change.<br />
Now that you u know about shading, you should be able e<br />
to make some truly beautiful pictures on th the e Atari<br />
computers!<br />
Table 1. Hue Values For The Atari <strong>Computers</strong><br />
COLOR<br />
HUE VALUE<br />
CRAY GRAY 0<br />
LIG LIGHTORANGE O R 1<br />
ORANGE 2<br />
RED·ORANGE RED-ORANGE<br />
3<br />
PI PINK NK +<br />
PU PURPLE 5<br />
PURPLE-BLUE 6<br />
BLUE 7<br />
ANOTI-I ANOTHER lOR BLU BLUE E<br />
B »<br />
LIGHT BLUE E 9<br />
TTURQUOISE U 10 10<br />
GREEN-BLUE<br />
II M<br />
GREEN 12 12<br />
YELLOW-GREEN W 13 13<br />
ORANGE·G ORANGE-GREEN REE, 14 14<br />
LIG LIGHTORANGE O E 15 15 ©<br />
INTRODOCING<br />
INTRODUCING<br />
FOR THE ATARI TM<br />
FOR THE AT ARr M<br />
GUESSWORD -<br />
GUESSWORD — Based<br />
on tm tn ~ TV shov. she ,"" Password, lJ~ l.\.'ord . the<br />
computer C0m ~ r<br />
gives clues ('lues to :0 the<br />
secret ' !: e~re l word. wo;d. Tr.c Tnc faster last!;:r vou<br />
guess gut's!:. the word the I t>e hiahei higher<br />
your you: score. s..:-ore. For Fe·, one C'ne or two<br />
players (grades 19rades 6-M 6+1 cass. ss. S15.00 S WA,"ITED -<br />
WANTED — Be a detective df>IC'(1h:tana<br />
track t ra~'k aowr. OOWI. the e wc;d; wc;e! that<br />
have escaped esci:ptd your vocabulary. '.c:nDulal).<br />
Clues appear app.::~r<br />
on the me screen in Ir:<br />
the tht' form of 01 a 'Wanted' 'Wantec" poster puster<br />
(grades (9 r "d e ~ 4-8)... 4·8). cass 515.00 $15.00<br />
WORD-SCRAMBLE -<br />
Unscramble UnSCff of Fish M!.'h with the computer. (OmpUlei,<br />
Tl Tius lls time tiine esk ~sk tor lor the homonyms homenrm!'<br />
to to the Ul~ word-cards word·cards that appear ap~ar in In<br />
your hr.nd. h2.nd. (grade; \grades. 3-6) 3·6) .<br />
cass<br />
SI5.00<br />
S15.00<br />
WORD-MATE -<br />
WORD-MATE — Bjiid R"ild<br />
compound CC'n1jX>U;):i words with v.'lth the words word"<br />
tha1. tha: have ha'ie been l ~ dealt deal! to you. yOl '<br />
Try TT)' to make ;na..:e mote m Ol€, compound<br />
COr1roun d<br />
words w() ~ than the computer cornlJuter Don't<br />
\<br />
get gel stuck with lA~th<br />
the last la!.t card ::ard<br />
(grades 3-6). 3·6 ). . o-ss CC1SS 515.00 S COMING S OON ..<br />
PRESCHOO L FUN<br />
COMING SOON . . .<br />
PRESCHOOL FUIN<br />
MATH FACTS iI<br />
CR1BBAGE<br />
CRIBBAGE<br />
Or Call: (313) 595-4722<br />
DEALER ORDERS<br />
WELCOME<br />
Imagine. Imagine, berng being .lble able 10 to put In in memor) memory aany 3·D 3-D obJcct ob|ect. .md and Vle\\ view II it Tra trom m<br />
any ~' location and dcgfcc degree oof f fOla rotation, llon. undc underneath, rnealh. 1Il51df' inside of! Th.s This I is ~ ,1 a<br />
set of .14 pfOg,illllS programs W/llstings l lr ~tmg \ th.l that l Will will fun run III in 8K' RK! H,t- ifiK mill mm fOI for HI<br />
RlS RfcS I'fogfiHllllled Programmed In in B.Hl Hasit e but c"ecutcs executes VCf\' very f.lSl. fast, ,lnu and I"OgIMl1 program " is<br />
cas\ easy 10 to ('~I).Hld expand Muh.plc Multiple color icilor conlfo control, l. ~oft software \ \