Author Topic: Assembly code with sprites  (Read 453 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.450
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 704
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.450
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 704
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. :)