Thanks for the nice words Max.
The effect is a raster one. I am modifying the Y scroll each line using a table with the desired effect Y delta values.
More info about other effects here:
It is for MegaDrive, but some of them can be used in other tiled/sprites video game consoles.