-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplay.php
60 lines (48 loc) · 1.39 KB
/
play.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
<!DOCTYPE html>
<!-- fetch css links & title format -->
<?php
include './php/common.php';
links("Play");
title("Play");
?>
<header>
<?php
nav_bar();
?>
<link rel="stylesheet" href="./css/animations.css">
</header>
<div class="hero">
<section>
<!-- fetch background video -->
<?php
video_back('./Assests/video/Area.mp4')
?>
<!-- container where game will be embeded -->
<div class="game_container" id="main">
<div class= "Game_Stats" id="myBar">HEALTH :100% </div>
<div class= "Game_Stats" id="myScore">SCORE:0</div>
<div class= "Game_Stats" id="myHighScore">HIGHSCORE:0</div>
<canvas id="canvas_1"> </canvas>
<canvas id="canvas_2"> </canvas>
<canvas id="canvas_3"> </canvas>
<canvas id= "Progress_bar">
<canvas>
<script src="./js/script_animation.js"></script>
<script type="module" src="./js/background_animation.js"></script>
<script type="module" src="./js/enemies_animation.js"></script>
<script>
window.addEventListener('keydown', function(e) {
if(e.keyCode == 32 && e.target == document.body) {
e.preventDefault();
}
});
</script>
</div>
<span id="game_over"></span>
<span id="not_logged-in"></span>
</section>
</div>
</body>
<?php
footer_function();
?>