Graham Paterson shows you how to get things moving on the Amstrad CPC 464 This program demonstrates how the Amstrad can use Ink statements to obtain animation in a similar way as that on the BBC machine. I have used Mode 0 to obtain the maximum number of inks, although only seven colours are used. The overall routine draws three fans, two of which are identical in colour. Then all the Ink statements are altered in sequence to obtain the desired effect of animation. Program Notes - 20-70 Sets the origin of graphics cursor and all delays, counters and ink colour variables
- 80 Print title
- 90-100 Assigns ink colours for starting
- 110-320 Draws the Fan using different inks and colours for a particular section of the Fan
- 330 Moves to counter
- 340-370 Assigns alternate inks with respective colours
- 400-410 Checks counter
- 420-440 Depending on counter, changes graphics cursor position, the Ink number being used and its colours
- 460-520 Changes all the Ink statements to sequential colours using for next loop to slow speed down. Creates the animation
- 530-560 Sound routine for fan movement
It should be noted that this program was originally developed from one that displayed cylinders. This may be observed if the Draw command in Line 140 is change to Plot and the Rem removed in Line 150. ( PCW ★ AMSTRAD CPC ★ DOWNLOAD ★ |
|
CPCrulez[Content Management System] v8.732-desktop/c Page créée en 832 millisecondes et consultée 47 foisL'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. |
|
|