Skip to content

Commit

Permalink
removed the flickering effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Shistuu committed Jun 6, 2023
1 parent fb40666 commit e6ff346
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
6 changes: 3 additions & 3 deletions MergeMania/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<body>
<div class="container">
<h2 class="title"><span class=c1>MERGE</span> MANIA</h2> </div>
<div id="timer">00:00</div>
<div id="timer" style="display: none;">00:00</div>
<div id="warning-message"></div>
<div class="level-container">
<div class="level">
Expand All @@ -21,11 +21,11 @@ <h2 class="title"><span class=c1>MERGE</span> MANIA</h2> </div>
</div>
</div>

<div id="score-container">
<div id="score-container" style="display: none;">
<div class="cscore-text">Current Score: <span id="current-score">0</span></div>
<div class="hscore-text">High Score: <span id="high-score">0</span></div>
</div>
<div id="container"></div>
<div id="container" style="display: none;"></div>

<div id="game-over-modal" class="modal">
<div class="modal-content">
Expand Down
5 changes: 0 additions & 5 deletions MergeMania/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ export function initializeLevels() {
const SCORE_CONTAINER = document.getElementById("score-container");
const TITLE_CONTAINER = document.querySelector(".title");

// Hide game-related elements initially
GAME_CONTAINER.style.display = "none";
TIMER.style.display = "none";
SCORE_CONTAINER.style.display = "none";

// Add event listeners to each level button
LEVEL_BUTTONS.forEach((button) => {
button.addEventListener("click", handleLevelButtonClick);
Expand Down
7 changes: 1 addition & 6 deletions MergeMania/styles.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
/* set the grid size, cell size, and cell gap for the game board. */
:root {
--grid-size: 4;
--cell-size: 100px;
--cell-gap: 10px;
}

body {
margin: 0;
font-size: 40px;
Expand Down

0 comments on commit e6ff346

Please sign in to comment.