PM大逃亡

2023-12-31 13:20
文章标签 pm 逃亡

本文主要是介绍PM大逃亡,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

欢迎来到程序小院

PM大逃亡

玩法:点击白色的小鬼,滑动鼠标移动,不要碰到黑色的怪物,
怪物会越来越多,看看你能坚持多久,快去大逃亡吧^^。

开始游戏icon-default.png?t=N7T8https://www.ormcc.com/play/gameStart/233

html

<div style="position:relative;" id="gameDiv"></div>
<div id="toolbar"><img src="more.png" onClick="clickMore();"/>
</div>

css

div, canvas {display:block;position:absolute;margin: 0 auto;padding: 0;border: 0;
}
#toolbar{position:absolute;left:10%;width:80%;bottom:0px;z-index:99;text-align:center;display:none;
}

js

function d(a) {for (var e = [], l = 1; l < arguments.length; l++) e[l - 1] = arguments[l];if (l = b.egret_string_code[a]) for (var m = e.length,c = 0; c < m; c++) l = l.replace("{" + c + "}", e[c]);return l
}
var c = function() {function a() {}a.fatal = function(e, a) {void 0 === a && (a = null);b.Logger.traceToConsole("Fatal", e, a);throw Error(b.Logger.getTraceCode("Fatal", e, a));};a.info = function(e, a) {void 0 === a && (a = null);b.Logger.traceToConsole("Info", e, a)};a.warning = function(e, a) {void 0 === a && (a = null);b.Logger.traceToConsole("Warning", e, a)};a.fatalWithErrorId = function(e) {for (var l = [], b = 1; b < arguments.length; b++) l[b - 1] = arguments[b];l.unshift(e); (l = d.apply(null, l)) ? a.fatal(l) : a.warning(d( - 1, e))};a.infoWithErrorId = function(e) {for (var l = [], b = 1; b < arguments.length; b++) l[b - 1] = arguments[b];l.unshift(e); (l = d.apply(null, l)) ? a.info(l) : a.warning(d( - 1, e))};a.warningWithErrorId = function(e) {for (var l = [], b = 1; b < arguments.length; b++) l[b - 1] = arguments[b];l.unshift(e); (l = d.apply(null, l)) ? a.warning(l) : a.warning(d( - 1, e))};a.traceToConsole = function(e, a, m) {//  console.log(b.Logger.getTraceCode(e, a, m))};a.getTraceCode = function(e, a, b) {return "[" + e + "]" + a + (null == b ? "": ":" + b)};return a
} ();
b.Logger = c;
c.prototype.__class__ = "egret.Logger";
b.getString = d
var d = function(b) {
function a(e) {void 0 === e && (e = 300);b.call(this);this.objectPool = [];this._length = 0;1 > e && (e = 1);this.autoDisposeTime = e;this.frameCount = 0
}
__extends(a, b);
a.prototype._checkFrame = function() {this.frameCount--;0 >= this.frameCount && this.dispose()
};
Object.defineProperty(a.prototype, "length", {get: function() {return this._length},enumerable: !0,configurable: !0
});
a.prototype.push = function(e) {var l = this.objectPool; - 1 == l.indexOf(e) && (l.push(e), e.__recycle && e.__recycle(), this._length++, 0 == this.frameCount && (this.frameCount = this.autoDisposeTime, a._callBackList.push(this)))
};
a.prototype.pop = function() {if (0 == this._length) return null;this._length--;return this.objectPool.pop()
};
a.prototype.dispose = function() {0 < this._length && (this.objectPool = [], this._length = 0);this.frameCount = 0;var e = a._callBackList,l = e.indexOf(this); - 1 != l && e.splice(l, 1)
};
a._callBackList = [];
return a
} (b.HashObject);
b.Recycler = d;
d.prototype.__class__ = "egret.Recycler"
})(egret || (egret = {})); (function(b) {
b.__START_TIME;
b.getTimer = function() {
return Date.now() - b.__START_TIME
}
})(egret || (egret = {})); (function(b) {
b.__callLaterFunctionList = [];
b.__callLaterThisList = [];
b.__callLaterArgsList = [];
b.callLater = function(d, c) {
for (var a = [], e = 2; e < arguments.length; e++) a[e - 2] = arguments[e];
b.__callLaterFunctionList.push(d);
b.__callLaterThisList.push(c);
b.__callLaterArgsList.push(a)
};
b.__callAsyncFunctionList = [];
b.__callAsyncThisList = [];
b.__callAsyncArgsList = [];
b.__callAsync = function(d, c) {
for (var a = [], e = 2; e < arguments.length; e++) a[e - 2] = arguments[e];
b.__callAsyncFunctionList.push(d);
b.__callAsyncThisList.push(c);
b.__callAsyncArgsList.push(a)
}
var d = function(c) {
function a(e, a, b) {void 0 === a && (a = !1);void 0 === b && (b = !1);c.call(this);this.data = null;this._type = "";this._cancelable = this._bubbles = !1;this._eventPhase = 2;this._target = this._currentTarget = null;this._isPropagationImmediateStopped = this._isPropagationStopped = this._isDefaultPrevented = !1;this.isNew = !0;this._type = e;this._bubbles = a;this._cancelable = b
}
__extends(a, c);
Object.defineProperty(a.prototype, "type", {get: function() {return this._type},enumerable: !0,configurable: !0
});
Object.defineProperty(a.prototype, "bubbles", {get: function() {return this._bubbles},enumerable: !0,configurable: !0
});
Object.defineProperty(a.prototype, "cancelable", {get: function() {return this._cancelable},enumerable: !0,configurable: !0
});
Object.defineProperty(a.prototype, "eventPhase", {get: function() {return this._eventPhase},enumerable: !0,configurable: !0
});
Object.defineProperty(a.prototype, "currentTarget", {get: function() {return this._currentTarget},enumerable: !0,configurable: !0
});
Object.defineProperty(a.prototype, "target", {get: function() {return this._target},enumerable: !0,configurable: !0
});
a.prototype.isDefaultPrevented = function() {return this._isDefaultPrevented
};
a.prototype.preventDefault = function() {this._cancelable && (this._isDefaultPrevented = !0)
};
a.prototype.stopPropagation = function() {this._bubbles && (this._isPropagationStopped = !0)
};
a.prototype.stopImmediatePropagation = function() {this._bubbles && (this._isPropagationImmediateStopped = !0)
};
a.prototype._reset = function() {this.isNew ? this.isNew = !1 : (this._isPropagationImmediateStopped = this._isPropagationStopped = this._isDefaultPrevented = !1, this._currentTarget = this._target = null, this._eventPhase = 2)
};
a.prototype.__recycle = function() {this.data = this._target = this._currentTarget = null
};
a._dispatchByTarget = function(e, a, m, c, d, f) {void 0 === d && (d = !1);void 0 === f && (f = !1);var h = e.eventRecycler;h || (h = e.eventRecycler = new b.Recycler);var n = h.pop();n ? n._type = m: n = new e(m);n._bubbles = d;n._cancelable = f;if (c) for (var p in c) n[p] = c[p],null !== n[p] && (c[p] = null);e = a.dispatchEvent(n);h.push(n);return e
};
a._getPropertyData = function(e) {var a = e._props;a || (a = e._props = {});return a
};
a.dispatchEvent = function(e, l, b, c) {void 0 === b && (b = !1);var d = a._getPropertyData(a);c && (d.data = c);a._dispatchByTarget(a, e, l, d, b)
};
a.ADDED_TO_STAGE = "addedToStage";
a.REMOVED_FROM_STAGE = "removedFromStage";
a.ADDED = "added";
a.REMOVED = "removed";
a.COMPLETE = "complete";
a.LOOP_COMPLETE = "loopcomplete";
a.ENTER_FRAME = "enterFrame";
a.RENDER = "render";
a.FINISH_RENDER = "finishRender";
a.FINISH_UPDATE_TRANSFORM = "finishUpdateTransform";
a.LEAVE_STAGE = "leaveStage";
a.RESIZE = "resize";
a.CHANGE = "change";
a.ACTIVATE = "activate";
a.DEACTIVATE = "deactivate";
a.CLOSE = "close";
a.CONNECT = "connect";
return a

源码

需要源码请关注添加好友哦^ ^

转载:欢迎来到本站,转载请注明文章出处https://ormcc.com/

这篇关于PM大逃亡的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/556151

相关文章

PM的自我修养——关于AndroidDesign的一些基础知识

这篇日志来自于一个问题:独立 Android 开发者如何零基础学习 UI 设计并设计出符合 Android Design 的作品? 以下是我的回复。 最初看到这个问题,我是觉得这个问题和我上周末分享的内容契合度比较高,所以一直等到周末分享结束来写这个答案,本来是想直接把PPT和讲稿复制粘贴啪啪啪,但是后来想想,觉得这样还是不太合适,我还是提炼一下答案吧。 首先,我不能赞同Va

PM的自我修养——微信5.0 for Android 设计思路(二)

容我做一次标题党,这回要写的内容其实和标题没什么关系了。 去了一趟北京,见到了冯大辉老师和池建强老师,两位都分享了自己写作和编程的故事,让人心向往之。 继续走之前的坑。微信支付。 第一次使用微信支付的时候,是在一次美团团购用支付宝支付然后提示我手机没有安装支付宝的时候。我手机上第三页第三个应用那不是支付宝那是啥?情急之下,我发现手机里还有个微信支付。之后就是绑卡,验证等等。整

PM的自我修养——微信5.0 for Android 设计思路(一)

之前有个朋友让我们做一个拆字的APP,最近他又提了一个新需求,能不能顺便做一个微信平台? 下午腾讯的人来讲课,当时老师问起有多少人依然把手机QQ作为主要通讯工具,举手的人寥寥无几……我就是那个几……虽然我清楚地知道,在场的很多人属于懒得表态,但是这也可以说明一些问题,比如,在腾讯内部,也许早已经确认了微信的战略地位和市场表现超过手机QQ,再比如,确实有很多人从QQ走向了微信。 我个人对于

解决code ERESOLVE,pm ERR! ERESOLVE unable to resolve dependency tre问题

目录 一、错误原因二、解决方法 一、错误原因 “npm ERR! code ERESOLVE” 错误通常发生在执行 npm install 或者 npm ci 命令时,表示在解析依赖时发生了问题。可能的原因包括: 依赖版本冲突:不同依赖包要求使用相同的包的不同版本,导致冲突。 依赖解析问题:npm 无法正确解析依赖包的版本。 二、解决方法 要解决 “npm ERR! cod

HDU 1429胜利大逃亡(续) (bfs+状态压缩)

胜利大逃亡(续) Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 6469 Accepted Submission(s): 2243 Problem Description Ignatius再次被魔王抓走了(搞不懂他咋这

HDU 1253 胜利大逃亡 广度优先搜索

Description Ignatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会. 魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个B*C的矩阵,刚开始Ignatius被关在(0,0,0)的位置,离开城堡的门在(A-1,B-1,C-1)的位置,现在知道魔王将在T分钟后回到城堡,Ignatius每分钟能从一个坐标走到相邻的六个坐标中的其中一个.

hdu 1429胜利大逃亡(续) / sdut 2193 救基友记3(BFS)

http://acm.hdu.edu.cn/showproblem.php?pid=1429 做了热身赛http://blog.csdn.net/u013081425/article/details/21740001 之后发现这道题好水,之前怎么没刷到呢。。 同样标记数组增加一维,标记到某一点时他拥有钥匙的状态,因为有10种钥匙,所以mark[][][1<<10+10]来标记每到一点的状态。

PM未来核心竞争力

都已经9102年了,我们生活在这个社会,资源饱和、职场竞争残酷,不可不谓惊悚。工作这么些年。经常有朋友跟我倾诉说,我感觉我到了瓶颈了,每天不知所措。 小A跟我讲,做了5年技术,感觉技术也就这样了,每天干不完的活,头发日渐稀疏,发际线后移到怀疑人生,每次tony老师问我要不要打薄我都想哭; 小B跟我讲,我做PM三年了,感觉每天就是计划、需求、吵架,越做越没劲。新来的产品工资都比我高,感觉再过几年

胜利大逃亡——BFS

胜利大逃亡 Time Limit:2000MS     Memory Limit:32768KB     64bit IO Format:%I64d & %I64u Submit  Status Description Ignatius被魔王抓走了,有一天魔王出差去了,这可是Ignatius逃亡的好机会. 魔王住在一个城堡里,城堡是一个A*B*C的立方体,可以被表示成A个

HDU 1253 胜利大逃亡 (BFS,剪枝)

http://acm.hdu.edu.cn/showproblem.php?pid=1253 胜利大逃亡 Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 24270    Accepted Submission(s): 9300