A83: Re: controlling sprites
[Prev][Next][Index][Thread]
A83: Re: controlling sprites
Are you talking about a tilemap based game, such as Sqrxz or Penguins? To
do this you must make a tilemap, which is an "array" or block of memory in
which each byte value stands for which sprite to draw at that position.
Example:
.db 3,1,0,2
.db 1,3,2,0
.db 0,2,1,1
.db 3,2,0,0
Pretend that the letters A-D are sprites 0-3, so the screen would look like
this:
DBAC
BDCA
ACBB
DCAA
Writting a side scroller takes a long time to do and requires a good
knowledge of Z80 and the calculator you are writting it for. Something
simpler like Slippy or Insane Game would be much easier to do. Both these
games use a tilemap similar to the above. Something simplier would be
better to write first, before you try for a side scroller.
-----Original Message-----
From: Chris Hiszpanski <mecad@scv.net>
To: assembly digest <assembly-83-digest@lists.ticalc.org>
Date: Wednesday, October 28, 1998 8:52 PM
Subject: A83: controlling sprites
>
>How can I control many sprites in a background like scolling routine? To
>paste them do I just to
>
>ld hl,5*256+5
>ld (pencol),hl
>call putspr
>
>ld hl,13*256+5
>ld (pencol),hl
>call putspr
>
>a million times?
>There must be a better way.
>
>From: Chris
>mecad@scv.net
>
>