Prev: C82B Up: Map Next: C855
C83E: Read the controls and act on them
Used by the routine at upd_player_bottom.
The player's turn, in order: change between man and werewolf if the sun or moon says so, read the controls into C (bit 0 left, 1 right, 2 forward or up, 3 jump, 4 pick up or drop, or down on a joystick), pick up or drop, turn, jump, and step the legs. Then, if the player is standing in a doorway -- past the line of the room's walls -- plyr_OOB forbids any upward movement before the move is made.
player_controls C83E CALL chk_and_init_transform day or night may change the player's form
C841 CALL check_user_input C = the controls this frame
C844 CALL handle_pickup_drop
C847 CALL handle_left_right turn, jump, and walk
C84A CALL handle_jump
C84D CALL handle_forward
C850 CALL chk_plyr_OOB no carry: in a doorway, beyond the walls
C853 JR NC,plyr_OOB
Prev: C82B Up: Map Next: C855