├── alipay
├── 靶标系统.png
└── index.html
├── assets
├── tank.png
├── alipay.png
├── brush.png
├── heart.png
├── snake.png
├── zhihu.png
├── evan-you.png
├── game2048.png
├── globule.png
├── love-time.png
├── side-text.png
├── universe.png
├── five-chess.png
├── man-down100.png
├── photo-wall.png
└── look-def-color.png
├── love-time
├── renxi.mp3
├── renxi
│ ├── default.css
│ ├── jscex.min.js
│ ├── functions.js
│ ├── jscex-builderbase.min.js
│ ├── jscex-async-powerpack.min.js
│ └── jscex-async.min.js
└── index.html
├── photo-wall
└── a
│ ├── a.mp3
│ ├── 14915.jpg
│ ├── iali0.jpg
│ ├── iali2.jpg
│ ├── iali3.jpg
│ ├── iali4.jpg
│ ├── iali5.jpg
│ ├── iali6.jpg
│ ├── iali8.gif
│ ├── iali9.jpg
│ ├── iali10.gif
│ ├── iali11.jpg
│ ├── iali12.jpg
│ ├── iali14.jpg
│ ├── iali16.jpg
│ ├── iali18.jpg
│ ├── iali19.jpg
│ ├── iali20.jpg
│ ├── iali21.jpg
│ ├── iali22.jpg
│ ├── iali24.jpg
│ ├── iali25.jpg
│ ├── iali29.jpg
│ ├── iali30_1.jpg
│ ├── iali30_2.jpg
│ ├── iali31.jpg
│ ├── iali32.jpg
│ ├── iali35.jpg
│ ├── iali37.jpg
│ ├── iali40.jpg
│ ├── iali42.jpg
│ ├── iali44.jpg
│ ├── iali45.jpg
│ ├── iali46.jpg
│ ├── iali49.jpg
│ ├── iali50_1.jpg
│ ├── iali50_2.jpg
│ ├── iali51.jpg
│ ├── iali57.gif
│ ├── iali58.jpg
│ ├── iali59.png
│ ├── iali60.jpg
│ ├── iali62.jpg
│ ├── iali63.jpg
│ ├── iali64.jpg
│ ├── iali65.jpg
│ ├── iali66.jpg
│ ├── iali67.jpg
│ ├── iali68.jpg
│ ├── iali69.jpg
│ ├── iali71.jpg
│ ├── iali75.jpg
│ ├── iali76.gif
│ ├── iali77.jpg
│ ├── iali59_002.png
│ ├── core.php
│ ├── love.js
│ └── stat.php
├── tank
├── audio
│ ├── move.mp3
│ ├── prop.mp3
│ ├── start.mp3
│ ├── attack.mp3
│ ├── tankCrack.mp3
│ ├── bulletCrack.mp3
│ └── playerCrack.mp3
├── images
│ ├── menu.gif
│ ├── Thumbs.db
│ └── tankAll.gif
├── js
│ ├── num.js
│ ├── Helper.js
│ ├── keyboard.js
│ ├── crackAnimation.js
│ ├── menu.js
│ ├── stage.js
│ ├── const.js
│ ├── prop.js
│ ├── bullet.js
│ ├── map.js
│ ├── Collision.js
│ └── tank.js
└── index.html
├── man-down100
├── img
│ ├── baozi.png
│ ├── block.png
│ ├── flip.png
│ ├── man.png
│ ├── move.png
│ ├── thorn.png
│ ├── game_bg.png
│ ├── icons_btn.png
│ └── thorn_bg.png
├── css
│ ├── myreset.css
│ └── index.css
├── index.html
└── js
│ ├── person.js
│ ├── index.js
│ └── block.js
├── look-def-color
├── js
│ ├── .DS_Store
│ ├── color1.js
│ ├── app.js
│ └── game.js
├── css
│ ├── .DS_Store
│ └── m.min.css
├── img
│ ├── black1.png
│ └── black2.png
└── index.html
├── five-chess
├── css
│ ├── FiveChess.css
│ └── myreset.css
├── index.html
└── js
│ ├── html5.js
│ └── FiveChess.js
├── heart
├── style
│ ├── default.css
│ ├── functions.js
│ └── garden.js
└── index.html
├── evan-you
└── index.html
├── side-text
├── css
│ ├── normalize.css
│ └── style.css
└── index.html
├── globule
└── index.html
├── universe
└── index.html
├── README.md
├── zhihu
└── index.html
├── brush
└── index.html
└── snake
└── index.html
/alipay/靶标系统.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/alipay/靶标系统.png
--------------------------------------------------------------------------------
/assets/tank.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/tank.png
--------------------------------------------------------------------------------
/assets/alipay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/alipay.png
--------------------------------------------------------------------------------
/assets/brush.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/brush.png
--------------------------------------------------------------------------------
/assets/heart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/heart.png
--------------------------------------------------------------------------------
/assets/snake.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/snake.png
--------------------------------------------------------------------------------
/assets/zhihu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/zhihu.png
--------------------------------------------------------------------------------
/assets/evan-you.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/evan-you.png
--------------------------------------------------------------------------------
/assets/game2048.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/game2048.png
--------------------------------------------------------------------------------
/assets/globule.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/globule.png
--------------------------------------------------------------------------------
/assets/love-time.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/love-time.png
--------------------------------------------------------------------------------
/assets/side-text.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/side-text.png
--------------------------------------------------------------------------------
/assets/universe.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/universe.png
--------------------------------------------------------------------------------
/love-time/renxi.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/love-time/renxi.mp3
--------------------------------------------------------------------------------
/photo-wall/a/a.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/a.mp3
--------------------------------------------------------------------------------
/tank/audio/move.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/tank/audio/move.mp3
--------------------------------------------------------------------------------
/tank/audio/prop.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/tank/audio/prop.mp3
--------------------------------------------------------------------------------
/tank/audio/start.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/tank/audio/start.mp3
--------------------------------------------------------------------------------
/tank/images/menu.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/tank/images/menu.gif
--------------------------------------------------------------------------------
/assets/five-chess.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/five-chess.png
--------------------------------------------------------------------------------
/assets/man-down100.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/man-down100.png
--------------------------------------------------------------------------------
/assets/photo-wall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/photo-wall.png
--------------------------------------------------------------------------------
/photo-wall/a/14915.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/14915.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali0.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali0.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali2.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali3.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali4.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali5.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali6.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali8.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali8.gif
--------------------------------------------------------------------------------
/photo-wall/a/iali9.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali9.jpg
--------------------------------------------------------------------------------
/tank/audio/attack.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/tank/audio/attack.mp3
--------------------------------------------------------------------------------
/tank/images/Thumbs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/tank/images/Thumbs.db
--------------------------------------------------------------------------------
/assets/look-def-color.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/assets/look-def-color.png
--------------------------------------------------------------------------------
/man-down100/img/baozi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/man-down100/img/baozi.png
--------------------------------------------------------------------------------
/man-down100/img/block.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/man-down100/img/block.png
--------------------------------------------------------------------------------
/man-down100/img/flip.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/man-down100/img/flip.png
--------------------------------------------------------------------------------
/man-down100/img/man.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/man-down100/img/man.png
--------------------------------------------------------------------------------
/man-down100/img/move.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/man-down100/img/move.png
--------------------------------------------------------------------------------
/man-down100/img/thorn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/man-down100/img/thorn.png
--------------------------------------------------------------------------------
/photo-wall/a/iali10.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali10.gif
--------------------------------------------------------------------------------
/photo-wall/a/iali11.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali11.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali12.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali12.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali14.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali14.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali16.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali16.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali18.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali18.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali19.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali19.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali20.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali20.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali21.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali21.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali22.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali22.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali24.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali24.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali25.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali25.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali29.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali29.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali30_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali30_1.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali30_2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali30_2.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali31.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali31.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali32.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali32.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali35.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali35.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali37.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali37.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali40.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali40.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali42.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali42.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali44.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali44.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali45.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali45.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali46.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali46.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali49.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali49.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali50_1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali50_1.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali50_2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali50_2.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali51.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali51.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali57.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali57.gif
--------------------------------------------------------------------------------
/photo-wall/a/iali58.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali58.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali59.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali59.png
--------------------------------------------------------------------------------
/photo-wall/a/iali60.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali60.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali62.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali62.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali63.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali63.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali64.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali64.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali65.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali65.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali66.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali66.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali67.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali67.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali68.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali68.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali69.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali69.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali71.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali71.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali75.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali75.jpg
--------------------------------------------------------------------------------
/photo-wall/a/iali76.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali76.gif
--------------------------------------------------------------------------------
/photo-wall/a/iali77.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali77.jpg
--------------------------------------------------------------------------------
/tank/audio/tankCrack.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/tank/audio/tankCrack.mp3
--------------------------------------------------------------------------------
/tank/images/tankAll.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/tank/images/tankAll.gif
--------------------------------------------------------------------------------
/look-def-color/js/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/look-def-color/js/.DS_Store
--------------------------------------------------------------------------------
/man-down100/img/game_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/man-down100/img/game_bg.png
--------------------------------------------------------------------------------
/photo-wall/a/iali59_002.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/photo-wall/a/iali59_002.png
--------------------------------------------------------------------------------
/tank/audio/bulletCrack.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/tank/audio/bulletCrack.mp3
--------------------------------------------------------------------------------
/tank/audio/playerCrack.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/tank/audio/playerCrack.mp3
--------------------------------------------------------------------------------
/look-def-color/css/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/look-def-color/css/.DS_Store
--------------------------------------------------------------------------------
/look-def-color/img/black1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/look-def-color/img/black1.png
--------------------------------------------------------------------------------
/look-def-color/img/black2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/look-def-color/img/black2.png
--------------------------------------------------------------------------------
/man-down100/img/icons_btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/man-down100/img/icons_btn.png
--------------------------------------------------------------------------------
/man-down100/img/thorn_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bxm0927/canvas-special/HEAD/man-down100/img/thorn_bg.png
--------------------------------------------------------------------------------
/five-chess/css/FiveChess.css:
--------------------------------------------------------------------------------
1 | @charset "utf-8";
2 | body {
3 | background: #ccc;
4 | }
5 | canvas {
6 | position: absolute;
7 | top: 50%;
8 | left: 50%;
9 | margin: -225px 0 0 -225px;
10 | background: #fff;
11 | box-shadow: 5px 5px 100px #aaa;
12 | }
--------------------------------------------------------------------------------
/tank/js/num.js:
--------------------------------------------------------------------------------
1 | var Num = function(context){
2 | this.ctx = context;
3 | this.size = 14;
4 |
5 | this.draw = function(num,x,y){
6 | var tempX = x;
7 | var tempY = y;
8 | var tempNumArray = [];
9 | if(num == 0){
10 | tempNumArray.push(0);
11 | }else{
12 | while(num > 0){
13 | tempNumArray.push(num % 10);
14 | num = parseInt(num/10);
15 | }
16 | }
17 | for(var i=tempNumArray.length-1;i>=0;i--){
18 | tempX = x+(tempNumArray.length-i-1) * this.size;
19 | this.ctx.drawImage(RESOURCE_IMAGE,POS["num"][0]+tempNumArray[i]*14,POS["num"][1],this.size, this.size,tempX, tempY,this.size, this.size);
20 |
21 | }
22 | };
23 |
24 | };
--------------------------------------------------------------------------------
/man-down100/css/myreset.css:
--------------------------------------------------------------------------------
1 | /* 维护:白小明
2 | * 版本:v1.0 | 2016.12.01
3 | * 理念:清除和重置是紧密不可分的
4 | * 特色:适应中文,基于最新主流浏览器*/
5 |
6 | /* 清除内外边距 */
7 | @charset "utf-8";
8 | body, h1, h2, h3, h4, h5, h6, hr, p, blockquote,
9 | pre,dl, dt, dd, ul, ol, li,
10 | fieldset, lengend, button, input, textarea,
11 | th, td { margin: 0; padding: 0; }
12 |
13 | /* 重置格式元素 */
14 | ul, ol { list-style: none; }
15 | a { text-decoration: none; }
16 | a:hover { text-decoration: underline; }
17 | q:before, q:after { content: ''; }
18 |
19 | /* 重置表单元素 */
20 | legend { color: #000; } /* for ie6 */
21 | button, input, select, textarea { font-size: 100%; } /* 使得表单元素在 ie 下能继承字体大小 */
22 |
23 | /* 重置表格元素 */
24 | table { border-collapse: collapse; border-spacing: 0; }
--------------------------------------------------------------------------------
/five-chess/css/myreset.css:
--------------------------------------------------------------------------------
1 | /*
2 | 维护:白小明
3 | 版本:v1.0 | 2016113
4 | 理念:清除和重置是紧密不可分的
5 | 特色:适应中文,基于最新主流浏览器
6 | */
7 |
8 | /* 清除内外边距 */
9 | @charset "utf-8";
10 | body, h1, h2, h3, h4, h5, h6, hr, p, blockquote,
11 | pre,dl, dt, dd, ul, ol, li,
12 | fieldset, lengend, button, input, textarea,
13 | th, td { margin: 0; padding: 0; }
14 |
15 | /* 重置格式元素 */
16 | ul, ol { list-style: none; }
17 | a { text-decoration: none; }
18 | a:hover { text-decoration: underline; }
19 | q:before, q:after { content: ''; }
20 |
21 | /* 重置表单元素 */
22 | legend { color: #000; } /* for ie6 */
23 | button, input, select, textarea { font-size: 100%; } /* 使得表单元素在 ie 下能继承字体大小 */
24 |
25 | /* 重置表格元素 */
26 | table { border-collapse: collapse; border-spacing: 0; }
--------------------------------------------------------------------------------
/love-time/renxi/default.css:
--------------------------------------------------------------------------------
1 | body{margin:0;padding:0;background:#ffe;font-size:14px;font-family:'微软雅黑','宋体',sans-serif;color:#231F20;overflow:auto}
2 | a {color:#000;font-size:14px;}
3 | #main{width:100%;}
4 | #wrap{position:relative;margin:0 auto;width:1100px;height:680px;margin-top:10px;}
5 | #text{width:400px;height:425px;left:60px;top:80px;position:absolute;}
6 | #code{display:none;font-size:16px;}
7 | #clock-box {position:absolute;left:60px;top:550px;font-size:28px;display:none;}
8 | #clock-box a {font-size:28px;text-decoration:none;}
9 | #clock{margin-left:48px;}
10 | #clock .digit {font-size:64px;}
11 | #canvas{margin:0 auto;width:1100px;height:680px;}
12 | #error{margin:0 auto;text-align:center;margin-top:60px;display:none;}
13 | .hand{cursor:pointer;}
14 | .say{margin-left:5px;}
15 | .space{margin-right:150px;}
16 |
--------------------------------------------------------------------------------
/love-time/renxi/jscex.min.js:
--------------------------------------------------------------------------------
1 | (function(){var b={DEBUG:1,INFO:2,WARN:3,ERROR:4},d=function(){this.level=b.WARN};d.prototype={log:function(a){try{console.log(a)}catch(b){}},debug:function(a){this.level<=b.DEBUG&&this.log(a)},info:function(a){this.level<=b.INFO&&this.log(a)},warn:function(a){this.level<=b.WARN&&this.log(a)},error:function(a){this.level<=b.ERROR&&this.log(a)}};var e=function(a){var b=[],c;for(c in a)b.push(c);return b},c=function(a){a._forInKeys=e;a.Logging={Logger:d,Level:b};a.logger=new d;a.modules={};a.binders=
2 | {};a.builders={}},f=typeof define==="function"&&!define.amd,g=typeof require==="function"&&typeof define==="function"&&define.amd;typeof require==="function"&&typeof module!=="undefined"&&module.exports?c(module.exports):f?define("jscex",function(a,b,d){c(d.exports)}):g?define("jscex",function(){var a={};c(a);return a}):(typeof Jscex=="undefined"&&(Jscex={}),c(Jscex))})();
3 |
--------------------------------------------------------------------------------
/five-chess/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Document
6 |
7 |
8 |
9 |
10 |
11 |
12 |
15 |
16 |
17 |
18 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/tank/js/Helper.js:
--------------------------------------------------------------------------------
1 |
2 | /**
3 | * 数组删除某个元素
4 | * @param arg 元素
5 | * @returns
6 | */
7 | Array.prototype.remove = function(arg){
8 | var i=0,n=0;
9 | var arrSize = this.length;
10 | for(i=0;i this.frame * gaptime - parseInt(gaptime/2)){
32 | this.tempDir = -1;
33 | }
34 | if(this.times <= 0){
35 | this.isOver = true;
36 | }
37 | };
38 | };
--------------------------------------------------------------------------------
/tank/js/menu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 游戏开始菜单
3 | **/
4 |
5 | var Menu = function(context){
6 | this.ctx = context;
7 | this.x = 0;
8 | this.y = SCREEN_HEIGHT;
9 | this.selectTank = new SelectTank();
10 | this.playNum = 1;
11 | this.times = 0;
12 |
13 | /**
14 | * 画菜单
15 | */
16 | this.draw = function(){
17 | this.times ++ ;
18 | var temp = 0;
19 | if( parseInt(this.times / 6) % 2 == 0){
20 | temp = 0;
21 | }else{
22 | temp = this.selectTank.size;
23 | }
24 | if(this.y <= 0){
25 | this.y = 0;
26 | }else{
27 | this.y -= 5;
28 | }
29 | this.ctx.clearRect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
30 | this.ctx.save();
31 | //画背景
32 | this.ctx.drawImage(MENU_IMAGE, this.x, this.y);
33 | //画选择坦克
34 | this.ctx.drawImage(RESOURCE_IMAGE,POS["selectTank"][0],POS["selectTank"][1] + temp,this.selectTank.size,this.selectTank.size,
35 | this.selectTank.x,this.y + this.selectTank.ys[this.playNum-1],this.selectTank.size,this.selectTank.size);
36 | this.ctx.restore();
37 | };
38 |
39 | /**
40 | * 选择坦克上下移动
41 | */
42 | this.next = function(n){
43 | this.playNum += n;
44 | if(this.playNum > 2){
45 | this.playNum = 1;
46 | }else if(this.playNum < 1){
47 | this.playNum = 2;
48 | }
49 | };
50 | };
--------------------------------------------------------------------------------
/man-down100/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 是男人就下100层
6 |
7 |
8 |
9 |
10 |
11 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 第 0 层
21 |
22 |
23 |
27 |
28 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/tank/js/stage.js:
--------------------------------------------------------------------------------
1 |
2 | var Stage = function(context,l){
3 | this.ctx = context;
4 | this.ctx.fillStyle = "#7f7f7f";
5 | this.drawHeigth = 15;
6 | this.level = l;
7 | this.temp = 0;
8 | this.dir = 1; //中间切换的方向,1:合上,2:展开
9 | this.isReady = false;//标识地图是否已经画好
10 | this.levelNum = new Num(context);
11 |
12 | this.init = function(level){
13 | this.dir = 1;
14 | this.isReady = false;
15 | this.level = level;
16 | this.temp = 0;
17 | };
18 |
19 | this.draw = function(){
20 | if(this.dir == 1){
21 |
22 | //temp = 15*15 灰色屏幕已经画完
23 | if(this.temp == 225){
24 | //78,14为STAGE字样在图片资源中的宽和高,194,208为canvas中的位置
25 | this.ctx.drawImage(RESOURCE_IMAGE, POS["stageLevel"][0], POS["stageLevel"][1], 78, 14, 194, 208, 78, 14);
26 | //14为数字的宽和高,308, 208为canvas中的位置
27 | this.levelNum.draw(this.level,308, 208);
28 | //this.ctx.drawImage(RESOURCE_IMAGE,POS["num"][0]+this.level*14,POS["num"][1],14, 14,308, 208,14, 14);
29 | //绘制地图,调用main里面的方法
30 | initMap();
31 |
32 | }else if(this.temp == 225 + 600){
33 | //600即调用了600/15次,主要用来停顿
34 | this.temp = 225;
35 | this.dir = -1;
36 | START_AUDIO.play();
37 | }else{
38 | this.ctx.fillRect(0, this.temp, 512, this.drawHeigth);
39 | this.ctx.fillRect(0, 448 - this.temp - this.drawHeigth , 512, this.drawHeigth);
40 | }
41 | }else{
42 | if(this.temp >= 0){
43 | this.ctx.clearRect(0, this.temp , 512, this.drawHeigth);
44 | this.ctx.clearRect(0, 448 - this.temp - this.drawHeigth, 512, this.drawHeigth);
45 | }else{
46 | this.isReady = true;
47 | }
48 | }
49 | this.temp += this.drawHeigth * this.dir;
50 | };
51 | };
--------------------------------------------------------------------------------
/evan-you/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Document
7 |
8 |
9 |
10 |
11 |
12 |
66 |
67 |
68 |
69 |
--------------------------------------------------------------------------------
/look-def-color/js/color1.js:
--------------------------------------------------------------------------------
1 | !function() {
2 | var box = $("#box"), span = "span",
3 | e = {
4 | lvT: _lang[_config.lang].lv_txt,
5 | render: function(e, f) {
6 | var g = _config.color.lvMap[f] || _.last(_config.color.lvMap);
7 | this.d = 15 * Math.max(9 - g, 1);
8 | this.d = f > 20 ? 10 : this.d;
9 | this.d = f > 40 ? 8 : this.d;
10 | this.d = f > 50 ? 5 : this.d;
11 | var h = Math.floor(Math.random() * e * e),
12 | i = this.getColor(255 - this.d), //干扰色
13 | j = this.getLvColor(i[0]); //目标颜色
14 |
15 | box.find(span).css("background-color", i[1]);
16 | box.find(span).eq(h).css("background-color", j[1]).data("type", "a");
17 |
18 |
19 | },getColor: function(a) {
20 | var b = [
21 | Math.round(Math.random() * a),
22 | Math.round(Math.random() * a),
23 | Math.round(Math.random() * a)
24 | ],
25 | c = "rgb(" + b.join(",") + ")";
26 | return [b, c]
27 | },getLvColor: function(a) {
28 | var b = this.d, c = _.map(a, function(a) {
29 | return a + b + 10
30 | }),
31 | d = "rgb(" + c.join(",") + ")";
32 | return [c, d]
33 | },
34 | getGameOverText: function(lv) {
35 | var b = 20 > lv ? 0 : Math.ceil((lv - 20) / 10);
36 | var c = this.lvT[b] || _.last(this.lvT);
37 | var d = c+"lv"+lv;
38 | return {txt: d}
39 | }};
40 | API.color = e
41 | }();
--------------------------------------------------------------------------------
/tank/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
28 |
29 |
30 |
31 |
操作说明:玩家1:wasd上左下右,space射击;玩家2:方向键,enter射击。n下一关,p上一关。
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/love-time/renxi/functions.js:
--------------------------------------------------------------------------------
1 | /*
2 | * http://love.hackerzhou.me
3 | */
4 |
5 | // variables
6 | var $win = $(window);
7 | var clientWidth = $win.width();
8 | var clientHeight = $win.height();
9 |
10 | $(window).resize(function() {
11 | var newWidth = $win.width();
12 | var newHeight = $win.height();
13 | if (newWidth != clientWidth && newHeight != clientHeight) {
14 | location.replace(location);
15 | }
16 | });
17 |
18 | (function($) {
19 | $.fn.typewriter = function() {
20 | this.each(function() {
21 | var $ele = $(this), str = $ele.html(), progress = 0;
22 | $ele.html('');
23 | var timer = setInterval(function() {
24 | var current = str.substr(progress, 1);
25 | if (current == '<') {
26 | progress = str.indexOf('>', progress) + 1;
27 | } else {
28 | progress++;
29 | }
30 | $ele.html(str.substring(0, progress) + (progress & 1 ? '_' : ''));
31 | if (progress >= str.length) {
32 | clearInterval(timer);
33 | }
34 | }, 75);
35 | });
36 | return this;
37 | };
38 | })(jQuery);
39 |
40 | function timeElapse(date){
41 | var current = Date();
42 | var seconds = (Date.parse(current) - Date.parse(date)) / 1000;
43 | var days = Math.floor(seconds / (3600 * 24));
44 | seconds = seconds % (3600 * 24);
45 | var hours = Math.floor(seconds / 3600);
46 | if (hours < 10) {
47 | hours = "0" + hours;
48 | }
49 | seconds = seconds % 3600;
50 | var minutes = Math.floor(seconds / 60);
51 | if (minutes < 10) {
52 | minutes = "0" + minutes;
53 | }
54 | seconds = seconds % 60;
55 | if (seconds < 10) {
56 | seconds = "0" + seconds;
57 | }
58 | var result = "第 " + days + " 天 " + hours + " 小时 " + minutes + " 分钟 " + seconds + " 秒";
59 | $("#clock").html(result);
60 | }
61 |
--------------------------------------------------------------------------------
/side-text/css/normalize.css:
--------------------------------------------------------------------------------
1 | html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}
2 |
--------------------------------------------------------------------------------
/love-time/renxi/jscex-builderbase.min.js:
--------------------------------------------------------------------------------
1 | (function(){var j=function(){};j.prototype={Loop:function(b,c,a,d){return{next:function(e,i){var f=function(b){a.next(e,function(a,e){if(a=="normal"||a=="continue")g(b);else if(a=="throw"||a=="return")i(a,e);else if(a=="break")i("normal");else throw Error('Invalid type for "Loop": '+a);})},g=function(a){try{c&&!a&&c.call(e),!b||b.call(e)?f(!1):i("normal")}catch(d){i("throw",d)}};d?f(!0):g(!0)}}},Delay:function(b){return{next:function(c,a){try{b.call(c).next(c,a)}catch(d){a("throw",d)}}}},Combine:function(b,
2 | c){return{next:function(a,d){b.next(a,function(b,i,f){if(b=="normal")try{c.next(a,d)}catch(g){d("throw",g)}else d(b,i,f)})}}},Return:function(b){return{next:function(c,a){a("return",b)}}},Normal:function(){return{next:function(b,c){c("normal")}}},Break:function(){return{next:function(b,c){c("break")}}},Continue:function(){return{next:function(b,c){c("continue")}}},Throw:function(b){return{next:function(c,a){a("throw",b)}}},Try:function(b,c,a){return{next:function(d,e){b.next(d,function(b,f,g){if(b!=
3 | "throw"||!c)a?a.next(d,function(a,c,d){a=="normal"?e(b,f,g):e(a,c,d)}):e(b,f,g);else if(c){var h;try{h=c.call(d,f)}catch(j){a?a.next(d,function(a,b,c){a=="normal"?e("throw",j):e(a,b,c)}):e("throw",j)}h&&h.next(d,function(b,c,f){b=="throw"?a?a.next(d,function(a,d,g){a=="normal"?e(b,c,f):e(a,d,g)}):e(b,c,f):a?a.next(d,function(a,d,g){a=="normal"?e(b,c,f):e(a,d,g)}):e(b,c,f)})}else a.next(d,function(a,c,d){a=="normal"?e(b,f,g):e(a,c,d)})})}}}};var h=function(b){if(!b.modules)b.modules={};if(!b.modules.builderbase)b.modules.builderbase=
4 | !0,b.BuilderBase=j},k=typeof define==="function"&&!define.amd,l=typeof require==="function"&&typeof define==="function"&&define.amd;if(typeof require==="function"&&typeof module!=="undefined"&&module.exports)module.exports.init=h;else if(k)define("jscex-builderbase",function(b,c,a){a.exports.init=h});else if(l)define("jscex-builderbase",function(){return{init:h}});else{if(typeof Jscex==="undefined")throw Error('Missing the root object, please load "jscex" module first.');h(Jscex)}})();
5 |
--------------------------------------------------------------------------------
/alipay/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Document
6 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |

72 |
73 |
74 |
75 |
76 |
77 |
90 |
91 |
--------------------------------------------------------------------------------
/tank/js/const.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 静态变量
3 | */
4 |
5 | var SCREEN_WIDTH = 512; //屏幕宽
6 | var SCREEN_HEIGHT = 448;//屏幕高
7 |
8 |
9 | /**************图片资源*****************/
10 | var MENU_IMAGE = new Image();
11 | MENU_IMAGE.src = "images/menu.gif";
12 | var RESOURCE_IMAGE = new Image();
13 | RESOURCE_IMAGE.src = "images/tankAll.gif";
14 |
15 |
16 | /**************各个图块在图片中的位置*****************/
17 | var POS = new Array();
18 | POS["selectTank"] = [128,96];
19 | POS["stageLevel"] = [396,96];
20 | POS["num"] = [256,96];
21 | POS["map"] = [0,96];
22 | POS["home"] = [256,0];
23 | POS["score"] = [0,112];
24 | POS["player"] = [0,0];
25 | POS["protected"] = [160,96];
26 | POS["enemyBefore"] = [256,32];
27 | POS["enemy1"] = [0,32];
28 | POS["enemy2"] = [128,32];
29 | POS["enemy3"] = [0,64];
30 | POS["bullet"] = [80,96];
31 | POS["tankBomb"] = [0,160];
32 | POS["bulletBomb"] = [320,0];
33 | POS["over"] = [384,64];
34 | POS["prop"] = [256,110];
35 |
36 | /**************声音资源*****************/
37 | var START_AUDIO = new Audio("audio/start.mp3");
38 | var BULLET_DESTROY_AUDIO = new Audio("audio/bulletCrack.mp3");
39 | var TANK_DESTROY_AUDIO = new Audio("audio/tankCrack.mp3");
40 | var PLAYER_DESTROY_AUDIO = new Audio("audio/playerCrack.mp3");
41 | var MOVE_AUDIO = new Audio("audio/move.mp3");
42 | var ATTACK_AUDIO = new Audio("audio/attack.mp3");
43 | var PROP_AUDIO = new Audio("audio/prop.mp3");
44 |
45 |
46 | /**************游戏状态*****************/
47 | var GAME_STATE_MENU = 0;
48 | var GAME_STATE_INIT = 1;
49 | var GAME_STATE_START = 2;
50 | var GAME_STATE_OVER = 3;
51 | var GAME_STATE_WIN = 4;
52 |
53 | /**************地图块*****************/
54 | var WALL = 1;
55 | var GRID = 2;
56 | var GRASS = 3;
57 | var WATER = 4;
58 | var ICE = 5;
59 | var HOME = 9;
60 | var ANOTHREHOME = 8;
61 |
62 | /**************坦克及子弹的四个方向*****************/
63 | var UP = 0;
64 | var DOWN = 1;
65 | var LEFT = 2;
66 | var RIGHT = 3;
67 |
68 | /**************坦克及子弹的四个方向*****************/
69 | var ENEMY_LOCATION = [192,0,384]; //相对与主游戏区
70 |
71 | /**************子弹类型*****************/
72 | var BULLET_TYPE_PLAYER = 1;
73 | var BULLET_TYPE_ENEMY = 2;
74 | /**************爆炸类型****************/
75 | var CRACK_TYPE_TANK = "tank";
76 | var CRACK_TYPE_BULLET = "bullet";
77 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/tank/js/prop.js:
--------------------------------------------------------------------------------
1 |
2 | var Prop = function(context){
3 | this.x = 0;
4 | this.y = 0;
5 | this.duration = 600;
6 | this.type = 0;
7 | this.hit = false;
8 | this.width = 30;
9 | this.height = 28;
10 | this.ctx = context;
11 | this.isDestroyed = false;
12 | this.size = 28;
13 |
14 | this.init = function(){
15 | this.ctx.clearRect(this.x,this.y,this.width,this.height);
16 | this.duration = 600;
17 | this.type = parseInt(Math.random() * 6);
18 | this.x = parseInt(Math.random() * 384)+map.offsetX;
19 | this.y = parseInt(Math.random() * 384)+map.offsetY;
20 | this.isDestroyed = false;
21 | };
22 |
23 | this.draw = function(){
24 | if(this.duration > 0 && !this.isDestroyed){
25 | this.ctx.drawImage(RESOURCE_IMAGE,POS["prop"][0]+this.type*this.width,POS["prop"][1],this.width,this.height,this.x,this.y,this.width,this.height);
26 | this.duration -- ;
27 | this.isHit();
28 | }else{
29 | this.ctx.clearRect(this.x,this.y,this.width,this.height);
30 | this.isDestroyed = true;
31 | }
32 | };
33 |
34 | this.isHit = function(){
35 | var player = null;
36 | if(player1.lives > 0 && CheckIntersect(this,player1,0)){
37 | this.hit = true;
38 | player = player1;
39 | }else if(player2.lives > 0 && CheckIntersect(this,player2,0)){
40 | this.hit = true;
41 | player = player2;
42 | }
43 | if(this.hit){
44 | PROP_AUDIO.play();
45 | this.isDestroyed = true;
46 | this.ctx.clearRect(this.x,this.y,this.width,this.height);
47 | switch(this.type){
48 | case 0:
49 | player.lives ++;
50 | break;
51 | case 1:
52 | emenyStopTime = 500;
53 | break;
54 | case 2:
55 | var mapChangeIndex = [[23,11],[23,12],[23,13],[23,14],[24,11],[24,14],[25,11],[25,14]];
56 | map.updateMap(mapChangeIndex,GRID);
57 | homeProtectedTime = 500;
58 | break;
59 | case 3:
60 | if(enemyArray != null || enemyArray.length > 0){
61 | for(var i=0;iarticle,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}";
6 | c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||
7 | "undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);
8 | if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d
"):a=""+m+"",n.createIcon([a])))}();
2 | (function(){function n(){this.c()}var p=['http://aijava.cn/','http://aijava.cn/*.html'],e=document,g=window,m=encodeURIComponent,q="unknow",l=null;n.prototype={c:function(){if(!1===this.d())return!1;var a;this.a(e,"mousedown",this.b);a=g.navigator.userAgent;l=e.documentElement&&0!==e.documentElement.clientHeight?e.documentElement:e.body;a=a?a.toLowerCase().replace(/-/g,""):"";for(var b="netscape;se 1.;se 2.;saayaa;360se;tencent;qqbrowser;mqqbrowser;maxthon;myie;theworld;konqueror;firefox;chrome;safari;msie 5.0;msie 5.5;msie 6.0;msie 7.0;msie 8.0;msie 9.0;msie 10.0;Mozilla;opera".split(";"),
3 | d=0;d
2 |
3 |
4 |
5 |
6 | Canvas_鼠标移动炫彩小球
7 |
20 |
21 |
22 |
23 |
87 |
88 |
89 |
--------------------------------------------------------------------------------
/heart/style/functions.js:
--------------------------------------------------------------------------------
1 | /*Download by http://www.codefans.net*/
2 | var $window=$(window),gardenCtx,gardenCanvas,$garden,garden;var clientWidth=$(window).width();var clientHeight=$(window).height();$(function(){$loveHeart=$("#loveHeart");var a=$loveHeart.width()/2;var b=$loveHeart.height()/2-55;$garden=$("#garden");gardenCanvas=$garden[0];gardenCanvas.width=$("#loveHeart").width();gardenCanvas.height=$("#loveHeart").height();gardenCtx=gardenCanvas.getContext("2d");gardenCtx.globalCompositeOperation="lighter";garden=new Garden(gardenCtx,gardenCanvas);$("#content").css("width",$loveHeart.width()+$("#code").width());$("#content").css("height",Math.max($loveHeart.height(),$("#code").height()));$("#content").css("margin-top",Math.max(($window.height()-$("#content").height())/2,10));$("#content").css("margin-left",Math.max(($window.width()-$("#content").width())/2,10));setInterval(function(){garden.render()},Garden.options.growSpeed)});$(window).resize(function(){var b=$(window).width();var a=$(window).height();if(b!=clientWidth&&a!=clientHeight){location.replace(location)}});function getHeartPoint(c){var b=c/Math.PI;var a=19.5*(16*Math.pow(Math.sin(b),3));var d=-20*(13*Math.cos(b)-5*Math.cos(2*b)-2*Math.cos(3*b)-Math.cos(4*b));return new Array(offsetX+a,offsetY+d)}function startHeartAnimation(){var c=50;var d=10;var b=new Array();var a=setInterval(function(){var h=getHeartPoint(d);var e=true;for(var f=0;f=30){clearInterval(a);showMessages()}else{d+=0.2}},c)}(function(a){a.fn.typewriter=function(){this.each(function(){var d=a(this),c=d.html(),b=0;d.html("");var e=setInterval(function(){var f=c.substr(b,1);if(f=="<"){b=c.indexOf(">",b)+1}else{b++}d.html(c.substring(0,b)+(b&1?"_":""));if(b>=c.length){clearInterval(e)}},75)});return this}})(jQuery);function timeElapse(c){var e=Date();var f=(Date.parse(e)-Date.parse(c))/1000;var g=Math.floor(f/(3600*24));f=f%(3600*24);var b=Math.floor(f/3600);if(b<10){b="0"+b}f=f%3600;var d=Math.floor(f/60);if(d<10){d="0"+d}f=f%60;if(f<10){f="0"+f}var a=''+g+' days '+b+' hours '+d+' minutes '+f+" seconds";$("#elapseClock").html(a)}function showMessages(){$("#messages").fadeIn(5000,function(){showLoveU()})}function adjustWordsPosition(){$("#words").css("position","absolute");$("#words").css("top",$("#garden").position().top+195);$("#words").css("left",$("#garden").position().left+70)}function adjustCodePosition(){$("#code").css("margin-top",($("#garden").height()-$("#code").height())/2)}function showLoveU(){$("#loveu").fadeIn(3000)};
--------------------------------------------------------------------------------
/universe/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Document
6 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
--------------------------------------------------------------------------------
/tank/js/bullet.js:
--------------------------------------------------------------------------------
1 |
2 | var Bullet = function(context,owner,type,dir){
3 | this.ctx = context;
4 | this.x = 0;
5 | this.y = 0;
6 | this.owner = owner; //子弹的所属者
7 | this.type = type;//1、玩家 2、敌方
8 | this.dir = dir;
9 | this.speed = 3;
10 | this.size = 6;
11 | this.hit = false;
12 | this.isDestroyed = false;
13 |
14 | this.draw = function(){
15 | this.ctx.drawImage(RESOURCE_IMAGE,POS["bullet"][0]+this.dir*this.size,POS["bullet"][1],this.size,this.size,this.x,this.y,this.size,this.size);
16 | this.move();
17 | };
18 |
19 | this.move = function(){
20 | if(this.dir == UP){
21 | this.y -= this.speed;
22 | }else if(this.dir == DOWN){
23 | this.y += this.speed;
24 | }else if(this.dir == RIGHT){
25 | this.x += this.speed;
26 | }else if(this.dir == LEFT){
27 | this.x -= this.speed;
28 | }
29 |
30 | this.isHit();
31 | };
32 |
33 | /**
34 | * 碰撞检测
35 | */
36 | this.isHit = function(){
37 | if(this.isDestroyed){
38 | return;
39 | }
40 | //临界检测
41 | if(this.x < map.offsetX){
42 | this.x = map.offsetX;
43 | this.hit = true;
44 | }else if(this.x > map.offsetX + map.mapWidth - this.size){
45 | this.x = map.offsetX + map.mapWidth - this.size;
46 | this.hit = true;
47 | }
48 | if(this.y < map.offsetY){
49 | this.y = map.offsetY;
50 | this.hit = true;
51 | }else if(this.y > map.offsetY + map.mapHeight - this.size){
52 | this.y = map.offsetY + map.mapHeight - this.size;
53 | this.hit = true;
54 | }
55 | //子弹是否碰撞了其他子弹
56 | if(!this.hit){
57 | if(bulletArray != null && bulletArray.length > 0){
58 | for(var i=0;i 0){
76 | for(var i=0;i 1){
81 | enemyObj.lives --;
82 | }else{
83 | enemyObj.distroy();
84 | }
85 | this.hit = true;
86 | break;
87 | }
88 | }
89 | }
90 | }else if(this.type == BULLET_TYPE_ENEMY){
91 | if(player1.lives > 0 && CheckIntersect(this,player1,0)){
92 | if(!player1.isProtected && !player1.isDestroyed){
93 | player1.distroy();
94 | }
95 | this.hit = true;
96 | }else if(player2.lives > 0 && CheckIntersect(this,player2,0)){
97 | if(!player2.isProtected && !player2.isDestroyed){
98 | player2.distroy();
99 | }
100 | this.hit = true;
101 | }
102 | }
103 | }
104 |
105 |
106 | if(this.hit){
107 | this.distroy();
108 | }
109 | };
110 |
111 | /**
112 | * 销毁
113 | */
114 | this.distroy = function(){
115 | this.isDestroyed = true;
116 | crackArray.push(new CrackAnimation(CRACK_TYPE_BULLET,this.ctx,this));
117 | if(!this.owner.isAI){
118 | BULLET_DESTROY_AUDIO.play();
119 | }
120 | };
121 |
122 |
123 | };
--------------------------------------------------------------------------------
/heart/style/garden.js:
--------------------------------------------------------------------------------
1 | /*Download by http://www.codefans.net*/
2 | function Vector(a,b){this.x=a;this.y=b}Vector.prototype={rotate:function(b){var a=this.x;var c=this.y;this.x=Math.cos(b)*a-Math.sin(b)*c;this.y=Math.sin(b)*a+Math.cos(b)*c;return this},mult:function(a){this.x*=a;this.y*=a;return this},clone:function(){return new Vector(this.x,this.y)},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},subtract:function(a){this.x-=a.x;this.y-=a.y;return this},set:function(a,b){this.x=a;this.y=b;return this}};function Petal(a,f,b,e,c,d){this.stretchA=a;this.stretchB=f;this.startAngle=b;this.angle=e;this.bloom=d;this.growFactor=c;this.r=1;this.isfinished=false}Petal.prototype={draw:function(){var a=this.bloom.garden.ctx;var e,d,c,b;e=new Vector(0,this.r).rotate(Garden.degrad(this.startAngle));d=e.clone().rotate(Garden.degrad(this.angle));c=e.clone().mult(this.stretchA);b=d.clone().mult(this.stretchB);a.strokeStyle=this.bloom.c;a.beginPath();a.moveTo(e.x,e.y);a.bezierCurveTo(c.x,c.y,b.x,b.y,d.x,d.y);a.stroke()},render:function(){if(this.r<=this.bloom.r){this.r+=this.growFactor;this.draw()}else{this.isfinished=true}}};function Bloom(e,d,f,a,b){this.p=e;this.r=d;this.c=f;this.pc=a;this.petals=[];this.garden=b;this.init();this.garden.addBloom(this)}Bloom.prototype={draw:function(){var c,b=true;this.garden.ctx.save();this.garden.ctx.translate(this.p.x,this.p.y);for(var a=0;a` 元素用于在网页上绘制图形。这是一个 HTML 图形容器,必须使用脚本来绘制图形。
4 |
5 | **注意**:IE 8 以及更早的版本不支持 `