-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
147 lines (126 loc) · 6.14 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Ninja Game</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta property="og:image" content="assets/parralax-mountain.png" />
<!-- Jquery, Scrollify and p5 CDN -->
<script src="https://code.jquery.com/jquery-1.11.1.min.js" integrity="sha256-VAvG3sHdS5LqTT+5A/aeq/bZGa/Uj04xKxY8KM/w9EE=" crossorigin="anonymous"></script>
<script src=https://cdnjs.cloudflare.com/ajax/libs/scrollify/1.0.14/jquery.scrollify.min.js></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.8/p5.js"></script>
<link rel="stylesheet" href="style/main.css" />
<link rel="stylesheet" href="style/profilecard.css" />
<link rel="stylesheet" href="style/animate.css" />
<link rel="shortcut icon" href="assets/sprites/jumpfall/superjump.png">
<link rel="image_src" href="assets/parallax-mountain.png" / >
<link rel="stylesheet" href="style/dialog.css" />
<link href="https://fonts.googleapis.com/css?family=Bungee|Bungee+Shade|Roboto:400,400i" rel="stylesheet">
<script language="javascript" type="text/javascript" src="p5/libraries/p5.sound.js"></script>
<script src="p5/libraries/p5.play.js"></script>
<script src="p5/libraries/p5.dom.js"></script>
<script src="js/ninja-game-main.js"></script>
<script src="js/Ninja.js"></script>
<script src="js/Collider.js"></script>
<script src="js/Pickup.js"></script>
<script src="js/Enemy.js"></script>
<script src="js/CustomPrompt.js"></script>
<script src="script/main.js"></script>
</head>
<body>
<section class="panel home" data-section-name="home">
<a target="_blank" href="http://www.oamk.fi/fi/"><img id="logo" src="assets/oamk_logo.png" alt="oamk logo"></a>
<div class="inner">
<div class="vertical-center">
<h1 class="animated fadeInDownBig">Ninja Game</h1>
<p>A simple web game</p>
<p>made with <span class="fa fa-heart"></span> by a bunch of OAMK students</p>
<p>Press W, S, A, D to play</p>
<a href="#play" class="scroll"></a>
</div>
</div>
<ul class="pagination">
<li><a href="#home" class="active"><span class="hover-text">Home</span></a></li>
<li><a href="#play"><span class="hover-text">Play</span></a></li>
<li><a href="#stats"><span class="hover-text">Stats</span></a></li>
<li><a href="#about"><span class="hover-text">About Us</span></a></li>
</ul>
</section>
<section class="panel play" data-section-name="play">
<div id="dialogoverlay"></div>
<div id="dialogbox">
<div>
<div id="dialogboxhead"></div>
<div id="dialogboxbody"></div>
<div id="dialogboxfoot"></div>
</div>
</div>
<div class="inner">
<div class="vertical-center" id="canvas-holder">
</div>
</div>
</section>
<section class="panel stats" data-section-name="stats">
<div class="inner">
<div class="vertical-center">
<?php
include "php/connection.php";
?>
<h2>High scores</h2>
<table border="1">
<tr>
<TH>Name</TH>
<TH>Score</TH>
</tr>
<?php
$myquery="SELECT name, score FROM scores order by score desc limit 10";
$high_scores=$db->query($myquery);
foreach ($high_scores as $row) {
echo '<tr><td>'.$row['name'].'</td><td>'.$row['score'].'</td>';
echo '</tr>';
}
?>
</table>
</div>
</div>
</section>
<section class="panel about" data-section-name="about">
<div class="inner profiles">
<div class="vertical-center">
<h2>About Us</h2>
<figure class="profileCard">
<div class="profile-image"><img src="assets/profile/dair.jpg" alt="sample47" /></div>
<figcaption>
<h3>Dair Baidauletov</h3>
<div class="icons"><a href="https://www.facebook.com/dair.baidauletov"><i class="fa fa-facebook-official"></i></a>
<a href="https://github.com/dairbuirabass"> <i class="fa fa-github"></i></a>
<a href="mailto:[email protected]"> <i class="fa fa-envelope"></i></a>
</div>
</figcaption>
</figure>
<figure class="profileCard">
<div class="profile-image"><img src="assets/profile/fayjus.jpg" alt="sample47" /></div>
<figcaption>
<h3>Fayjus Salehin</h3>
<div class="icons"><a href="https://www.facebook.com/fayjusss"><i class="fa fa-facebook-official"></i></a>
<a href="https://github.com/fayjusss"> <i class="fa fa-github"></i></a>
<a href="mailto:[email protected]"> <i class="fa fa-envelope"></i></a>
</div>
</figcaption>
</figure>
<figure class="profileCard">
<div class="profile-image"><img src="assets/profile/Hung.png" alt="sample47" /></div>
<figcaption>
<h3>Hung Dao</h3>
<div class="icons"><a href="https://www.facebook.com/hung.dao.nt"><i class="fa fa-facebook-official"></i></a>
<a href="https://github.com/hungntdao"> <i class="fa fa-github"></i></a>
<a href="#about"> <i class="fa fa-envelope"></i></a>
</div>
</figcaption>
</figure>
</div>
</div>
</section>
</body>
</html>