53 lines
1.6 KiB
PHP
Executable File
53 lines
1.6 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
|
|
<html dir="ltr" lang="en">
|
|
|
|
<head>
|
|
<title>
|
|
Dice game
|
|
</title>
|
|
<?php
|
|
$DESCRIPTION = "A simple dice game where you can roll some dice to collect more points and use those points to buy upgrades for the dice.";
|
|
require_once '../include/all.php';
|
|
?>
|
|
<script type='text/javascript' src='/javascript/functions.js'></script>
|
|
<script type='text/javascript' src='index.js'></script>
|
|
</head>
|
|
|
|
<body>
|
|
<?php
|
|
require_once '../include/menu.php';
|
|
echo "<div class='main'>";
|
|
?>
|
|
<h1>Dice Game</h1>
|
|
<div id='winGame' class='popup'>
|
|
<div class='popup-content'>
|
|
<h1>Guess the roll to win!</h1>
|
|
<p>You have <c id='winGameRollsLeft'></c> rolls left.</p>
|
|
<p id='winGameText'></p>
|
|
<input id='guess' type='number' min='1' max='20' value='10'></input>
|
|
<button id='winGameRoll'>Roll 20 sided die</button>
|
|
</div>
|
|
</div>
|
|
<div class='column2'>
|
|
<h3>Roll Result</h3>
|
|
<h2 id='multiplier'></h2>
|
|
<div id='rollResult'></div>
|
|
<button id='roll'>Roll dice</button>
|
|
<p>You have rolled the dice <c id="diceRolls">0</c> times.</p>
|
|
<p>You have <c id='points'>0</c> point(s).</p>
|
|
<h3>Other Purchases</h3>
|
|
<div id='otherShop'></div>
|
|
</div>
|
|
<div class='column2'>
|
|
<h3>Dice Upgrades</h3>
|
|
<div id='diceShop'></div>
|
|
<h3>Permanent Upgrades</h3>
|
|
<div id='reset'></div>
|
|
</div>
|
|
<div class='red'><button onclick="completeReset()">Reset Game Completely</button></div>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|