- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 大鱼吃小鱼游戏-commFunctions.js
window.requestAnimFrame = (function() { return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msReq
2015-11-13 11:07:15 626
原创 大鱼吃小鱼游戏-background.js
function drawBackground(){ ctx2.drawImage(bgPic, 0, 0, canWidth, canHeight);}
2015-11-13 11:06:14 853
原创 大鱼吃小鱼游戏-fruit.js
// 定义果实对象类 var fruitObj = function(){ this.alive = []; //果实生命状态的布尔bool this.orange = new Image(); //橙色果实 this.blue = new Image(); //蓝色果实 this.x = []; //果
2015-11-13 11:05:18 1089 1
原创 大鱼吃小鱼游戏-mom.js
var momObj = function(){ this.x ; this.y ; this.angle ; //定义角度 this.bigEye = new Image(); //鱼眼睛 //this.bigBody = new Image(); // 鱼身体 this.bigTail
2015-11-13 11:04:34 528
原创 大鱼吃小鱼游戏-baby.js
var babyObj = function(){ this.x; this.y; this.babyAngle; this.babyEye = new Image(); this.babyBody = new Image(); this.babyTail = new Image(); this.babyTailTimer = 0; thi
2015-11-13 11:03:38 650
原创 大鱼吃小鱼游戏-ane.js
// 定义海葵对象类var aneObj = function(){ this.x = []; //海葵x位置 this.len = []; //海葵长度}// 定义海葵原型对象数量aneObj.prototype.num = 50;// 海葵初始化,随机产生海葵x位置和长度aneObj.prototype.init = function(){ for
2015-11-13 10:56:34 753
原创 大鱼吃小鱼游戏-index.html -来源慕课网
<!DOCTYPE HTML><html><head> <meta charset = "utf-8"> <title>tinyHeart</title> <style type="text/css"> body { padding-top: 10px; } .all_bg{ width: 800px;
2015-11-13 10:36:39 1464
原创 大鱼吃小鱼游戏-main.js
var can1; //定义一个canvasvar can2; //定义另一个canvasvar ctx1; //定义一个画布场景,用于画fish UI dust circle...var ctx2; //定义一个画布场景,用于画背景图、海葵、果实...var canWidth; //canvas的宽var canHeight; //can
2015-11-13 10:31:29 1317
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人