Update index.html
This commit is contained in:
parent
a334dc5bec
commit
4c353781b1
53
index.html
53
index.html
@ -1,25 +1,40 @@
|
|||||||
<?php
|
|
||||||
if(isset($_POST['score'])){
|
|
||||||
$score = $_POST['score'];
|
|
||||||
file_put_contents("scores.txt", "Score: $score\n", FILE_APPEND);
|
|
||||||
exit();
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="id">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Memory Card Game</title>
|
<title>Neon Block Tower</title>
|
||||||
<link rel="stylesheet" href="style.css">
|
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Memory Card Game</h1>
|
|
||||||
<div id="game"></div>
|
<div class="main-wrapper">
|
||||||
<div id="status">
|
<h1 class="game-title">NEON STACKER</h1>
|
||||||
<p>Moves: <span id="moves">0</span></p>
|
|
||||||
<p>Score: <span id="score">0</span></p>
|
<div id="game-container">
|
||||||
</div>
|
<canvas id="gameCanvas" width="350" height="550"></canvas>
|
||||||
<script src="script.js"></script>
|
|
||||||
|
<div id="ui-layer">
|
||||||
|
<h2 id="status-text">GAME OVER</h2>
|
||||||
|
<div class="score-box">
|
||||||
|
<p>SCORE</p>
|
||||||
|
<span id="final-score">0</span>
|
||||||
|
</div>
|
||||||
|
<button class="btn" onclick="resetGame()">RETRY</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="ingame-score">0</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="score-board">
|
||||||
|
<span class="label">BEST SCORE</span>
|
||||||
|
<div id="high-score-display">--</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="script.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Loading…
x
Reference in New Issue
Block a user