2024-06-21 12:36:09 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Battle</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Battle</h1>
|
|
|
|
<form id="joinForm">
|
|
|
|
<input type="text" id="username" placeholder="Enter your name" required>
|
|
|
|
<select id="gameMode" required>
|
|
|
|
<option value="" disabled selected>Select game mode</option>
|
|
|
|
<option value="solo">Solo</option>
|
|
|
|
<option value="team">Team</option>
|
|
|
|
</select>
|
|
|
|
<input id="team" type="number" style="display: none;">
|
|
|
|
<button type="submit">Join Game</button>
|
|
|
|
</form>
|
|
|
|
<div id="gameContainer" style="display: none;">
|
|
|
|
<div id="gameState"></div>
|
|
|
|
<div id="fighters"></div>
|
|
|
|
<select id="targetPlayer"></select>
|
|
|
|
<button value="basic_attack" id="submitMove">Basic Attack</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="battle.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|