Resource centre for ZX Spectrum games
using Manic Miner and Jet Set Willy game engines
Archive of the
Manic Miner & Jet Set Willy Yahoo! Group
messages
|
|
||
|
|
Message: 4486
Author: john_elliott_uk
Date: 29/09/2004
Subject: Re: Abusing Items and alternate endings
--- In manicminerandjetsetwilly@yahoogroups.com, "Alexandra"
> By the way, can someone tell me how to customize the colour
cycling?
> Is there somewhere in memory that has the start and end colour
Your answer lies at 9430h:
> values? For my unofficial Dark Tower sequel I need the items to all
> be red.
9430 3a cb 85 ld a,(85CBh)
9433 85 __ __ add a,l
9434 e6 03 __ and 3 ;A is now 0-3
9436 c6 03 __ add a,3 ;A is now 3-6, item colour
9438 4f __ __ ld c,a
9439 1a __ __ ld a,(de)
943a e6 f8 __ and 0F8h
943c b1 __ __ or c
943d 12 __ __ ld (de),a
Now, there are various tricks that can be done. To have a fixed
colour, you simply replace the 'add a,3' with 'ld a,
red, you replace the C6 03 with 3E 02.
If instead you replace E6 03 C6 03 with E6 40 C6 02, and the E6 F8
with E6 B8, you get red items which slowly go bright and dim - quite a
neat effect, particularly in the Off Licence.
Or, of course, you could base your game on the Henry's Hoard engine,
which has item colour settable by room.
