add some rules,fix shake animation;