starting to work on the endless runner
This commit is contained in:
parent
934fffac63
commit
5d11f87dd3
3 changed files with 120 additions and 2 deletions
|
@ -0,0 +1,34 @@
|
|||
body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
|
||||
.game-container {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
canvas {
|
||||
border: 2px solid black;
|
||||
background-color: white;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#restartBtn {
|
||||
margin-top: 10px;
|
||||
padding: 10px 20px;
|
||||
font-size: 16px;
|
||||
background-color: #007bff;
|
||||
color: white;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#restartBtn:hover {
|
||||
background-color: #0056b3;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue