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: 2815
Author: andrewbroad
Date: 27/04/2002
Subject: Re: The JSW Clock
James A. Ramsden wrote:
>No! JSW really does go from 11am to 12am, and from 11pm to 12pm! As
> > In the original JSW, the game starts at 7:00am, 11:59am goes to
> > 12:00am, 12:59am goes to 1:00pm, 11:59pm goes to 12:00pm, and
> > 12:59pm goes to the title-screen.
>
> i assume you mean 7:00am, 11:59am to 12:00pm, then 11:59pm to
> 12:00am
>
> right? :)
soon as the clock-updating routine detects 13 o'clock, it changes "a"
to "p" and resets the hour to " 1".
So I just decided to replace all that fiddly code with a simple
24-hour clock (which I prefer in real life, too) that really does end
the game at midnight rather than 1am! ;-)
What got me looking at the clock-updating routine in the first place
was that Goodnite Luddite uses upper-case letters only, so I had to
change "am" to "AM" and "pm" to "PM". You see, Goodnite Luddite uses
its own font, and since all the room-titles are in upper case anyway,
I decided to sacrifice ASCII codes 96-127 (including all the
lower-case letters) in order to reclaim the memory for an extra
sprite-page of 16x16 graphics.
I never finished testing my 24-hour clock yesterday, as I reached
midnight in the real world before midnight in the game! ;-( Oh well,
at least I can start the experiment again at 18:00, since all you have
to do to change the start-time is to modify the string " 7:00a" at
addresses 34181-34186 (or in the case of my 24-hour clock, "07:00 ").
--
Andrew Broad
http://www.cs.man.ac.uk/~broada/
http://www.cs.man.ac.uk/~broada/spectrum/
http://www.cs.man.ac.uk/~broada/spectrum/willy/
