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: 6640
Author: rogernorth84
Date: 24/02/2010
Subject: Conveyor patch
I've been trying to write a patch which would reverse the direction of the conveyor in a particular room at regular intervals.
I have been partially successful in that I can reverse the visible animation of the conveyor every 2 seconds or so but the effective conveyor direction remains.
The subroutine acts on the working copy of the room data in the 64[ variant by toggling the animation direction bits at #80D6 between 00 and 01. This works perfectly.
The conveyor is 12 cells in length and occupies addresses #83D4 to #83D9 so I then also successfully toggle the value of these between #66 and #77 at the same time. A check on the contents of these addresses shows that they are being correctly changed.
The actual conveyor direction remains at cell type 6 (left) however so I'm guessing that the initial setting has been copied elsewhere and, unlike the animation, is not updated by further reference to the working room data.
Where should I be looking to toggle the properties of these cells please?
