-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlevel1.php
78 lines (63 loc) · 1.99 KB
/
level1.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
// Start Session
if (!isset($_SESSION)) {
session_start();
}
// Current level declaration
$level = 1;
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<meta name="viewport" content="width=device-width, user-scalable=no">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquerymobile/1.4.5/jquery.mobile.js"></script>
<script>
$lanes = 2;
$tickLength = 5;
$speed = 1;
$gameLength = 55000;
$scorePass = 40;
$levelNum = 1;
</script>
<script src="scripts/menus.js"></script>
<script src="scripts/game.js"></script>
<script src="scripts/swipemod.js"></script>
<script src="scripts/mainloop.js"></script>
<title>SwipeAway - Level 1</title>
</head>
<body>
<div id="desktop">
<h1>SwipeAway</h1>
</div>
<div id="container">
<!-- Game start overlay -->
<?php require_once('lib/startoverlay.php'); ?>
<!-- Level passed overlay -->
<?php require_once('lib/levelpassed.php'); ?>
<!-- Level failed overlay -->
<?php require_once('lib/levelfailed.php'); ?>
<!-- Game paused overlay-->
<?php require_once('lib/pauseoverlay.php');?>
<div id="ui">
<div id="progress"><div id="cProgress"></div></div>
<div id="score"><span class="fadeScore">Score: </span><span id="cScore">0</span>
<span class="fadeScore"> / <span id="scorePass"></span></span></div>
<div id="pause"><img src="images/pause.png" id="pause"></div>
</div>
<!-- UI Bar -->
<div class="track" id="t1">
<!-- Track 1 -->
</div>
<div class="track" id="t2">
<!-- Track 2 -->
</div>
</div>
<h2 id="portError">You are holding your phone in portrait mode.<br>
For the best experience playing our game, please hold your phone in landscape mode.</h2>
<?php require_once('lib/gamesound.php'); ?>
</body>
</html>