APPLICATIONSPROGRAMMATION ★ SPRITE DRIVER (AMSTRAD ACTION) ★

Sprite Driver (Amstrad Action)Sean Mcmanus Software Collection
★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se presenta en su versión original ★ 
 ★ Dieser Text wird in seiner Originalfassung präsentiert ★ 

Sean McManus of Stevenage, Herts., has come up with a program in response to recent pleas within the pages of AA. His Sprite Driver program is just the thing to liven up your BASIC games.

The sprites are full colour XORed sprites (print the same again to delete the original), and are limited to using text co-ordinates. The sprites are referred to as numbers from zero to 126. They must first be created. Use any art package, programming language or sprite definer as long as they can be put up onto the screen from BASIC.

The GRAB command can be used to lift the graphic from the screen and store it for use with the sprites. The information it needs is X co-ordinate, Y co-ordinate, Width in bytes, Height in pixels and address in memory to store it.

  • |GRAB,x,y,w,h,a The sprites are defined with SDEF. It links each Sprite number with the Address it's been grabbed to.
  • |SDEF, s, a To print a sprite onto the screen the SPRITE command is used. Just tell it the Sprite number and the X and Y co-ordinates to position it to.
  • |SPRITE, s,x,y X and Y co-ordinates start at the top left of the screen (0,0) and extend to the bottom right (79,24).

The program launches straight into a demonstration. You can save the RSXs as a block of code with SAVE "code",b,40000,272. Reload it with:

  • memory 39999 :LOAD"code": call 40000

AA

★ PUBLISHER: Amstrad Action
★ YEAR: 1990
★ CONFIG: 64K + AMSDOS
★ LANGUAGE:
★ LiCENCE: LISTING
★ AUTHOR: Sean McManus
 

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listing:
» Sprite  Driver    (Amstrad  Action)    ENGLISHDATE: 2020-04-29
DL: 191
TYPE: ZIP
SiZE: 5Ko
NOTE: 40 Cyls
.HFE: Χ

★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
» Applications » RSX XBOS (CPC Magazin)
» Applications » Instant Access
» Applications » RSX Professional
» Applications » RSX Charsave/Charload (Computer Schau)
» Applications » Custom RSX Manager (Popular Computing Weekly)
» Applications » BankRSX
Je participe au site:
» Vous avez des infos personnel ?
» Vous avez remarqué une erreur dans ce texte ?
» Aidez-nous à améliorer cette page : en nous contactant via le forum ou par email.

CPCrulez[Content Management System] v8.7-desktop/c
Page créée en 210 millisecondes et consultée 1741 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.