Commit 7dc4f969 authored by huangwenjie's avatar huangwenjie

加入锁步

parent 13a4fde3
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><title>React App</title><script>!(function(e, i) {
var t = e.documentElement,
n = navigator.userAgent.match(/iphone|ipod|ipad/gi),
a = n ? Math.min(i.devicePixelRatio, 3) : 1,
m = 'orientationchange' in window ? 'orientationchange' : 'resize';
t.dataset.dpr = a;
for (
var d, l, c = !1, o = e.getElementsByTagName('meta'), r = 0;
r < o.length;
r++
)
(l = o[r]), 'viewport' == l.name && ((c = !0), (d = l));
if (c)
d.content =
'width=device-width,initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0,user-scalable=no';
else {
var o = e.createElement('meta');
(o.name = 'viewport'),
(o.content =
'width=device-width,initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0,user-scalable=no'),
t.firstElementChild.appendChild(o);
}
var s = function() {
var e = t.clientWidth;
e / a > 750 && (e = 750 * a),
(window.remScale = e / 750),
(t.style.fontSize = 100 * (e / 750) + 'px');
};
s(), e.addEventListener && i.addEventListener(m, s, !1);
})(document, window);</script><script>function getApp(){
return {
cloud:{},
cloudName:"clientTemplate2C",
requestType:"mock"
}
}
var CFG = CFG || {};
CFG.projectId = location.pathname.split('/')[2] || '1';</script><link href="//yun.duiba.com.cn/spark/v2/niuqichongtian/1611719012788/styles/main.19e9d6e9882561278686.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><script>// document.body.addEventListener('touchstart', function(){});</script><div id="root"></div><script src="//yun.duiba.com.cn/spark/v2/niuqichongtian/1611719012788/js/runtime-main.a9f7dc71.js"></script><script src="//yun.duiba.com.cn/spark/v2/niuqichongtian/1611719012788/js/vendors.0b926fe5.js"></script><script src="//yun.duiba.com.cn/spark/v2/niuqichongtian/1611719012788/js/main.d864aae1.js"></script></body><script src="//yun.duiba.com.cn/db_games/activity/md5/zepto_security_downloadApp.min.js"></script></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){function r(r){for(var t,i,a=r[0],l=r[1],c=r[2],p=0,s=[];p<a.length;p++)i=a[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,c||[]),n()}function n(){for(var e,r=0;r<u.length;r++){for(var n=u[r],t=!0,a=1;a<n.length;a++){var l=n[a];0!==o[l]&&(t=!1)}t&&(u.splice(r--,1),e=i(i.s=n[0]))}return e}var t={},o={1:0},u=[];function i(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,r,n){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var t in e)i.d(n,t,function(r){return e[r]}.bind(null,t));return n},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="//yun.duiba.com.cn/spark/v2/niuqichongtian/1611719012788/";var a=window.webpackJsonp=window.webpackJsonp||[],l=a.push.bind(a);a.push=r,a=a.slice();for(var c=0;c<a.length;c++)r(a[c]);var f=l;n()}([]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -490,10 +490,16 @@ export class StartScene extends Scene {
rainLuckyBag = false
// rainConfig = ['redPacket', 'redPacket', 'redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot']
rainConfig = ['redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot']
lastTime
raining() {
if (this.pause) {
return
}
var now = Date.now();
var delta = this.lastTime ? now - this.lastTime : 16.7;
this.lastTime = now;
if (delta > 1000) delta = 16.7;
var scale = delta / 16.7;
this.checkGetRain()
......@@ -539,7 +545,7 @@ export class StartScene extends Scene {
if (this.rains.length > 0) {
for (let i = this.rains.length - 1; i >= 0; i--) {
this.rains[i].y += this.rains[i].speed
this.rains[i].y += this.rains[i].speed * scale
this.rains[i].speed += this.ADDSPEED
this.rains[i].alpha = (this.rains[i].y < layers.stageHeight - 300 ? 1 : (layers.stageHeight - this.rains[i].y - 100) / 300)
if (this.rains[i].y > 1800) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment