Skip to content

Commit

Permalink
all
Browse files Browse the repository at this point in the history
  • Loading branch information
PradipSable07 committed Sep 8, 2023
1 parent c174a5f commit 98a2296
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions 02_Snake_Game/assets/script.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
let inputDirection = { x: 0, y: 0 };
const board = document.getElementById("board");
const scoreElement = document.getElementById("score");
const foodSound = new Audio("/02_Snake_Game/assets/music/eatSound.mp3");
const moveSound = new Audio("/02_Snake_Game/assets/music/move.mp3");
const gameOverSound = new Audio("/02_Snake_Game/assets/music/gameover.mp3");
const musicSound = new Audio("/02_Snake_Game/assets/music/music.mp3");
const foodSound = new Audio("./music/eatSound.mp3");
const moveSound = new Audio("./music/move.mp3");
const gameOverSound = new Audio("./music/gameover.mp3");
const musicSound = new Audio("./music/music.mp3");
const playPauseBtn = document.getElementById("play-pause-btn");
let speed = 2;
let score = 0;
Expand Down
2 changes: 1 addition & 1 deletion 02_Snake_Game/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
box-sizing: border-box;
}
main {
background: url(/02_Snake_Game/assets/img/bg.jpg);
background: url(../assets/img/bg.jpg);
min-height: 100vh;
background-size: 100vw 100vh;
background-repeat: no-repeat;
Expand Down
4 changes: 2 additions & 2 deletions 02_Snake_Game/snake.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snaku Game</title>
<link rel="stylesheet" href="/02_Snake_Game/assets/style.css">
<link rel="stylesheet" href="./assets/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-..." crossorigin="anonymous" />
</head>

Expand All @@ -27,6 +27,6 @@ <h3>Snaku Game</h3>
</div>
</main>
</body>
<script src="/02_Snake_Game/assets/script.js"></script>
<script src="./assets/script.js"></script>

</html>

0 comments on commit 98a2296

Please sign in to comment.