Based on the "Scrolling Game" project suggested by the Creative Computing guide. See http://scratched.gse.harvard.edu/guide/files/CreativeComputing20141015.pdf. The "Flappy Parrot" project by Code Club is similar. See https://codeclubprojects.org/en-GB/scratch/flappy-parrot.