port the resolve_x and resolve_y functions
port doitempickups and applyinputtophysics
levelplayer: everything ported except load method