The rules state that, "You can use any engine or framework you like. You can even make your own if you want." I haven't used Scratch so I wouldn't know if you can export the game.