CPCWiki forum

General Category => Programming => Topic started by: nico24 on 14:33, 02 June 18

Title: Assembly code with sprites
Post by: nico24 on 14:33, 02 June 18
Are there any simple games programmed in ASM available (source) that use the sprite hardware of the plus machines?
Thanks!
Title: Re: Assembly code with sprites
Post by: AMSDOS on 23:09, 02 June 18
Anyone is welcome to add a Plus version of my simple ASM game (http://www.cpcwiki.eu/index.php/Programming:Coding_a_simple_BASIC_game_into_Assembly) onto the Wiki. I'm unfamiliar with the Plus Sprites, though there's an example of it here (http://cpctech.cpc-live.com/source/hwsprite.html), you may also want to update the scroll routine to use a Plus version, there's an example of that here (http://cpctech.cpc-live.com/source/scroll.html).
Title: Re: Assembly code with sprites
Post by: nico24 on 20: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.
Title: Re: Assembly code with sprites
Post by: AMSDOS on 12: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.
Powered by SMFPacks Menu Editor Mod