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: 741
Author: john_elliott_uk
Date: 11/09/2000
Subject: Re: colours for room titles
<< another question: is it possible to
change the colour of willy? i want to do a game set
against a white background (or light colours) and i want
a black willy. i have patents pending on this idea
btw :) >>
The following bit of code
makes Willy
white:
L9629:
LD A,(80A0h)
OR 07h ;Set INK to 7
And if we replace "OR 07h" with
"AND 0F8h", the ink will be set to black. So the bytes
which go
3A A0 80 F6 07
want to
become
3A A0 80 E6 F8
A word of warning: As it
stands, this patch completely wrecks collision detection
- Willy can't pick up objects, because he's black
and the objects still expect him to be white.
It
may be possible to fix this by searching through the
game engine for the instructions
AND 7 ;Get
INK colour
CP 7 ;Is it white?
and
replacing them with
AND 7 ;Get INK
colour
CP 0 ;Is it black?
As byte sequences, these
are:
E6 07 FE 07 and E6 07 FE 00 respectively.
but
this second patch remains entirely untested; apply at
your own risk :-)
