Skip to Content
The Alchemy Project

src/scene/shared/slide_on_ice_angles.c

The headings the direction pad gives on ice, which the scenes with ice to slide on keep a copy of, both tables indexed by the pad's four bits ((PerWork.data >> 4) & 15: right, left, up, down); -1 where the keys held give no heading.

The headings the direction pad gives on ice, which the scenes with ice to slide on keep a copy of, both tables indexed by the pad's four bits ((PerWork.data >> 4) & 15: right, left, up, down); -1 where the keys held give no heading.

Included by mars_lighthouse_entrance.c, mars_lighthouse_star_room.c, mars_lighthouse_towers.c, prox.c, settlements.c and tundaria_tower.c.

Variables

NameDescription
Sint16SlideOnIceSteerAngles []The heading fdActorSteerByPad turns toward, diagonals included; a second row of sixteen keeps only the four straight headings.
Sint16SlideOnIceAnglesByKey []The heading a slide sets off in: a diagonal goes the way of its left or right key.

Description

The headings the direction pad gives on ice, which the scenes with ice to slide on keep a copy of, both tables indexed by the pad's four bits ((PerWork.data >> 4) & 15: right, left, up, down); -1 where the keys held give no heading.

Variables in detail

SlideOnIceSteerAngles

Sint16 SlideOnIceSteerAngles[]

The heading fdActorSteerByPad turns toward, diagonals included; a second row of sixteen keeps only the four straight headings.

Referenced by fdActorSteerByPad() and scMarsLighthouseTowersPushPipeOrJump().

Definition at line 8 of file slide_on_ice_angles.c.

SlideOnIceAnglesByKey

Sint16 SlideOnIceAnglesByKey[]

The heading a slide sets off in: a diagonal goes the way of its left or right key.

Referenced by fdLeaderSlideOnIce() and scLeaderSlideOnIceFromEdge().

Definition at line 45 of file slide_on_ice_angles.c.