★ AMSTRAD CPC ★ GAMESLIST ★ FRUIT MACHINE (HOME COMPUTING WEEKLY) (c) HOME COMPUTING WEEKLY ★ |
Home Computing Weekly |
Richard Kemley's fruit machine game is fust like the real thing — but you don't lose any money This is a fruit machine simulation, with most of the features you would expect of an arcade fruit machine, except the cally-doh payout. There is a list of the keys here, which are hopefully quite sensible. Hints on conversion If you have cither a good grasp of Amstrad BASIC or an Amstrad manual then conversion should be simple enough. Otherwise rewriting the program yourself would be a far more educational and rewarding task. It isn't too difficult a program to write anyway, but if you get stuck, you can always refer to the appropriate segment of my program. Remember to use the modular approach to programming. The best method is to first of all write down all the subroutines you think you will need, and make these into REM statements using sensible line numbers. For example, you could take my list of subroutines on this page and type them in. When you list the program you should have just a list of REMs. Then write the BASIC for these subroutines. When you have done this for all the REMs, write a control routine at the beginning which calls up all the subroutines (in the right order, remember). Using this method, debugging is amazingly simple. Use BREAKPOINTS, which are STOP statements placed strategically in a program. For example, if you have an error but don't know where it is in the program, then place a STOP statement somewhere in your control routine, then RUN the program. If the error hasn't cropped up by the time the This way you can easily isolate the faulty subroutine and fix it. This is much better than having to wade through lines of garbage programming, as I like to call it. Home Computing Weekly #119 |
|
|
Page créée en 214 millisecondes et consultée 823 fois L'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko. |