欢迎来到程序小院
一代拳王
玩法:
鼠标点击下方技能出拳,长按鼠标进行防御,不同种类的拳王,攻击力、速度、体质不同等级,快去解锁全部拳王进行拳王争霸吧^^。
开始游戏https://www.ormcc.com/play/gameStart/191
html
<div id="chf2" style="position:relative;width:320px;margin:0 auto;">
<canvas id="gcvs" width="320" height="416"></canvas>
</div>
css
h2.title{
display: block;
margin: 50px auto;
text-align: center;
}
#play68box {
top: 25%;
}
js
function scs(e, t, n) {
e = String(e);
var r = e.length - 1,
i;
switch (t) {
case 1:
for (i = 0; i <= r; i++) t = Math.floor(e.substr(i, 1)),
spt_p(137 + t, rsdsx[r - i], n);
2 < r && spt_p(147, 151, n + 34);
break;
case 2:
for (i = 0; i <= r; i++) t = Math.floor(e.substr(i, 1)),
spt(164 + t, rsdsx2[r - i], n);
2 < r && spt(174, 198, 84);
break;
case 3:
for (i = 0; i <= r; i++) t = Math.floor(e.substr(i, 1)),
spt(164 + t, rsdsx2[r - i], n);
2 < r && spt(174, 198, 84);
break;
case 4:
for (i = 0; i <= r; i++) t = Math.floor(e.substr(i, 1)),
spt(175 + t, rsdsx3[r - i], n);
2 < r && spt(185, 282, n + 10)
}
}
function st() {
bp_f = {};
bp_fi = 0;
bgi = 15;
mp = bgb = 0;
ms = mi = 1;
ep = 0;
uei = -1;
es = ei = 1;
eud = -1;
egd = 0;
etx = ex = 14;
epc = 69;
lt = 2;
th = 0;
esp = 10;
uex4 = uex3 = uex2 = uex1 = 0;
bgx = 407;
msi = msy = msx = 0;
mst = mss = 1;
esy = esx = 0;
esi = 1;
ut = upps = -1;
vstm = stm = 51;
epstc = 0;
epdtm = 9;
fvi = fvt = fvj = fvy = fvx = pfv = 0;
ehpa = empa = ehp = emp = phpa = pmpa = php = pmp = 121;
pdwy = pdwn = 0;
edwn = -1;
dwnac = dwnc = edwy = 0;
elg = 119;
ovblk = slwa = 0;
vsi = -1;
gtm = 180;
rnds = 0;
vsanc = 14;
edwct = pdwct = ldwtc = gtpnt = rstec = 0;
estdct = pstdct = 2;
sovbl = 1;
gdnty = gdntm = gdstm = jbstm = 0;
gdntj = 2;
onejdg = thct = 0
}
function stf() {
gonch = 1;
gs = 6
}
function spt(e, t, n) {
var r = iwp[e],
i = ihp[e];
ctx.drawImage(img3, ixp[e], iyp[e], r, i, t, n, r, i)
}
function spt_ld(e, t, n) {
var r = iwp[e],
i = ihp[e];
ctx.drawImage(img5, ixp[e], iyp[e], r, i, t, n, r, i)
}
function spt_p(e, t, n) {
var r = iwp[e],
i = ihp[e];
ctx.drawImage(img1, ixp[e], iyp[e], r, i, t, n, r, i)
}
function sptl(e, t, n, r) {
var i = ihp[e];
ctx.drawImage(img1, ixp[e], iyp[e], r, i, t, n, r, i)
}
function sptp(e, t, n) {
var r = iwp[e],
i = ihp[e];
ctx.drawImage(img3, ixp[e], iyp[e], r, i, t | 0, n | 0, 2 * r, 2 * i)
}
function spte(e, t, n) {
var r = iwe[e],
i = ihe[e];
ctx.drawImage(img4, ixe[e], iye[e], r, i, t | 0, n | 0, 2 * r, 2 * i)
}
function spt_pt(e, t, n, r, i) {
ctx.drawImage(img3, ixp[e], iyp[e], iwp[e], ihp[e], t, n, r, i)
}
function spt_pt_p(e, t, n, r, i) {
ctx.drawImage(img1, ixp[e], iyp[e], iwp[e], ihp[e], t, n, r, i)
}
function spt_r(e, t, n) {
var r = iwp[e],
i = ihp[e];
ctx.drawImage(img7, ixp[e], iyp[e], r, i, t, n, r, i)
}
function gcp1() {
1 == gc && (ctx.globalCompositeOperation = "lighter")
}
function gcp2() {
1 == gc && (ctx.globalCompositeOperation = "source-over")
}
function pdmg(e, t) {
php -= e;
pmp -= t;
1 > php && (pdwn = 1, pdwy = .15, php = -30, ut = -1)
}
function edmg(e, t) {
ehp -= e;
emp -= t;
1 > ehp && (edwn = 1, edwy = .15, ehp = -30, ut = -1)
}
function pchst(e) {
if (0 == pdwn && 0 == edwn && 0 == gdntm) {
mp = e;
ms = 1;
switch (mp) {
case 2:
jbstm = 0;
break;
case 6:
case 7:
ms = .5;
break;
default:
20 < jbstm && (ms = .3),
jbstm += 26
}
mi = msf[mp];
thct = 0
}
}
function grd() {
0 == gdntm && (mp = 3, ms = 1.5, mi = msf[mp], jbstm = 0)
}
function epch() {
ep = Math.random() < epplr ? 1 : 2;
epe();
es = 1 == ep ? epjbs: epsts;
epc = Math.floor(Math.random() * epitm);
eud = 1
}
function tev11(e) {
mousePos = {
x: e.layerX,
y: e.layerY
};
Press(mousePos);
e.preventDefault()
}
function tev1(e) {
mousePos = {
x: e.touches[0].pageX,
y: e.touches[0].pageY
};
Press(mousePos);
e.preventDefault()
}
源码https://www.ormcc.com/
需要源码请关注添加好友哦^ ^
转载:欢迎来到本站,转载请注明文章出处
https://ormcc.com/