第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定

正在回答

1 回答

//分值計(jì)算

var dataObj = function ()?

{

this.fruitNum = 0;

this.double = 1;

this.score = 0;

this.gameOver = false;

this.alpha = 0;

}

dataObj.prototype.draw = function()

{

var w = can1.width;

var h = can1.height;


ctx1.save();

ctx1.shadoBlur = 10;

ctx1.shadowColor = "white";

ctx1.fillStyle = "white";

ctx1.fillText("分?jǐn)?shù) " + this.score, w * 0.5, h - 20);


if(this.gameOver)

{

this.alpha? += deltaTime * 0.0005;

if(this.alpha > 1)

this.alpha = 1;



ctx1.fillStyle = "rgba(255,255,255," + this.alpha +")";

ctx1.fillText("游戲結(jié)束", w * 0.5, h * 0.5);

}

ctx1.restore();


}

dataObj.prototype.addScore = function()

{

this.score += this.fruitNum * 10 * this.double;

this.fruitNum = 0;

this.double = 1;

}


0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

怎么將成績輸出到本地呢

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號