ebook img

Commodore 64 Fun and Games PDF

196 Pages·1984·19.5 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Commodore 64 Fun and Games

i\ Osborne/McGraw-Hill Jeffries Fisher Sawyer ■ ■ v. i ; i i i i i COMMODORE 64 FUN AND GAMES Ron Jeffries Glen Fisher Brian Sawyer Osborne/McGraw-Hill Berkeley, California COMMODORE 64 FUN AND GAMES Ron Jeffries Glen Fisher Brian Sawyer Osborne/McGraw-Hill Berkeley, California DisclaimerofWarrantiesandLimitationofLiabilities Theauthorshavetakenduecareinpreparingthisbookandtheprogramsinit,includingresearch, development,andtestingtoascertaintheireffectiveness.Theauthorsandthepublishermakenoexpressed orimpliedwarrantyofanykindwithregardtotheseprogramsnorthesupplementarydocumentationin thisbook. Innoeventshalltheauthorsorthepublishersbeliableforincidentalorconsequentialdamages inconnectionwithorarisingoutofthefurnishing,performance,oruseofanyoftheseprograms. COPYRIGHT. Thiscollectionofprogramsandtheirdocumentationiscopyrighted.Youmaynot copyorotherwisereproduceanypartofanyprograminthiscollectionoritsdocumentation,exceptthat youmayloadtheprogramsintoacomputerasanessentialstepinexecutingtheprogramonthecomputer. Youmaynottransferanypartofanyprograminthiscollectionelectronicallyfromonecomputerto anotheroveranetwork. Youmaynotdistributecopiesofanyprogramoritsdocumentationtoothers. Neitheranyprogramnoritsdocumentionmaybemodifiedortranslatedwithoutwrittenpermissionfrom Osborne/McGraw-Hill. NOWARRANTYOFPERFORMANCE. Osborae/McGraw-Hilldoesnotandcannotwarrant theperformanceorresultsthatmaybeobtainedbyusinganyprograminthisbook.Accordingly,the programsinthiscollectionandtheirdocumentationaresold"asis"withoutwarrantyastotheirperform ance,merchantabilityorfitnessforanyparticularpurpose.Theentireriskastotheresultsandperform anceofeachprograminthecollectionisassumedbyyou. Shouldanyprograminthiscollectionprove defective,you(andnotOsborne/McGraw-Hilloritsdealer)assumetheentirecostofallnecessary servicing,repair,orcorrection. LIMITATIONOFLIABILITY. NeitherOsborne/McGraw-Hillnoranyoneelsewhohasbeeninvolved inthecreation,production,ordeliveryoftheseprogramsshallbeliableforanydirect,incidental,or consequentialbenefits,suchas,butnotlimitedto,lossofanticipatedprofitsorbenefits,resultingfromthe useofanyprograminthiscollectionorarisingoutofanybreachofanywarranty. Somestatesdoallow theexclusionorlimitationofdirectincidentalorconsequentialdamages,sotheabovelimitationmaynot applytoyou. Published by Osborne/McGraw-Hill 2600 Tenth Street Berkeley, California 94710 U.S.A. Forinformation ontranslations and book distributors outside ofthe U.S.A., pleasewrite to Osborne/McGraw-Hillat the aboveaddress. C-64isatrademarkofCommodoreBusiness Machines,Inc. C-64FunandGamesisnotsponsoredor approvedbyorconnectedwithCommodoreBusinessMachines,Inc. AllreferencestoC-64inthetextof thisbookaretothetrademarkofCommodoreBusinessMachines, Inc. CBMisatrademarkofCommodoreBusiness Machines,Inc. CURSOR(TM)isatrademarkofTheCodeWorks. MasterMind(R)isaregisteredtrademarkofInviticaPlastics. Othello(R)isaregisteredtrademarkofGabrielIndustries,Inc. Yahtzee(R)isaregisteredtrademarkofE.S. LoweCompany,Inc. ChutesandLadders(R)isaregisteredtrademarkofMiltonBradleyCompany. COMMODORE64™FUN&GAMES Copyright©1984byMcGraw-Hill. Allrightsreserved. PrintedintheUnitedStatesofAmerica. Except aspermittedundertheCopyrightActof1976,nopartofthispublicationmaybereproducedor distributedinanyformorbyanymeans,orstoredinadatabaseorretrievalsystem,withouttheprior writtenpermissionofthepublisher,withtheexceptionthattheprogramlistingsmaybeentered,stored, andexecutedinacomputersystem,buttheymaynotbereproducedforpublication. 1234567890DODO89876543 ISBN0-88134-116-9 JudyZiajka,AcquisitionsEditor Brad Hellman,TechnicalEditor ElizabethSwigert,CopyEditor SharonSmith,CoverDesign JenniJeffries,CoverandTextIllustrations Contents INTRODUCTION v YAHTZEE 75 TINY-1 1 Ifyouthinkrollingfivedicetocomeupwiththe samenumberiseasy,perhapsyoushouldtrythis TINY-2 2 game. TINY-3 3 LEAP 81 TINY-4 5 Removepegsonebyonesimplybyleapingover TINY-5 7 them,buttrytoend upwithjustonepeg. BOX 85 EachTinyisa shortprogramthatdisplaysdif ferentpatternsandcolors onyourscreen. Shootraysintoaboxtodiscoverhiddenatoms. ROADHOG 9 LAWN 91 Test your driving skill ^along a narrow and Mowasuburbanlawnfromthecomfortofyour crooked road. chair,butyoumustfinishbeforerunningoutof PIANO 12 gas. KALAH 95 Performcatchymelodieswithascreenkeyboard playingalong. Sow pebbles into your kalah and you'll be a BETS 17 winner. BONZO 102 Try to outbet three opponents in this unusual cardgame. Racetothetop,butwatchtheobstaclesthatare SAFE 23 thrownin. BJACK 107 Canyouburglarizeasafebeforebeingcaughtby the law? Dealanotherhand becausethisimaginarycard BOSWAIN 31 gameallowsyouallthemoneyyoucanspend. Payattentiontothisguy'shandsbecausehehas FIRE 114 ahungryeye onyours. Theinfernohasstartedandonlyyoucanprevent HANOI 38 totaldisaster. Figure out how to move the golden disks that ZAP 119 some Asian priests have been moving for Maneuver your "zapper"around an arena and centuries. scorepointsby"zapping"youropponents. MISER 43 EVEREST 123 Riskyourlifetryingtodiscoverhiddentreasure Theharshelementsoftheworld'stallestmoun inahaunted mansion. tainhinderyourtrektothepeak. MAD 53 REVERSI 129 The C-64createsinterestingstoriesfromwords Thegamemaybeasoldastimeitself,butjusttry thatyousupply. todefeatthe C-64withstrategyandguile. GODZILLA 58 BOP 136 Oneofthe world'smostfamousmonsters is on If you think counting on your fingers is old- therampageagain. fashioned,trycountingthis way. RATRUN 69 SPOT 143 Wanderthroughamazefroma"rat'seye"view Youonlyneedfoursquaresinarowtowin,but insearchofcheese. thefunishowyouplacethesquares. DOTS 147 PIEGRAM 169 Youmayhavethoughtyouhadplayedeveryone Look out because an invisible C-64 is flinging inthisgame,butyouhaven'tliveduntilyouplay piesyourway. theC-64. BAT 174 CAPTURE 152 Youareabatandyouareveryhungry;unfortu Twobeastschaseyouandtrytodevouryouwhile nately,youhaveafewhandicapshinderingyour youtrytocapturethem. eatinghabits. DIVE 157 RESCUE 178 Youcommanddiverstoretrievesunkentreasure. Yourmissionisto rescue comrades onanalien STOP 163 planet while attackers try to thwart your Trytocapture 3 outof 11 columns onaboard operation. beforeyouropponentdoes. INTRODUCTION Commodore 64 Fun and Games provides you torememberwhatthelargeset ofgraphiccharacters with complete listings for 35 programs writ means. The notation used in this book indicates tenspecificallyforthe Commodore64home which keys to press when you type in the program. computer. (NOTE: These programs do not work on Look at Table 1 if you want to see what graphic the Commodore VIC 20 or the Commodore PET.) character the C-64 will display when you type the The programs use the special features the C-64 appropriate key. offers, such as color, sound, sprites, and character The key to entering programs successfully from graphics. All ofthe programs are written inBASIC, this book oflistings is to be careful. We've included butyoudon'tneedtobe aprogrammertoplaythese severalshortprogramscalledTINY-1throughTINY-5 games. All you need to do is enter them from the to help you get started. The best way to learn the listings provided. notationused inthis bookis to trytypingseveral of these TINY programs. Ifyou hurry while typing in a program, you may HOW TO USE THIS BOOK later discover that the program doesn't work when A complete listing is provided for each program. you try to run it.When this happens, you'll have to Youtypethe programintoyourcomputerexactlyas compareeachlineyoutypedagainstthelistinginthe it is listedinthebookandthenplay. Instructions on book. You'llquicklydiscoverthatslowingdownand howto playeachgameare givenintheintroduction carefully entering the program will take much less to each program. time than "debugging" a program that was entered Whenever you enter a program, be sure to save it incorrectly. on cassette or diskette before you try to run it. If you've made a typing mistake that causes your C-64 The Listings to "lock up," you will be able to load the program from cassette or diskette and correct the error. This Most oftenyouwilltypeexactlywhatisprintedin method ofsaving a program before running it may the listings. When you see the curly braces ("{"and save you hours ofretyping. "}")>youknowthatweareusingourspecialnotation, which will be explained below. Otherwise, type exactlywhat is shown inthe listing, with oneexcep HOW TO READ THE LISTINGS tion. Itis oftenimportantthatyoutypeinaspecified Most ofthe programs use C-64specialcharacters number of blank spaces. If a blank space is impor andfunctions, suchascolorkeys, reversevideo, cur tant, wewillshowitasthecaret("A ") whichis nota sorcontrol, andcharactergraphics. Weuse our own character on the C-64. Here is an example: specialnotationintheprogramlistingstomakethem easier to read. Before you enter any ofthe listings, takeafewminutestobecomefamiliarwiththe nota FISHER" tion. Althoughit maylookstrange atfirst, once you learn the notation you will be able to type in the In this line from the PIANO program, there are programs correctly. eight blanks that are required. Since these blanks Wedo not use listings produced byaCommodore must be entered, they are represented by the caret printerforagoodreason:it'sdifficulttotypelengthy symbol. C-64programsthatusegraphicswhenworkingfrom InC-64BASIC,blanksarenotalwaysrequiredina C-64producedlistings.TheCommodoreprinteruses program statement. Sometimes you use blanks to graphic symbols for the special functions, such as maketheprogrameasiertoread. We'veshownthese cursormovementorchangingcolors.Whenyoutype "optional" blanks as actual blanks in the listings. inaprogramfromaC-64producedlisting,youhave Although the programs will work even if you leave VI COMMODORE64FUNANDGAMES Table 1. Notation Used for Program Listings Key(s) to Screen Key(s)to Screen Listed: Press: Graphics: Listed: Press: Graphics: {home} HOME {blu} COMMODORE7 {clr} SHIFTCLR COMMODORE8 {up} SHIFTCRSR UP {rvs-on} CTRL9 {down} CRSRDOWN {rvs-off} CTRLO {left} SHIFTCRSR LEFT {pi} SHIFT t {right} CRSRRIGHT {space} SPACE BAR {inst} SHIFTINST {shift space} SHIFTSPACEBAR {blk} CTRL1 {A} SHIFTA {wht} CTRL2 {B} SHIFTB {red} CTRL3 {C} SHIFTC {cyn} CTRL4 {D} SHIFTD {pur} CTRL5 {E} SHIFTE CTRL6 {F} SHIFTF {blu} CTRL7 {G} SHIFTG {yel} CTRL8 {H} SHIFTH {blk} COMMODORE 1 {1} SHIFTI {wht} COMMODORE2 {J} SHIFTJ {red} COMMODORE3 {K} SHIFTK COMMODORE4 {L} SHIFTL {EMI} COMMODORE5 {M} SHIFTM {gm} COMMODORE6 {N} SHIFTN INTRODUCTION Vll Table1. Notation Used for Program Listings (continued) Key(s)to Screen Key(s) to Screen Listed: Press: Graphics: Listed: Press: Graphics: {O} SHIFTO COMMODOREJ SHIFTP COMMODOREK {Ql SHIFTQ COMMODOREL SHIFTR COMMODORE M {S} SHIFTS {N} COMMODOREN {T} SHIFTT {Q} COMMODOREO SHIFTU COMMODOREP {V} SHIFTV (Q) COMMODOREQ {W} SHIFTW COMMODORER {X} SHIFTX {.a COMMODORES SHIFTY {1} COMMODORET SHIFTZ {11} COMMODOREU {A} COMMODOREA {V} COMMODOREV {B} COMMODOREB {W} COMMODOREW COMMODOREC {X} COMMODOREX COMMODORED COMMODOREY COMMODOREE m COMMODOREZ COMMODOREF SHIFT+ COMMODOREG COMMODORE+ COMMODOREH SHIFT- {1} COMMODOREI 1=} COMMODORE- Vlll COMMODORE64FUNANDGAMES Table 1. Notation Used for Program Listings (continued) Key(s)to Screen Key(s) to Screen Listed: Press: Graphics: Listed: Press: Graphics: {*} SHIFT* COMMODORE\ COMMODORE* SHIFT® (M SHIFT\ COMMODORE@ outtheoptionalblanks,westronglyrecommendthat Table 1, youwillhold downthe SHIFT keyand press you use them. theCLR key. Areverse-video heartgraphiccharacter To makethe programlistings conformtothefor will appear on the screen. mat ofthis book, we"folded"longstatement lines at It is usefulto notice thatthe keys we have named, a convenient place on the line and continued the such as {clr}, are all printed in lowercase letters. statement on the next line. When you type the pro When capital letters appear within the braces, they gramin,youshouldignorewherewehave"wrapped" always represent graphic characters produced with the line around and just keep typing. When long either the SHIFT or the COMMODORE key. Since the statement lines are continued, they are aligned with keys we have named are all printed in lowercase, the rest ofthetext. Sincethe screen ofthe C-64is40 there isn't any possibility of confusion between columns wide, the longer lines ofthe programs will names of keys and the same set of keys used to look different on your screen than they do in the produce graphics. book. Anotherminorpointabouttheselistingsisthatwe Cursor MovementKeys show the line numbers aligned to the right, rather than the left as they will appear on the C-64 screen. Toindicatecursormovementkeysthatareentered This wasdoneto makethelistingslookmoreattrac in strings, weuse{home},{clr}',{up},{down},{left}, tive and easier to type in. and{right}. The"insertcharacter"functionisshown asfinst}. Special Notation Color Keys and Reverse-Video Everythinginsidecurlybraces ("{"and "}") is our specialnotationthattellsyou whichkeys topress on As you know, the C-64 can display 16 colors. theC-64keyboard.Therearethreetypesofkeysthat Abbreviations for eight ofthe colors are printed on will appear within the braces: keys that move the the front of the number keys. To produce these cursor,keysthatcontrolcolor,andkeysthatproduce colors, you hold down the CTRL key and press the C-64 graphic symbols. number,key with the name of the color you want. There are several keys that we've given special Witheach listing, we showthese firsteightcolorsby names. For example, we use{home} to mean "press printingthenameofthecoloronthefrontofthekey: theHOMEkey."Thisistheeasiestpartofthenotation {blk}, {wht}, {red}, {cyn}, {pur}, {grn}, {blu}, and to learn, since all you need to know is what we've {yel}. These colors are names for the keys, just as decided to call the various keys. Table 1 has three {down} is the name for the cursor-down key. differentheadings: whatwillappearinourlisting,the The remaining eight colors, whose names are not actual key you need to press, and a picture of the printedontheC-64keycaps,areshownastheunder graphic character that will appear on the screen. linednames ofthe colors which are on the keycaps. Whenyouneed toentera"clearscreen"code ina When you see an underlined color name, it means program,wewillshow{clr} inthelisting. Asshownin "hold downtheCOMMODORE keyand press the key

Description:
This book contains 30 games in BASIC to type in on the old Commodore 64 computer. The best-known of these are the text adventure Miser and the stratgy game Godzilla. Here's the complete list: Bat, Bets, Bjack (blackjack), Bonzo (aka Chutes & Ladders), Boswain, Bop (Chisanbop demonstration), Box, Cap
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.