スクリプトは http://d.hatena.ne.jp/nitoyon/20080929/warioland_shake からお借りしました。
http://www.nicovideo.jp/watch/sm18138965