You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.0 KiB
28 lines
1.0 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Document</title>
|
|
</head>
|
|
<body onload="initGame()" id="game">
|
|
<h1> Mini hra</h1>
|
|
|
|
<ul id="enemy">
|
|
<li>Nepřítel: <span id="enemyName">enemyName</span></li>
|
|
<li>HP: <span id="enemyHp">enemyHp</span></li>
|
|
<li>Útočné číslo: <span id="enemyDmg">enemyDmg</span></li>
|
|
</ul>
|
|
|
|
<ul id="hero">
|
|
<li><button onclick="heal()">Vylečit</button> - máš <span id="heroHp">heroHp</span> HP</li>
|
|
<li><button onclick="attack()">Útočit</button> - Zaútoč se svou zbraní. tvoje ÚČ je <span id="heroDmg">heroDmg</span></li>
|
|
<li><button onclick="defense()">Bránit se</button> - Ubraň se. <span id="heroDefense">heroDefense</span></li>
|
|
<li><button onclick="luck()">Náhoda</button> - zkus své štěstí</li>
|
|
</ul>
|
|
|
|
<div id="battlelog">Historie boje: <br> </div>
|
|
|
|
<script src="game.js"></script>
|
|
</body>
|
|
</html>
|