- Top Stats

Top Posters Top Topic Starters Top Topics
AMSDOS 1288
arnoldemu 1128
TFM 1124
ervin 745
ronaldo 402
AMSDOS 55
arnoldemu 51
ervin 42
EgoTrip 35
Arnaud 33
FutureOS corner - 69710 Views TFM/FS 07:12, 01 October 10
Example Z80 as... - 64891 Views arnoldemu 10:59, 04 April 10
#CPCtelera 1.4... - 32509 Views ronaldo 13:59, 11 May 15
BASIC programm... - 30010 Views arnoldemu 16:23, 22 May 09
CHAMP Assemble... - 24670 Views Bruce Abbo... 12:59, 16 January 14


Author Topic: Assembly code with sprites  (Read 701 times)

0 Members and 1 Guest are viewing this topic.

Offline nico24

  • CPC464
  • **
  • Posts: 16
  • Country: us
  • Liked: 8
Assembly code with sprites
« on: 16:33, 02 June 18 »
Are there any simple games programmed in ASM available (source) that use the sprite hardware of the plus machines?
Thanks!

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.567
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 830
Re: Assembly code with sprites
« Reply #1 on: 01:09, 03 June 18 »
Anyone is welcome to add a Plus version of my simple ASM game onto the Wiki. I'm unfamiliar with the Plus Sprites, though there's an example of it here, you may also want to update the scroll routine to use a Plus version, there's an example of that here.
* Using some of the hardly used Amstrad compilers :D
* I use Firmware in my Assembly code :P
* Have interpreted some BASIC 1.1 programs for BASIC 1.0. :)

Offline nico24

  • CPC464
  • **
  • Posts: 16
  • Country: us
  • Liked: 8
Re: Assembly code with sprites
« Reply #2 on: 22:02, 09 June 18 »
AMSDOS - thanks for your link to your wiki page. This is really useful info. I'm certainly looking through your code.

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.567
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 830
Re: Assembly code with sprites
« Reply #3 on: 14:15, 11 June 18 »
The only thing I forgot to mention about it, is it's using Text Coordinate positions for placement of the graphics and the Collision Test is done by using the Graphical position just above the Space Ships position and the 3rd pixel along to detect any on-coming rocks. Because of the nature of the program relying on Text Coordinate positions, the Collision Test only needs to Test a single point, which would definitely need at least 2 tests if the Sprite Drivers work in pixel bytes.


It's probably something I'll look into in the future with a Standard CPC Sprite Driver. My main aim here was to code something really fast, though I wasn't really getting a fast enough vertical scroller.
* Using some of the hardly used Amstrad compilers :D
* I use Firmware in my Assembly code :P
* Have interpreted some BASIC 1.1 programs for BASIC 1.0. :)