Old School III – Another sine wave scroller made in Monkey X

Another sine wave scroller made in Monkey X. This one is more traditional..

In the video below the movement is a bit smoother since I used 15Hz update rate and fastened the video by 4x.

Below is the source code:

 

The idea behind this version is that each character is drawn with width of 1 pixel at y-coordinate that is calculated with sin from the screen x-position.

See the Font 2 PNG page for info about font.png and font.dat files.

Again, feel free to use and experiment with this code!