Name: CARDS.SNA
Author: Andrew Owen
Copyright: (c) 2000

Card Engine

What is it?

It's a fast full colour cards routine for the ZX Spectrum, better even than the one by Toni Baker printed in YS in my humble opinion. I don't expect it to win the competition, I just think more people will look at it if I submit it rather than just post it up on an obscure website. :)

Features:

Up to 8 by 4 columns of cards with none touching, more with overlap.
Very nice picture cards.
Whole routine and data is just over 7.5k long.
Takes background colour from BORDER.
Takes card colour from INK.
Takes top left corner position from 'PRINT AT x,y;' command (must
include ';').
POKE suit into 23728 (1-Spades, 2-Hearts, 3-Clubs, 4-Diamonds)
POKE card into 23729 (1-Ace, 2-2 etc...)
Fully error trapped.
Illegal values in either 23728 or 23729 generate a face down card.
Cards can be printed at 0-18,0-22 - illegal values print nothing.
Leaves system variables intact

Extras:

SHUFFLE.Z80 - A simple BASIC routine that quickly shuffles a deck.
BACKS.SCR - Some alternative card backs. You'll need to write your own display routine to use alternate card backs.

Fee:

It's free to use in any non-commercial program although I would appreciate a mention. For any other use please contact aowen@mail.ru

-Andrew