-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.php
More file actions
34 lines (31 loc) · 1.08 KB
/
game.php
File metadata and controls
34 lines (31 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!-- This page serves as an interface for all the minigames. -->
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="styles/game_style.css"/>
<script type="text/javascript" src="scripts/jquery-3.3.1.min.js"></script>
<?php
$gameFile = $_GET["game"];
if(isset($gameFile)){
echo '<script type="text/javascript" src="games/' . $gameFile .'.js"></script>';
}
?>
</head>
<body>
<div id="back-box"><a href="index.html" title="Back to Main Page"><button id="back-button">❮</button></a></div>
<div id="title-box">
<div class="ctmenu"><button id="ctbutton">?</button><div class="ctcontent"><h2>Instructions</h2><p id="controls-text">Here are some example controls.</p></div></div>
<h1 id="game-title"></h1>
</div>
<div id="game-container">
<canvas id="board" width="512" height="512"></canvas>
<h2 id="game-over" class="red">Game Over</h2>
</div>
<div id="scoreboard">
<h1 id="score">Score: 0</h1>
<h1 id="hs">High Score: 0</h1>
</div>
<div id="box"><button id="sb" onclick="reset()">Start</button></div>
</body>
</html>