blog.csdn.net/weixin_4274…
Strategy:
1. Draw an interface
2. Move the newly drawn black block down
3. Every time you click the black box, you get extra points, but you fail to click the attachment
4. Click the black box to remove the black block
5. The black box is accelerated down and accelerated up without clicking once
6. Move down is the timer, less than 2000 seconds appear one, use no 10 ms move down 2px, and keep increasing
7. In order to make the style better, you can design and design something humanized
ok
The code:
css
body {
margin: 0px;
padding: 0px;
}
.main {
margin: 0 auto;
width: 300px;
height: 500px;
background-color: rgb(228, 214, 170);
position: relative;
overflow: hidden;
}
.resource{
width:100%;
height:600px;
top:-100px;
position: absolute;
}
.lines{
width:100%;
float: left;
height:100px;
position: absolute;
}
.inbk{
width:60px;
height:100px;
float: left;
}
.inhk{
width:60px;
height:100px;
float: left;
background-color: black;
}
Copy the code
html
<! DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, <meta HTTP-equiv =" x-UA-compatible "content="ie=edge"> <meta http-equiv=" x-UA-compatible" content=" IE =edge"> <span id="count">0</span> Status: < span id = "count1" > to < / span > < / div > < div class = "main" > < dvi class = "resource" > < / dvi > < / div > < / body > < / HTML >Copy the code
javascript
eval(function(p,a,c,k,e,r){e=function(c){return(c<a? '':e(parseInt(c/a)))+((c=c%a)>35? String.fromCharCode(c+29):c.toString(36))}; if(! ''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c); k=[function(e){return r[e]}]; e=function(){return'\\w+'}; c=1}; while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]); return p}('5 3={v:7(){5 e=["8","8","8","8"]; 5 f=0; 5 g=t(7(){5 i=q.Q(q.P()*4); e[i]=\'u\'; 5 a=""; f++; G(H i=0; i<e.U; i++){a+=\'<k y="\'+e[i]+\'" o="m\'+f+\'" ></k>\'}5 b="<k y=\'E\' F=\'p:I; \' L=\'m"+f+"\'>"+a+"</k>"; $(".N").O(b); e[i]=\'8\'; 3.6. J.R (1); r($("#m"+f+""),f); 3. (s)}, the 3.6.9); 5 h; 7 r(a,b){5 c=0; 5 d=0; (h = t (7) {d = d + 3.6 l; a.J("p",d+"K"); W (d > M) {w (3.6 j [b] = = 1) {$(" # "x.) n (3 z!" " ); A(g); A(h); B}S{B}}},T)}},s:7(){$(".u").C(7(){5 a=$(V).W("o"); 3.6. J [X (a.Y (2))] = 0; $("#"+a).Z(); 3.6 l = 3.6 l + 0.1; The 3.6.9 = 3.6.9-1; $(" # 10 ".) n (+ + 3.6. D)}); $(".8").C(7(){$("#x").n("3 z!" )})}, 6: {D: 0, j: [0], l: 1, 9, 11}}; $(12).13(7(){3.v()}); ', 62,66, '| | | game | | var | gameData | function | inbk | GXSD | | | | | | | | | | arrAstate | div | sd | ok | | HTML SKS | top | Math | xxyd | ydsj | setInterval | I nhk|init|if|count1|class|over|clearInterval|return|click|countI|lines|style|for|let|0px|css|px|id|500|resource|append|ra ndom|floor|push|else|20|length|this|attr|Number|substr|remove|count|2000|document|ready'.split('|'),0,{}))Copy the code
Full source address:
Download.csdn.net/download/we…
Continuously updated