Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions Double_player_javascript/double_player_game.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>3D Tic Tac Toe</title>
<style>
#menu {
position: absolute;
bottom: 20px;
width: 100%;
text-align: center;
}

body {
margin: 0;
}

button {
color: rgba(127, 255, 255, 0.75);
background: rgba(14, 20, 20, 0.75);
outline: 1px solid rgba(127, 255, 255, 0.75);
border: 0px;
padding: 5px 10px;
cursor: pointer;
}

button:hover {
background-color: rgba(0, 255, 255, 0.5);
}

.gameover {
position: absolute;
top: 10vh;
width: 20%;
left: 40%;
text-align: center;
background: rgba(248, 86, 86, 0.5);
border-radius: 10px;
font-weight: bold;
animation-name: growAndShrink;
animation-duration: 1s;
animation-iteration-count: infinite;
visibility: hidden;




}

.gameovervis {
visibility: visible;
}

@keyframes growAndShrink {

0%,
100% {
transform: scale(1);
}

/* Initial and final state: normal size */
50% {
transform: scale(1.05);
}

/* Middle state: slightly larger size */
}
</style>
</head>

<body>
<script type="module" src="/public/double_player_game.js"></script>
<div id="menu">
<button id="restart">RESTART</button>
<button id="back_menu">MAIN MENU</button>
<button id="undo">UNDO</button>
</div>
<div class="gameover ">
</div>
</body>

</html>
Loading