mode permainan, seperti PvAI
This commit is contained in:
parent
464fde393d
commit
dde6183e24
97
mode.php
Normal file
97
mode.php
Normal file
@ -0,0 +1,97 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (!isset($_SESSION['user_id'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
$username = htmlspecialchars($_SESSION['username']);
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="id">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Dam Inggris - Menu</title>
|
||||
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
background: #f0f4f8;
|
||||
color: white;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.menu-box {
|
||||
background: white;
|
||||
padding: 30px 40px;
|
||||
border-radius: 12px;
|
||||
text-align: center;
|
||||
width: 340px;
|
||||
box-shadow: 0 8px 25px rgba(0,0,0,0.15);
|
||||
}
|
||||
|
||||
.menu-box h1 {
|
||||
margin: 0 0 20px;
|
||||
font-size: 26px;
|
||||
color: #0ea5a4;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin: 10px 0;
|
||||
padding: 14px;
|
||||
border-radius: 10px;
|
||||
border: none;
|
||||
font-size: 17px;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.btn-pvp {
|
||||
background: #0ea5a4;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-pvai {
|
||||
background: #6366f1;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn:hover {
|
||||
opacity: .85;
|
||||
background: #0c8c8b;
|
||||
}
|
||||
|
||||
.logout {
|
||||
margin-top: 18px;
|
||||
display: block;
|
||||
color: #94a3b8;
|
||||
text-decoration: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="menu-box">
|
||||
<h1>Halo <?= $username ?>, Silahkan Pilih Mode Game</h1>
|
||||
|
||||
<form action="game.php" method="GET">
|
||||
<button type="submit" name="mode" value="pvp" class="btn btn-pvp">
|
||||
🧑🤝🧑 Player vs Player
|
||||
</button>
|
||||
|
||||
<button type="submit" name="mode" value="pvai" class="btn btn-pvai">
|
||||
🤖 Player vs AI
|
||||
</button>
|
||||
</form>
|
||||
|
||||
|
||||
<a class="back-btn" href="menu.php">⬅ Kembali Ke Menu</a>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user