Skip to content

Commit

Permalink
13_whack_a_mole(game) started
Browse files Browse the repository at this point in the history
  • Loading branch information
nitishkhobragade committed Feb 24, 2024
1 parent a0c9137 commit 17d5c86
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 0 deletions.
Empty file added 13_whack_a_mole(game)/app.js
Empty file.
Binary file added 13_whack_a_mole(game)/images/mario-bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 13_whack_a_mole(game)/images/monty-mole.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 13_whack_a_mole(game)/images/pipe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 13_whack_a_mole(game)/images/piranha-plant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 13_whack_a_mole(game)/images/soil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions 13_whack_a_mole(game)/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Whack a Mole Game</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<h1>Whack a Mole</h1>
<h2 id="score">0</h2>
<div id="board"></div>


<script src="./app.js"></script>
</body>
</html>
20 changes: 20 additions & 0 deletions 13_whack_a_mole(game)/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
body {
font-family: Arial, Helvetica, sans-serif;
text-align: center;
background: url("./images/mario-bg.jpg");
background-size: cover;
}

#board {
/* background-color: green; */
width: 540px;
height: 540px;
margin: 0 auto;

display: flex;
flex-wrap: wrap;
background: url(./images/soil.png);
background-size: cover;
border: 3px solid white;
border-radius: 20px;
}

0 comments on commit 17d5c86

Please sign in to comment.