You can use any assets you like (as long as you have the legal right to use them). This includes code assets and game samples. Obviously, and as you already mentioned, game samples need to be changed so we don't end up with multiple submissions for the exact same game (it happens) :D