Commit ba4418ad authored by huangwenjie's avatar huangwenjie

1

parent 22f3444d
<!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/1609914208648/styles/main.68129dbda1dd918c2956.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/1609914208648/js/runtime-main.24d70206.js"></script>
<script src="//yun.duiba.com.cn/spark/v2/niuqichongtian/1609914208648/js/vendors.0b926fe5.js"></script>
<script src="//yun.duiba.com.cn/spark/v2/niuqichongtian/1609914208648/js/main.40c89393.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/1609914208648/";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.
......@@ -2110,7 +2110,7 @@ var StartScene = (function (_super) {
_this._preTimerNum = 3;
_this._timerNum = 30;
_this.rains = [];
_this.hasRedBag = false;
_this.hasLuckyBag = false;
_this.pause = false;
_this.playMusic = true;
_this.resConfig = {
......@@ -2134,7 +2134,7 @@ var StartScene = (function (_super) {
_this._guideLevel = 0;
_this.isGameOver = false;
_this.count = 0;
_this.rainRedPacketed = false;
_this.rainLuckyBag = false;
_this.rainConfig = ['redPacket', 'redPacket', 'redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot'];
return _this;
}
......@@ -2204,6 +2204,10 @@ var StartScene = (function (_super) {
progressBar.y = 130;
this.scoreProgressBar = new ProgressBarS_1.ProgressBarS(progressBar);
this.scoreProgressBar.value = (this.score / 200).toFixed(2);
var scoreRect = this.scoreProgressBox.addChild(new FYGE.Shape());
scoreRect.beginFill(0xff0000, 1);
scoreRect.drawRect(460, 130, 5, 30);
scoreRect.endFill();
this.scoreTips = this.UIBox.addChild(new FYGE.TextField());
this.scoreTips.x = 250;
this.scoreTips.y = 178;
......@@ -2373,7 +2377,7 @@ var StartScene = (function (_super) {
};
StartScene.prototype.gameStart = function () {
var _this = this;
this.hasRedBag = false;
this.hasLuckyBag = false;
clearInterval(this.gameTimer);
this.gameTimer = setInterval(function () {
if (_this.pause) {
......@@ -2458,7 +2462,8 @@ var StartScene = (function (_super) {
addScoreTxt_1.y = this_1.cowBox.y;
switch (rain.spType) {
case "luckyBag":
this_1.hasRedBag = true;
this_1.hasLuckyBag = true;
this_1.rainLuckyBag = false;
this_1.score += 20;
addScoreTxt_1.text = "+20";
this_1.addChild(addScoreTxt_1);
......@@ -2509,13 +2514,16 @@ var StartScene = (function (_super) {
this.checkGetRain();
this.count++;
var rainNum = layers_1.layers.stageHeight >= 1334 ? 30 : 20;
if (this.rains.length < rainNum && this.count % 60 == 0) {
if (this.rains.length < rainNum && this.count % 50 == 0) {
var rain = this.rainBox.addChild(new FYGE.Sprite(this.res("redPacket")));
rain.y = -200;
rain.x = Math.max(10 * Math.random(), 680 * Math.random());
rain['speed'] = Math.max(this.SPEED * Math.random(), 6);
var type = GameConst_1.arr.getRandomOne(this.rainConfig);
if (this.hasRedBag) {
if (type == "luckyBag") {
this.rainLuckyBag = true;
}
if (this.hasLuckyBag || this.rainLuckyBag) {
type = "redPacket";
}
switch (type) {
......@@ -2546,6 +2554,9 @@ var StartScene = (function (_super) {
this.rains[i].speed += this.ADDSPEED;
this.rains[i].alpha = (this.rains[i].y < layers_1.layers.stageHeight - 300 ? 1 : (layers_1.layers.stageHeight - this.rains[i].y - 100) / 300);
if (this.rains[i].y > 1800) {
if (this.rains[i].type == "luckyBag") {
this.rainLuckyBag = false;
}
this.rainBox.removeChild(this.rains[i]);
GameConst_1.arr.removeEle(this.rains[i], this.rains);
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2111,7 +2111,7 @@ var StartScene = (function (_super) {
_this._preTimerNum = 3;
_this._timerNum = 30;
_this.rains = [];
_this.hasRedBag = false;
_this.hasLuckyBag = false;
_this.pause = false;
_this.playMusic = true;
_this.resConfig = {
......@@ -2135,7 +2135,7 @@ var StartScene = (function (_super) {
_this._guideLevel = 0;
_this.isGameOver = false;
_this.count = 0;
_this.rainRedPacketed = false;
_this.rainLuckyBag = false;
_this.rainConfig = ['redPacket', 'redPacket', 'redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot'];
return _this;
}
......@@ -2205,6 +2205,10 @@ var StartScene = (function (_super) {
progressBar.y = 130;
this.scoreProgressBar = new ProgressBarS_1.ProgressBarS(progressBar);
this.scoreProgressBar.value = (this.score / 200).toFixed(2);
var scoreRect = this.scoreProgressBox.addChild(new FYGE.Shape());
scoreRect.beginFill(0xff0000, 1);
scoreRect.drawRect(460, 130, 5, 30);
scoreRect.endFill();
this.scoreTips = this.UIBox.addChild(new FYGE.TextField());
this.scoreTips.x = 250;
this.scoreTips.y = 178;
......@@ -2374,7 +2378,7 @@ var StartScene = (function (_super) {
};
StartScene.prototype.gameStart = function () {
var _this = this;
this.hasRedBag = false;
this.hasLuckyBag = false;
clearInterval(this.gameTimer);
this.gameTimer = setInterval(function () {
if (_this.pause) {
......@@ -2459,7 +2463,8 @@ var StartScene = (function (_super) {
addScoreTxt_1.y = this_1.cowBox.y;
switch (rain.spType) {
case "luckyBag":
this_1.hasRedBag = true;
this_1.hasLuckyBag = true;
this_1.rainLuckyBag = false;
this_1.score += 20;
addScoreTxt_1.text = "+20";
this_1.addChild(addScoreTxt_1);
......@@ -2510,13 +2515,16 @@ var StartScene = (function (_super) {
this.checkGetRain();
this.count++;
var rainNum = layers_1.layers.stageHeight >= 1334 ? 30 : 20;
if (this.rains.length < rainNum && this.count % 60 == 0) {
if (this.rains.length < rainNum && this.count % 50 == 0) {
var rain = this.rainBox.addChild(new FYGE.Sprite(this.res("redPacket")));
rain.y = -200;
rain.x = Math.max(10 * Math.random(), 680 * Math.random());
rain['speed'] = Math.max(this.SPEED * Math.random(), 6);
var type = GameConst_1.arr.getRandomOne(this.rainConfig);
if (this.hasRedBag) {
if (type == "luckyBag") {
this.rainLuckyBag = true;
}
if (this.hasLuckyBag || this.rainLuckyBag) {
type = "redPacket";
}
switch (type) {
......@@ -2547,6 +2555,9 @@ var StartScene = (function (_super) {
this.rains[i].speed += this.ADDSPEED;
this.rains[i].alpha = (this.rains[i].y < layers_1.layers.stageHeight - 300 ? 1 : (layers_1.layers.stageHeight - this.rains[i].y - 100) / 300);
if (this.rains[i].y > 1800) {
if (this.rains[i].type == "luckyBag") {
this.rainLuckyBag = false;
}
this.rainBox.removeChild(this.rains[i]);
GameConst_1.arr.removeEle(this.rains[i], this.rains);
}
......
......@@ -38,7 +38,7 @@ export class StartScene extends Scene {
_timerNum = 30
skipGuideBtn
rains = []
hasRedBag = false
hasLuckyBag = false
pause = false
playMusic = true
resConfig = {
......@@ -136,6 +136,11 @@ export class StartScene extends Scene {
this.scoreProgressBar = new ProgressBarS(progressBar)
this.scoreProgressBar.value = (this.score / 200).toFixed(2)
let scoreRect = this.scoreProgressBox.addChild(new FYGE.Shape())
scoreRect.beginFill(0xff0000, 1)
scoreRect.drawRect(460, 130, 5, 30)
scoreRect.endFill()
this.scoreTips = this.UIBox.addChild(new FYGE.TextField())
this.scoreTips.x = 250
this.scoreTips.y = 178
......@@ -336,7 +341,7 @@ export class StartScene extends Scene {
gameTimer
gameStart() {
this.hasRedBag = false
this.hasLuckyBag = false
clearInterval(this.gameTimer)
this.gameTimer = setInterval(() => {
if (this.pause) {
......@@ -435,7 +440,8 @@ export class StartScene extends Scene {
addScoreTxt.y = this.cowBox.y
switch (rain.spType) {
case "luckyBag":
this.hasRedBag = true
this.hasLuckyBag = true
this.rainLuckyBag = false
this.score += 20
addScoreTxt.text = "+20"
this.addChild(addScoreTxt)
......@@ -478,7 +484,7 @@ export class StartScene extends Scene {
}
count = 0
rainRedPacketed = false
rainLuckyBag = false
rainConfig = ['redPacket', 'redPacket', 'redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot']
raining() {
if (this.pause) {
......@@ -489,14 +495,17 @@ export class StartScene extends Scene {
this.count++
let rainNum = layers.stageHeight >= 1334 ? 30 : 20
if (this.rains.length < rainNum && this.count % 60 == 0) {
if (this.rains.length < rainNum && this.count % 50 == 0) {
let rain = this.rainBox.addChild(new FYGE.Sprite(this.res("redPacket")))
rain.y = -200
rain.x = Math.max(10 * Math.random(), 680 * Math.random())
rain['speed'] = Math.max(this.SPEED * Math.random(), 6)
let type = arr.getRandomOne(this.rainConfig)
if (this.hasRedBag) {
if (type == "luckyBag") {
this.rainLuckyBag = true
}
if (this.hasLuckyBag || this.rainLuckyBag) {
type = "redPacket"
}
switch (type) {
......@@ -529,6 +538,9 @@ export class StartScene extends Scene {
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) {
if (this.rains[i].type == "luckyBag") {
this.rainLuckyBag = false
}
this.rainBox.removeChild(this.rains[i])
arr.removeEle(this.rains[i], this.rains)
}
......
......@@ -3,6 +3,7 @@
import React, { Component } from 'react';
import resList from '../../resconfig/resList';
import ViewCtrl from '../../util/viewCtrl';
import { sendLogBuji } from '../../util/net';
import './ComGameFinalClear.less';
class ComGameFinalClear extends Component {
constructor(props) {
......
......@@ -2111,7 +2111,7 @@ var StartScene = (function (_super) {
_this._preTimerNum = 3;
_this._timerNum = 30;
_this.rains = [];
_this.hasRedBag = false;
_this.hasLuckyBag = false;
_this.pause = false;
_this.playMusic = true;
_this.resConfig = {
......@@ -2135,7 +2135,7 @@ var StartScene = (function (_super) {
_this._guideLevel = 0;
_this.isGameOver = false;
_this.count = 0;
_this.rainRedPacketed = false;
_this.rainLuckyBag = false;
_this.rainConfig = ['redPacket', 'redPacket', 'redPacket', 'redPacket', 'redPacket', 'luckyBag', 'ingot', 'ingot'];
return _this;
}
......@@ -2205,6 +2205,10 @@ var StartScene = (function (_super) {
progressBar.y = 130;
this.scoreProgressBar = new ProgressBarS_1.ProgressBarS(progressBar);
this.scoreProgressBar.value = (this.score / 200).toFixed(2);
var scoreRect = this.scoreProgressBox.addChild(new FYGE.Shape());
scoreRect.beginFill(0xff0000, 1);
scoreRect.drawRect(460, 130, 5, 30);
scoreRect.endFill();
this.scoreTips = this.UIBox.addChild(new FYGE.TextField());
this.scoreTips.x = 250;
this.scoreTips.y = 178;
......@@ -2374,7 +2378,7 @@ var StartScene = (function (_super) {
};
StartScene.prototype.gameStart = function () {
var _this = this;
this.hasRedBag = false;
this.hasLuckyBag = false;
clearInterval(this.gameTimer);
this.gameTimer = setInterval(function () {
if (_this.pause) {
......@@ -2459,7 +2463,8 @@ var StartScene = (function (_super) {
addScoreTxt_1.y = this_1.cowBox.y;
switch (rain.spType) {
case "luckyBag":
this_1.hasRedBag = true;
this_1.hasLuckyBag = true;
this_1.rainLuckyBag = false;
this_1.score += 20;
addScoreTxt_1.text = "+20";
this_1.addChild(addScoreTxt_1);
......@@ -2510,13 +2515,16 @@ var StartScene = (function (_super) {
this.checkGetRain();
this.count++;
var rainNum = layers_1.layers.stageHeight >= 1334 ? 30 : 20;
if (this.rains.length < rainNum && this.count % 60 == 0) {
if (this.rains.length < rainNum && this.count % 50 == 0) {
var rain = this.rainBox.addChild(new FYGE.Sprite(this.res("redPacket")));
rain.y = -200;
rain.x = Math.max(10 * Math.random(), 680 * Math.random());
rain['speed'] = Math.max(this.SPEED * Math.random(), 6);
var type = GameConst_1.arr.getRandomOne(this.rainConfig);
if (this.hasRedBag) {
if (type == "luckyBag") {
this.rainLuckyBag = true;
}
if (this.hasLuckyBag || this.rainLuckyBag) {
type = "redPacket";
}
switch (type) {
......@@ -2547,6 +2555,9 @@ var StartScene = (function (_super) {
this.rains[i].speed += this.ADDSPEED;
this.rains[i].alpha = (this.rains[i].y < layers_1.layers.stageHeight - 300 ? 1 : (layers_1.layers.stageHeight - this.rains[i].y - 100) / 300);
if (this.rains[i].y > 1800) {
if (this.rains[i].type == "luckyBag") {
this.rainLuckyBag = false;
}
this.rainBox.removeChild(this.rains[i]);
GameConst_1.arr.removeEle(this.rains[i], this.rains);
}
......
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