8/3/2019 Games for Your MSX [Preview]
1/22
8/3/2019 Games for Your MSX [Preview]
2/22
8/3/2019 Games for Your MSX [Preview]
3/22
GAMESFOR YOUR
MSX
ByGrahamCarter
8/3/2019 Games for Your MSX [Preview]
4/22
8/3/2019 Games for Your MSX [Preview]
5/22
GF
X
ByG
Virgn Books
8/3/2019 Games for Your MSX [Preview]
6/22
First published in Great Britain in 1985 by Virgin Books Ltd,328 Kensa Road, London W lO 5X]
Copyright 1985 Interface/Virgin Books
ISBN 0 86369 092 0
All rights reserved. No part of this book may be reproduced inany form or by any mens without prior pemission from thepubisher.
Printed and bound in Great Britain by Richard Clay(The Chaucer Press) td uffok.
Production services by Boo Production ConsultantsCambridge.
Illustrations and artwork by ue Waiker.
Typeset by Key ine Graphics.
Distributed by Arrow Books
8/3/2019 Games for Your MSX [Preview]
7/22
G
TO SUE A STEVE POWELL
8/3/2019 Games for Your MSX [Preview]
8/22
1 1 G FORYOURMX TM HARTNELLTHE SERES EDTOR
Tm Hartnell s the most wdelypublshed computerauthor n the world Founder of the Natonal ZX UsersClub, and foundng edtor ofZX Computing magazne,Tm has been nvolved over the years n a wde varety ofcomputer actvtes Hs publshed works nclude The
Personal Computer Guide (Vrgn ooks) and The GantBook of Computer Games (Fontana).
GCARTERTHE AUTHOR
Graham Carter s a 20-year old student n hs fnal year ofa /TEC Natonal Dploma course n Computer Studes
He s hopng to go to Unversty to contnue hs studes nths feld to degree leve He has been workng wthcomputers for over four years Hs other nterests ncludemusc and photography
SUE WALLKERTHE LLUSTTOR
Sue Wallker s a freelance llustrator
ACKNOWLEDGEMENTS
would especally lke to thank Andrew Oglve andCarol Vncent for the orgnal programs they supple foruse n ths book, and for the help they gave me durng tspreparaton would also lke to thank Paul Precous,Smon Gould, Scott Vncent Clve Gfford, DaonPllnger and Danny Olesh for ther program deas
8/3/2019 Games for Your MSX [Preview]
9/22
1
Editor'sIntroduction..
Author'sntroduction
GAE FORYOUR
Contents
l
13
ProgramNotes 15
MotorcycleStuntman .
Mastercode..............
Noughts& Crosses . Bazooka!..........
MusicProgram
Hangman
Breakball.. ...................................................
7
22
.................................. 26
30
34
37
44
DartsScorer ..................... . ................................................. 47
Minefield ..................
Calendar .................
21
Nim...........
Inferno .....................
51
55
57
63
................. ..... 66
Allsorts .............. ................... ................ 70
NightFighter 72
StockMarket ........... 75
TelephoneBook . ..... . .... ....................... .. 79
Graphicsemonstration .. 81
WaveForm
........................ .................. ............. 82Graphics .. . . 84
85TmesEye.................... ...................... ..
3DHat 87
ye ............................................................. 89
How toWriteBetterPrograms....... .................
Glossary.
Bibliography
93
.. 99
........ 115
8/3/2019 Games for Your MSX [Preview]
10/22
8/3/2019 Games for Your MSX [Preview]
11/22
1 GAS FOR YOURMX Editor's
IntroductionTypng n a computer program s lke openng anunknown door You do not know untl you actually openthe door or n our case, run the program whateperence s watng for you Of course the sgn on thedoor has gven you some ndcaton, but nothng canequal frsthand eperence
You do not know precsely what eperences arewatng for you n the great programs n ths book Ofcourse f the ntroducton says youre enterng a spacegame ts very lkely the program wont play Guess My
Number when you get t up and runnng ut the lstngrarely hnts at the computers gameplayng strategy, orthe screen dsplay, or the fun that s watng for you
Ths book has a number of unknown doors doorsleadng nto outer space and nto the fendsh worlds ofcomputer ntellgence wzards and Adventure
Weve provded the doors and the keys All you
have to do to turn the lock s type n the program, and runt Whatever you fnd behnd each door I guarantee youwont be dsappontd
Tm Hartnellanuary 985
l l
8/3/2019 Games for Your MSX [Preview]
12/22
8/3/2019 Games for Your MSX [Preview]
13/22
llllllllll GASFORYOURMX Author's
IntroductionThe programs in ths book wll work on any of the newrange of MSX computers. Many of them use the advanced colour and graphcs facltes offered by MSX
BASIC to add interest and realsm to the games. Theyare a mxture of arcade games, strategy games andgamblng games.
Contaned wthn the lstngs are many REM statements to explan the purpose of each block of code; byreadng through the programs you may see routineswhch you wll want to ncorporate n your own pro
grams In partcular the 'Mastercode and Hangmangames contan useful strng handlng routnes for valdatng user nputs
I have tred to make the most of the commandsavalable on the MSX machnes when wrtng theseprograms, and to demonstrate just how quckly themachne works
I hope you enjoy typng the programs n and playngthem - once you have RUN a program a few tmes donthestate to change t f you thnk t can be mproved upon
Graham CarterJanuary 985
3
8/3/2019 Games for Your MSX [Preview]
14/22
8/3/2019 Games for Your MSX [Preview]
15/22
1 1t GA SFORYOURMX Program Notes
These programs should be typed n exactly as theyappear n ths boo They have been specally prnted sothat the lstngs reproduced here are dentcal to the waythey should look on your televson screen
Some of the lstngs contan specal graphcs characters There s a dagram n the manual suppled wth yourmachne whch shows where these graphcs charactersare on the keyboard and whch keys yo must press toobtan them
5
8/3/2019 Games for Your MSX [Preview]
16/22
8/3/2019 Games for Your MSX [Preview]
17/22
1 MOTORCYCLE TM !MOTORCYCLE
STUNT MANIn ths game ts on wth your crash helmet and away yougo Your oject s to ump over a lne of uses, whchchange n numer randomly every game
Press any key to start, and watch your speed ncrease
at the top of the screen. When you thnk that you havesuffcent speed to clear the lne of uses, release thekes rakes y pressng the ' key and see your key over the ramps
Ths game uses accurate formulae for thrust andvelocty If you want the speed to ncrease at a lowerrate just change the loop n lne 380 - a numer greater
than 5 wll make the speed ncrease more slowly, whlea numer less than 5 wll make the speed ncreasemore rapdly
7
8/3/2019 Games for Your MSX [Preview]
18/22
1 AE FRYRM 10 RE *********************20 RE *otorccle Stuntman*30 RE *S Vincent and *40 RE *G. Carter , 1984 *
0 RE *********************60 SCREEN 00 KE O80 COLOR 141 , 190 WIDH 38
100 RE *Instructions*
110 RE **************120 PRIN AB
8/3/2019 Games for Your MSX [Preview]
19/22
I 1 MOTORCYCLE SN : llllllll330 IF INKEY$= THEN 330
340 REM * seed unti 1 ey essed*350 REM *****************************
360 K$=INKE$370 R=RND :M=M5INT380 FOR X=1 TO 15:NEXT X
30 IF M170 THEN M=10400 OCATE 111:PRINT M" M.PH"410 IF K$1" THEN 360
420 MP=M
430 Z=RND : Z=INT440 M=M
8/3/2019 Games for Your MSX [Preview]
20/22
i 1 GASFORYOURMX :11 700 LOCATE 26:PRINT "You cleared ";BUS;" buses at"10 LOATE 68:PRINT "a speed of ";MP
; ,, M F' H ,20 OR X= TO 2000:NEXT X730 GOTO 260
40 REM *Set up screen*750 REM ***************60 CS
70 LOCATE 011 :PRINT STRING$(29"")
780 LOCATE 510:PRINT " . ":LOCATE 6 9:PRINT -
790 OR N=7 TO BS+6800 LOCATE N10:PRINT A"810 NEXT N
820 LOCATE BUS+810:PRINT "\":LOCATEUS+9:PRINT " -."
830 REM *Put bike on lef t of screen*
840 REM ****************************850 PUT SPRITE 0 130860 RETURN870 REM *Didn't mae it*880 REM ****************890 OR =1 TO 10900 LOATE .]+2 10:PRINT " ":LOCATE ]+
2 18:PRINT " "910 NEXT
920 OR X=1 TO 1000:NEXT X930 CLS940 RE *lear Sprite screen*
90 PUT SPRIE 0
8/3/2019 Games for Your MSX [Preview]
21/22
I 1 MOTORCYCLESTUMA : llllllllll1010 FOR- X=1 TO 1500:NEXT X1020 GOTO 2601030 REM *oo slo w*
1040 LOCATE 1,4:INT You we n t too s
low and 'r
1050 LOCATE 5,6:PRINT bike i s a wri t
eof f .
1060 LOCATE 3,8:FRINT Try ag ain on anew bike.
1070 OR X=1 TO 1500:NEXT X
1080 GOTO 2601090 REM *De fi ne graphics*
1100 REM *****************
1110 R$=.. ..
1120 OR N=1 TO 81130 EAD [$
1140 $=R$+CHR$
8/3/2019 Games for Your MSX [Preview]
22/22