Skip to content

Commit

Permalink
修改获得分数为正常分数的2倍的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hec9527 committed May 23, 2021
1 parent fff1256 commit 96b8088
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,17 @@ body {

/* 移动端适配 */
@media screen and (max-width: 780px) {
* {
border: none !important;
box-shadow: none !important;
}
html,
body,
#continer {
display: block;
width: 100vw;
height: 100vh;
overflow: hidden;
}
#continer {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/js/game-release-2.1.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@
animationMove(cFlag, cIndex);
board[cIndex[0]][cIndex[1]] = board[cIndex[0]][cIndex[1]] * 2;
board[cFlag[0]][cFlag[1]] = 0;
score.add(board[cIndex[0]][cIndex[1]] * 2);
score.add(board[cIndex[0]][cIndex[1]]);
}
continue lable1;
} // 当指针指向的方块的数字为0 的时候继续查看下一个方块
Expand Down

1 comment on commit 96b8088

@vercel
Copy link

@vercel vercel bot commented on 96b8088 May 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.