Skip to content

Commit

Permalink
Adjust the map
Browse files Browse the repository at this point in the history
  • Loading branch information
Tag Eom committed Jul 29, 2023
1 parent c527f0e commit cbc83e9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -282,24 +282,24 @@

document.querySelector('#btnShuffle').click();

const currentNotice = 20230721;
const currentNotice = 20230729;
const closed = parseInt(localStorage.getItem('noticeClose') || '0', 10);
console.log('current, closed', currentNotice, closed);

if (closed < currentNotice) {
console.log('open notice');
document.querySelector('#notice').classList.remove('hide');
}

document.querySelector('#btnNoticeClose').addEventListener('click', () => {
document.querySelector('#notice').classList.add('hide');
localStorage.setItem('noticeClose', '20230721');
localStorage.setItem('noticeClose', String(currentNotice));
});
});
</script>
<div id="notice" class="hide">
<h3>Change logs</h3>
<dl>
<dt>2023-07-29</dt>
<dd>Adjusted the map to prevent a marble stays too long in a specific place.</dd>
<dt>2023-07-21</dt>
<dd>Show change logs when there is a new update.</dd>
<dd>Improve the performance when there are too many marbles in the game.</dd>
Expand Down
6 changes: 6 additions & 0 deletions src/data/maps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ export const stages: StageDef[] = [
[1.25, 41],
[1.25, 53.75],
[8.25, 58.75],
[8.25, 63],
[9.25, 64],
[8.25, 65],
[8.25, 99.25],
[15.1, 106.75],
[15.1, 111.75]
Expand All @@ -178,6 +181,9 @@ export const stages: StageDef[] = [
[19, 45.5],
[19, 55.5],
[24, 59.25],
[24, 63],
[23, 64],
[24, 65],
[24, 100.5],
[16, 106.75],
[16, 111.75]
Expand Down

0 comments on commit cbc83e9

Please sign in to comment.