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: 6007

Author: equin0x80

Date: 29/12/2006

Subject: "Speed" of horizontal guardians

Description:

Uploaded by:

File:

 

The JSW Tech Page doesn't mention any flag in the "horizontal
guardian" block indicating the guardian's speed (i.e. movement "step
size" in pixels per cycle).

When originally testing, I used a four-pixel offset, i.e.
x += movingLeft ? -4 : 4;
but that was just an arbitrary value that looked almost right (though
it made the Abbey monks do a hypnotic jerky dance).

I also noticed that the Bathroom dumbbells were sailing along
constantly instead of rolling on the spot and *then* falling forward,
so I changed my four-pixels-per-frame to 16-pixels-per-animation-loop
(i.e. animate fully on the spot and then move), which still didn't
look right.

JSW Tech Page mentions offset 2 is "reserved" and 4 "not used" in the
horizontal guardian flags, so I tried using either of those as a step
size, but then the guardians just animated on the spot, so those
values always seem to be zero.

Where should I be looking for this horizontal movement value? I
basically want the equivalent of offset 4 in a vertical guardian
block.

Eq.

 

 

arrowleft
arrowright