Make the terrain using sprites and SPHIT. Then genrate an obstacle every x to y pixels: NEWPOS=LASTPOS+50+RND(20)