removed unused sfx; added local packaging script
[wall] / index.php
1 <html>
2 <head>
3 <?php
4 require_once "../../lib/php/gamelib.php";
5 ?>
6 <title>Mound</title>
7 <link rel="stylesheet" href="style.css" type="text/css" />
8 <script type="text/javascript" src="../../lib/javascript/volatile/Math.js"></script>
9 <script type="text/javascript" src="../../lib/javascript/volatile/Color.js"></script>
10 <script type="text/javascript" src="script.js"></script>
11 </head>
12 <body>
13 <div style="display: none">
14 <audio id="owls" src="resource/Owls.ogg" loop></audio>
15 <audio id="bgm" src="resource/Up_and_go.ogg" loop></audio>
16 <audio id="theme" src="resource/Me-ate.ogg" loop></audio>
17 <img id="logo" src="resource/logo_1.png" />
18 <img id="flag-0" src="resource/flag/0.png" />
19 <img id="flag-1" src="resource/flag/1.png" />
20 <img id="person" src="resource/person.png" />
21 <img id="spike" src="resource/spike.png" />
22 <img id="brick" src="resource/AlbicHorizon.jpg" />
23 <img id="block" src="resource/brick.png" />
24 <img id="instructions" src="resource/instructions.png" />
25 <img id="acid-rain" src="resource/acid-rain.png" />
26 <img id="cactus" src="resource/cactus.png" />
27 <img id="no" src="resource/no.png" />
28 <img id="yes" src="resource/yes.png" />
29 <?php
30 chdir("resource/plant");
31 foreach (glob("*") as $id)
32 {
33 echo "<img id=\"plant-$id-full\" src=\"resource/plant/$id/full.png\" />\n";
34 echo "<img id=\"plant-$id-empty\" src=\"resource/plant/$id/empty.png\" />\n";
35 }
36 chdir("..");
37 chdir("texture");
38 foreach (glob("*") as $index => $path)
39 {
40 echo "<img class=\"texture\" id=\"texture-$index\" src=\"resource/texture/$path\" />\n";
41 }
42 chdir("../..");
43 ?>
44 </div>
45 <?php
46 print_sfx_containers(null, "resource/sfx");
47 ?>
48 <div id="container">
49 <img id="fs" src="resource/fs.png" />
50 <canvas id="game" width="800" height="480">
51 CANVAS NOT SUPPORT :(
52 </canvas>
53 </div>
54 </body>
55 </html>