Commit 39c589a3 authored by haiyoucuv's avatar haiyoucuv

更改

parent 05cd1b79
......@@ -124,7 +124,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
......
......@@ -124,7 +124,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
......@@ -198,7 +198,7 @@
"x": 0,
"y": 0
},
"_radius": 66.5,
"_radius": 67,
"_id": ""
},
{
......
......@@ -124,7 +124,7 @@
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
......@@ -198,7 +198,7 @@
"x": 0,
"y": 0
},
"_radius": 103.5,
"_radius": 100,
"_id": ""
},
{
......
import { _decorator, Component, Node } from 'cc';
import { sendWebNetWithToken, WebNetName } from "../../Utils/WebNet/WebNet";
import store from "../../../store/store";
const {ccclass, property} = _decorator;
......@@ -9,7 +10,7 @@ export class GuideLayer extends Component {
guide1: Node = null;
guide2: Node = null;
start() {
async start() {
this.guide1 = this.node.getChildByName("guide1");
this.guide2 = this.node.getChildByName("guide2");
......@@ -18,9 +19,10 @@ export class GuideLayer extends Component {
this.node.on(Node.EventType.TOUCH_END, this.onTouchEnd, this);
sendWebNetWithToken(WebNetName.guide, {
await sendWebNetWithToken(WebNetName.guide, {
flag: 1,
}, null, null, false);
store.updateIndex();
}
......
......@@ -38,6 +38,7 @@ import { LOG_TYPE, sendLog } from "../../Utils/WebNet/WebNet";
const {ccclass, property} = _decorator;
const InitY = -135;
const BallScale = 0.8;
@ccclass("MainGame")
export class MainGame extends Scene {
......@@ -242,7 +243,7 @@ export class MainGame extends Scene {
ball.setScale(0, 0);
this.readyRoot.addChild(ball);
tween(ball)
.to(0.1, {scale: v3(1, 1, 1)})
.to(0.1, {scale: v3(BallScale, BallScale, 1)})
.call(() => {
this.newBall = ball;
})
......@@ -296,7 +297,7 @@ export class MainGame extends Scene {
);
tween(newBall)
.to(0.2, {scale: v3(1, 1, 1)})
.to(0.2, {scale: v3(BallScale, BallScale, 1)})
.start();
});
......@@ -474,7 +475,7 @@ export class MainGame extends Scene {
const ballPos = ball.getPosition();
const dis = ballPos.subtract(v3(pos.x, pos.y, 0)).length();
if (dis < ballSize.width / 2) {
if (dis < ballSize.width / 2 * ball.scale.x) {
const ballTs = ball.getComponent(Ball);
ballTs.preRemove = true;
await this.chippingBall(ball);
......
......@@ -4,6 +4,21 @@
<meta charset="utf-8">
<title>合成大唱片</title>
<script id="monitorjs" src="//yun.duiba.com.cn/woodpecker/sdk/0.0.36/woodpecker_outer.js" ></script>
<script id="registerMonitor">
// 烽火台注入前端监控脚本,请勿修改
try {
woodpecker.setConfig({
projectId: "pf2fac9b7",
developer: [
"fa17c4667c62b5ba014f382c0802a462"
],
});
} catch (e) {
console.error(e);
}
</script>
<!--http://www.html5rocks.com/en/mobile/mobifying/-->
<meta name="viewport"
......@@ -39,7 +54,7 @@
<script src="//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js" crossorigin="anonymous"></script>
<script src="//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"></script>
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723536297134/style.css"/>
<link rel="stylesheet" type="text/css" href="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723602803212/style.css"/>
<style>
.sui-captcha {
......@@ -99,16 +114,16 @@
</script>
<!-- Polyfills bundle. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723536297134/src/polyfills.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723602803212/src/polyfills.bundle.js" charset="utf-8"></script>
<!-- SystemJS support. -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723536297134/src/system.bundle.js" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723602803212/src/system.bundle.js" charset="utf-8"></script>
<!-- Import map -->
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723536297134/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>
<script src="//yun.duiba.com.cn/db_games/ccc_game/template3d/1723602803212/src/import-map.json" type="systemjs-importmap" charset="utf-8"></script>
<script>
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1723536297134/index.js').catch(function (err) {
System.import('//yun.duiba.com.cn/db_games/ccc_game/template3d/1723602803212/index.js').catch(function (err) {
console.error(err);
})
</script>
......
{"proSetting":{"projectxIDs":{"devId":[],"testId":[{"label":"test","value":"p7139e1d5"}],"prodId":[]},"skinVariables":[],"mockSetting":{"projectId":"","pageId":""}},"envSetting":{},"psdSetting":{"psdFSSetting":true,"psdCenterSetting":true}}
{"proSetting":{"projectxIDs":{"devId":[],"testId":[{"label":"test","value":"p7139e1d5"}],"prodId":[{"label":"prod","value":"pf2fac9b7"}]},"skinVariables":[],"mockSetting":{"projectId":"","pageId":""}},"envSetting":{},"psdSetting":{"psdFSSetting":true,"psdCenterSetting":true}}
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