what's a scanline trick?
It's a function with the firm: scanline(line)
it's call every time an horizontal line of pixel is draw. In this way you can create some special effects. I believe is a reminiscence of some hardware interrupt of the CRT monitor era. Look at the code in the game, it's used to give that blue fade effect.