I'm looking to draw some images and have managed to follow the sprite routine in one of the chibi tutorials for the CPC. So I now have the start of my logo on screen and I can plonk it in the spot where I want it.
The thing i'm thinking about though is; Is this this best way to draw to the screen for a logo? or is there a quicker easier way?
Code: Select all
org &8000
ld de,&0010
ld hl,&00A0
call &BC1D
ld de,TestSprite
ld b,51
SpriteNextLine:
push hl
ld c,11 ;width
SpriteNextByte:
ld a,(de)
ld (hl),a
inc de
inc hl
dec c
jr nz,SpriteNextByte
pop hl
call &bc26
djnz SpriteNextLine
ret
TestSprite:
db %00000000,%00000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%00000000,%00000000
db %00000000,%00000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%00000000,%00000000
db %00000000,%00000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%00000000,%00000000
db %00000000,%00000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%00000000,%00000000
db %00000000,%00000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%00000000,%00000000
db %00000000,%01110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %00000000,%01110000,%11100000,%00000000,%00000000,%00000000,%00000000,%01110000,%11110000,%11110000,%10000000
db %00000000,%01110000,%11100000,%00000000,%00000000,%00000000,%00000000,%01110000,%11110000,%11110000,%10000000
db %00000000,%01110000,%11100000,%00000000,%00000000,%00000000,%00000000,%01110000,%11110000,%11110000,%10000000
db %00000000,%01110000,%11100000,%00000000,%00000000,%00000000,%00000000,%01110000,%11110000,%11110000,%10000000
db %11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%10000000,%00000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%10000000,%00000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%10000000,%00000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%10000000,%00000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11000000,%00110000,%11110000,%11110000,%11110000,%11000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11110000,%11100000,%00000000,%00000000,%00000000,%00000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11110000,%11100000,%00000000,%00000000,%00000000,%00000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11110000,%11100000,%00000000,%00000000,%00000000,%00000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11110000,%11100000,%00000000,%00000000,%00000000,%00000000,%00110000,%11110000,%11110000,%10000000
db %11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %00000000,%01110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %00000000,%01110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %00000000,%01110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %00000000,%01110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %00000000,%01110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%10000000
db %00000000,%00000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%00000000,%00000000
db %00000000,%00000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%00000000,%00000000
db %00000000,%00000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%00000000,%00000000
db %00000000,%00000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%00000000,%00000000
db %00000000,%00000000,%00110000,%11110000,%11110000,%11110000,%11110000,%11110000,%11110000,%00000000,%00000000
It's a bit large at the moment. I do have an edited down version on my home computer.
I have a feeling that this method should only be used for making sprites that move about the screen or are animated. But then again, thinking about it, it might be good for them to be sprites like this as I could then animate them slightly in the future if I wished to do so.
Everyones thoughts and feelings would be appreciated.