Learn Create Your Own Split Screen

Next Page

But before we draw the image, we'll adjust it's y-position so it's a little further down the screen than for the previous frame. A bit of trial-and-error showed me that with a frame-rate of 40FPS, moving 3 pixels per frame seemed about right:
melon_y = melon_y + 3;

When it gets to the bottom, it just keeps going past the limit of the visible canvas. It will travel miles and miles past the bottom, but invisible.