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: 6302
Author: andrewbroad
Date: 19/11/2007
Subject: Making the JSW-tune 'worse' as lives are lost
I just posted the following message to
http://www.worldofspectrum.org/forums/showthread.php?t=18309&page=8
The tune is deliberately a function of the number of lives, as the
following code from JSW proves:
#8B4D: LD HL,#865F ; address of in-game tune
#8B50: ADD HL,DE
#8B51: LD A,(#85CC) ; number of lives
#8B54: RLCA
#8B55: RLCA
#8B56: SUB #1C
#8B58: NEG
#8B5A: ADD A,(HL) ; add #1C - lives*4 to pitch
I always thought it was cool how the tune got 'worse' - all part of
the atmosphere. Sure, it isn't a correct musical transposition (one
could implement a tone-chart to transpose each note correctly), but
it certainly builds up a sense of foreboding as you lose lives!
--
Dr. Andrew Broad
http://geocities.com/andrewbroad/
http://geocities.com/andrewbroad/spectrum/
http://geocities.com/andrewbroad/spectrum/willy/
