用html5+canvas做捕魚達人游戲,我已經把單個炮體旋轉做出來了
ctx.beginPath();
ctx.translate(730,650);
ctx.rotate(arc);
ctx.drawImage(cannon1,0,0,74,74,-40,-40,74,74);
ctx.stroke();
ctx.restore();
ctx.beginPath();
ctx.drawImage(energy,845,635);
ctx.stroke();
炮體一共有7個,旁邊的按鈕我用div實現的,那點擊按鈕更換炮體應該怎么實現?canvas有dispaly么
做捕魚達人游戲
nobcainiao
2015-11-28 13:33:48