<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Wed, 24 Nov 2010 15:48:09 +1100
From   : plexer@... (James McGill)
Subject: Extracting / Encoding sprites

Thanks all, that's exactly what I was after. It turned out I had the
correct encoding in my mind, but wasn't reading far enough through the
ROM file.

Thanks for your help. This list never ceases to amaze me!

Regards,
James

On Tue, Nov 23, 2010@... AM, J.G.Harston <jgh@...> wrote:
> J.G.Harston wrote:
>> The following BASIC code will copy such a sprite to (nonshadow) screen:
>> ? ?sprite%=&2000 :REM Location of sprite
>> ? ?screen%=&3000 :REM Destination in screen
>> ? ?FOR A%=0 TO 63 STEP 4:screen%!A%=sprite%!A%:NEXT
>> ? ?FOR A%=0 TO 63 STEP 4:screen%!(A%+640)=sprite%!(A%+64):NEXT
>
> Doh! Or, of course, you could just load the ROM image straight into
> screen memory and see if anything looks familiar:
>
> ? MODE &82:*LOAD MONST-M FFFE3000
>
> 16x16 sprites will be split top half and bottom half. I can see what
> looks like a running figure, some monsters, some brick walls, and
> some blobs and numbers.
>
> BTW, it doesn't look like a ROM image, it looks like plain machine code.
>
> --
> J.G.Harston - jgh@...
>
>
> _______________________________________________
> bbc-micro mailing list
> bbc-micro@...
> http://lists.cloud9.co.uk/mailman/listinfo/bbc-micro
>
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>