Commit 5a213dcd authored by 杨一航's avatar 杨一航

fix

parent 04702541
{
"ver": "2.3.5",
"uuid": "0466d0d3-525f-4561-acac-f93bec87cc63",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2560,
"height": 1920,
"platformSettings": {},
"subMetas": {
"背景": {
"ver": "1.0.4",
"uuid": "c350522a-bf06-4630-b63d-be50c12f73fc",
"rawTextureUuid": "0466d0d3-525f-4561-acac-f93bec87cc63",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2560,
"height": 1920,
"rawWidth": 2560,
"rawHeight": 1920,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
...@@ -331,6 +331,9 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -331,6 +331,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
// bg1.width = cc.winSize.width; // bg1.width = cc.winSize.width;
// bg1.height = cc.winSize.height; // bg1.height = cc.winSize.height;
let shave = cc.find("Canvas/road/box/shave");
shave.scaleX = this._mapScaleMax;
let node1 = cc.find(`Canvas/road/root/pieceRed`); let node1 = cc.find(`Canvas/road/root/pieceRed`);
node1.position = this._redPointRoot.getChildByName("0").position node1.position = this._redPointRoot.getChildByName("0").position
this._myBear = node1.getChildByName("bear") this._myBear = node1.getChildByName("bear")
...@@ -554,7 +557,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -554,7 +557,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
let node = cc.find(`Canvas/road/root/piece${this._status.current}`); let node = cc.find(`Canvas/road/root/piece${this._status.current}`);
let nowIdx = this._status[this._status.current]; let nowIdx = this._status[this._status.current];
let nextIdx = nowIdx + this._status.step; let nextIdx = nowIdx + this._status.step;
this.playLocalAudio("piece"); this.playLocalAudio("wrong");
await this.pieceMove(node, nowIdx, nextIdx); await this.pieceMove(node, nowIdx, nextIdx);
//todo //todo
// this.playLocalAudio("wrong"); // this.playLocalAudio("wrong");
......
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