Commit 6a385fc3 authored by 李维's avatar 李维

打乱泡泡顺序

parent 326386db
...@@ -602,6 +602,7 @@ export default class GameLogic { ...@@ -602,6 +602,7 @@ export default class GameLogic {
] ]
let pAll = [] let pAll = []
let count = 0; let count = 0;
this.m_bubblesAll.sort(()=>Math.random()>0.5?-1:1);
this.m_bubblesAll.forEach((bubble, index) => { this.m_bubblesAll.forEach((bubble, index) => {
if(!bubble.move.fix) { if(!bubble.move.fix) {
bubble.node.x = startx; bubble.node.x = startx;
......
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