最新回答 / 隨_憶
可以參考我的代碼,在gitHub上??梢栽谶@里找到https://github.com/cj96248/tinyHeart,圖片和js代碼都有,可以完美運行,不過不要直接拷貝過去啊,我也是自己敲的。
2017-07-20
最新回答 / 隨_憶
如果在寫的時候,發現有問題的,可以參考我的代碼,在gitHub上??梢栽谶@里找到https://github.com/cj96248/tinyHeart,圖片和js代碼都有,可以完美運行。
2017-07-20
最新回答 / 隨_憶
可以參考我的代碼,在gitHub上??梢栽谶@里找到https://github.com/cj96248/tinyHeart,圖片和js代碼都有,可以完美運行,不過不要直接拷貝過去啊,我也是自己敲的。
2017-07-18
最新回答 / 我想說什么來著
function drawBackground(){ ctx2.drawImage(bgPic, 0, 0, canWidth = 800, canHeight = 600);}應該是main.js中的canWidth = can1.width; canHeight = can1.canHeight;沒有獲取到值
2017-07-18
最新回答 / qq_花草組合_0
ctx2.globalAlpha = 0.6;//這個語句就是設置??耐该鞫妊?/div>
2017-07-08
最新回答 / 慕粉4373203
ane初始化方法aneObj.prototype.init=function(){ for (var i=0;i<this.num ;i++ ) { this.x[i]= i*10+Math.random()*20;//[0,1)? this.len[i]=200+Math.random()*50; // 高度 } //console.log("a");}
2017-06-14
- 課程須知
- 1、對html、css基礎知識已經掌握。 2、對JavaScript的基礎知識掌握,如數組、類、對象。
- 老師告訴你能學到什么?
- 1、html5 canvas制作游戲理念 2、html5 canvas 繪圖API 3、游戲中的碰撞檢測 4、認識幾個數學函數 5、物體池概念 6、序列幀動畫的控制
微信掃碼,參與3人拼團