 |
Usage: (move xm ym but)
Returns: blocked_flags
Move seems to be the builtin function to move things around on
the screen. [xm] and [ym] definitely reflect the value of the
button presses. xm < 0 is left, xm > 0 is right, ym < 0 is
up, ym > 0 is down. Bit 1 of but is a bool for the right mouse
button, but 2 is a bool for the left. A good deal of the guts
of moving someone around is _missing_ from the source, so I assume
it's done by (move). This includes setting accelerations, the
standard x += xvel, etc. I don't think move accounts for gravity,
though. Move returns whether or not the object hit something
along the way in the blocked_flags, which can be parsed with the
(blocked_*) functions.
;;------------------------------------------------------------------------
Object Function: mover
Usage: (mover xm ym but)
Returns: blocked_flags
How is mover different from move? I have no clue. I speculate,
though, that mover accounts for gravity and move does not. See
(move) for more info.
;;------------------------------------------------------------------------
Object Function: next_focus
Usage: (next_focus some_ptr)
Returns: The next item in the list
(next_focus) will, I hope, return the next item in some list of
object that have something in common, probably they're all in
range of the current object. The [some_ptr] is an object that
was recovered with either (first_focus) or a previous call to
(next_focus).
;;------------------------------------------------------------------------
... Далее >>
|