$this->speed -=10;不应该是$this->speed -=0;吗?
$this->speed-=10相当于属性$speed = $speed -10;即每次减速10,$this->speed-=0的话就是匀速了