createSprite is not defined

You can create the game on game lab, then use an embed to put it in an <iframe>. However there is something called an embed: https://studio.code.org/gamelab/GAMEID/embed

I think this is a similar question.