 |
Returns: -1 or +1
(toward) is short for (with_object (bg) (direction)).
;;------------------------------------------------------------------------
Object Function: try_move
Usage: (try_move x y)
Returns: blocked_flags?
I think try_move returns the blocked_flags you would have gotten had you
tried to call (move x y 0). I'm not entirely sure, though.
;;------------------------------------------------------------------------
Object Function: view_push_down
Usage: (view_push_down n)
Returns: dunno
Pushes the offset of the view down by [n] pixels? Is there a
view_push_up? view_push_left?
;;------------------------------------------------------------------------
Object Function: view_*
Usage: (view_x1), (view_y2), etc.
Returns: pixel position
* is either x1, x2, y1, y2. Returns the pixel coordinate of either
the upperleft or lowerright corner of the screen. Useful for dropping
images at absolute screen coordinates instead of game coordinates.
;;------------------------------------------------------------------------
Object Function: weapon_to_type
Usage: (weapon_to_type weapon-type)
Returns: type
Converts [weapon-type] back into the otype of the weapon. Is used
when you need to compare or set the otype based on a weapon's type.
;;------------------------------------------------------------------------
Object Function: with_obj0
Usage: (with_obj0 fun)
... Далее >>
|