Commit 5e420866 authored by cc's avatar cc

update

parents 1b8e8932 c15b648a
......@@ -102,19 +102,20 @@
// alert("【警告】检测到活动url中没有appID参数\n缺少该参数会导致埋点、分享、app信息获取错误。")
}
</script>
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1748403015248/assets/index-D0bv85iK.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748403015248/assets/vendor-I-Q_U_Vg.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748403015248/assets/vendor-NZxPxbcK.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748403015248/assets/index-CyjeI5h6.css">
<script type="module" crossorigin src="https://yun.duiba.com.cn/db_games/spark/v3/1748403527156/assets/index-CNNxm7o0.js"></script>
<link rel="modulepreload" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748403527156/assets/vendor-CZit3a_g.js">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748403527156/assets/vendor-NZxPxbcK.css">
<link rel="stylesheet" crossorigin href="https://yun.duiba.com.cn/db_games/spark/v3/1748403527156/assets/index-9H1eBgMe.css">
<script type="module">import.meta.url;import("_").catch(()=>1);(async function*(){})().next();if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
<script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
</head>
<body>
<div id="root"></div>
<script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1748403015248/assets/polyfills-legacy-C2MhNPfJ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1748403015248/assets/index-legacy-CNrhjqg4.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
<script nomodule crossorigin id="vite-legacy-polyfill" src="https://yun.duiba.com.cn/db_games/spark/v3/1748403527156/assets/polyfills-legacy-C2MhNPfJ.js"></script>
<script nomodule crossorigin id="vite-legacy-entry" data-src="https://yun.duiba.com.cn/db_games/spark/v3/1748403527156/assets/index-legacy-R6_SBs_t.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
</body>
</html>
\ No newline at end of file
......@@ -48,10 +48,10 @@ export class Game extends Base {
const qsBg = this.addChild(new Sprite(Assets.get("问题.png")));
qsBg.position.set(49, 316);
// this.level = this.addChild(new Level21(this.setPauseCd));
this.level = this.addChild(new Level7(this.setPauseCd));
globalEvent.on(GameEvent.NextLevel, this.nextLevel, this);
this.nextLevel();
// this.nextLevel();
this.startCd();
}
......
......@@ -70,7 +70,12 @@ export class Level7 extends LevelBase {
const angle = this.calcAngle(x, y);
this.pig.angle = angle - this.sAngle;
if (this.pig.angle < -150 && this.pig.angle > -200) {
const pAngle = this.pig.angle % 360;
if (
(pAngle < -150 && pAngle > -200)
|| (pAngle > 160 && pAngle < 210)
) {
this.passLevel();
}
};
......
......@@ -28,13 +28,15 @@ class TipPanel extends React.Component<ITipPanelProps> {
render() {
const { tip } = this.props;
const isNoTimes = tip === "获取提示机会已用完";
return <div className="TipPanel modal_center">
<div className="bg"/>
<div className="text" dangerouslySetInnerHTML={{
__html: tip,
}}/>
<Button className="btn md15" onClick={this.clickBtn}/>
<Button className="close md16" onClick={this.clickClose}/>
<Button className={`btn md${isNoTimes ? 24 : 15}`} onClick={this.clickBtn}/>
<Button className={`close ${isNoTimes ? "" : "md16"}`} onClick={this.clickClose}/>
</div>;
}
}
......
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