forked from greyblue9/text-adventure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
58 lines (40 loc) · 1.17 KB
/
index.php
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
require_once('Tokenizer.class.inc');
require_once('Parser.class.inc');
require_once('Executive.class.inc');
session_start();
if (isset($_GET['reset']))
{
session_destroy();
session_start();
}
$tokenizer = new Tokenizer(file_get_contents('main.game'));
$parser = new Parser($tokenizer);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head>
<link rel="stylesheet" href="main.css" type="text/css" />
<title>The Game</title>
</head>
<div id="infobar">
Location
<div id="score">SCORE: 0</div>
<div class="clear"></div>
</div>
<div id="main"> <br/> <br/>
<?php
?>
</div>
<table style="width: 100%; margin: 0; border: 0 none; padding: 0;">
<tr>
<td style="width: 37px">
<div id="prompt_arrows"> >> </div>
</td>
<td>
<input id="prompt" value="">
</td>
<td style="width: 8px"></td>
</tr>
</table>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="main.js"></script>