自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

数据通信jsj

数据通信jsj

2014-06-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除