亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

大魚不顯示出來,請大神幫忙支招

var?momObj?=?function()?//大魚
{	
this.x;	
this.y;
this.bigEye?=?new?Image();	
this.bigBody?=?new?Image();	
this.bigTail?=?new?Image();
}
momObj.prototype.init?=?function()
{	
this.x?=?canWidth?*?0.5;	
this.y?=?canHeight?*?0.5;	
this.bigEye.src?=?"img/bigEye0.png";	
this.bigBody.src?=?"img/bigSwim0.png";	
this.bigTail.src?=?"img/bigTail0.png";
}
momObj.prototype.draw?=?function()
{	
ctx1.save();	
ctx1.translate(this.x,this.y);	
ctx1.drawImage(this.bigEye,?-this.bigEye.width*0.5,?-this.bigEye.height*0.5);
ctx1.drawImage(this.bigBody,?-this.bigBody.width*0.5,?-this.bigBody.height*0.5);	
ctx1.drawImage(this.bigTail,?-this.bigTail.width*0.5?+?30,?-this.bigTail.height*0.5);?
ctx1.restore();
}


正在回答

2 回答

mian里的執行順序的問題正確的是

drawBackground();
fruitMonitor();
fruit.draw();
mom.draw();



0 回復 有任何疑惑可以回復我~

我粘貼復制了,這串代碼沒有問題。你看看<script type="text/javascript" src="js/mom.js"></script>寫沒有,或者mom.draw();

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

大魚不顯示出來,請大神幫忙支招

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號