雷哥做得不錯(cuò)。我想給點(diǎn)小小的建議,在提到一些cocos2d的陌生函數(shù)的時(shí)候用一張PPT來(lái)顯示講解,強(qiáng)調(diào)一下比在一大堆代碼中來(lái)講解更能使我們印象深刻。
2017-08-29
if (sRotate==0.0) {
mRotate += 6.0;
if (mRotate>=360.0) {mRotate-=360.0;}
_minute->setRotation(mRotate);
}
if (sRotate==0.0) { //過(guò)1分鐘應(yīng)當(dāng)時(shí)針旋轉(zhuǎn)0.5°
hRotate += 0.5;
if (hRotate>=360.0) {hRotate-=360.0;}
_hour->setRotation(hRotate);
}
mRotate += 6.0;
if (mRotate>=360.0) {mRotate-=360.0;}
_minute->setRotation(mRotate);
}
if (sRotate==0.0) { //過(guò)1分鐘應(yīng)當(dāng)時(shí)針旋轉(zhuǎn)0.5°
hRotate += 0.5;
if (hRotate>=360.0) {hRotate-=360.0;}
_hour->setRotation(hRotate);
}
2017-07-25