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
| Previous message | Next message | |||
| Previous in thread | Next in thread | |||
Message: 4050
Author: kari_krisnikova
Date: 08/04/2004
Subject: Re: Resolving semantic heterogeneity for vertical guardians
andrewbroad wrote:
I now understand exactly how vertical guardians behave in MM
versus JSW (and will attempt to modify my conversion-algorithm to
accommodate the differences), but this warrants a message of its
own (PTO)...
Try not!
Do, or do not.
There is no try.
if (velocity < 0) {
top+= (startPos - top) % velocity;
bottom-= (bottom - top) % velocity;
} else {
bottom-= (bottom - startPos) % velocity;
top+= (bottom - top) % velocity;
}
if (bottom == _memoryMM.peekU(radm+v+6)) {
bottom-= velocity >= 0 ? velocity : (byte)-velocity;
}
while (startPos > bottom) {
if (velocity >= 0) velocity= (byte)-velocity;
startPos+= velocity;
}
if (startPos >= bottom && velocity >= 0) {
velocity= (byte)-velocity;
}
while (startPos < top) {
if (velocity < 0) velocity= (byte)-velocity;
startPos+= velocity;
}
if (startPos <= top && velocity < 0) {
velocity= (byte)-velocity;
}
| Previous message | Back to the Yahoo! Archive home page |
Next message | ||
| Previous in thread | Next in thread | |||
