-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·100 lines (88 loc) · 3.19 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>PumpBall</title>
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/animate.css" />
<!-- wow.js is responsible of animation of appearing elements !-->
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>
</head>
<body>
<!-- Title, Small score, Canvas !-->
<h1>PUMP BALL</h1>
<h3 id="scoreCounter">Score: <span id="score"></span></h3>
<div class="canvas-size">
<canvas id="myCanvas" width="750" height="500" class="wow zoomIn select-level" ></canvas>
</div>
<!-- Main menu !-->
<div id="main-menu" class="wow zoomIn close">
<button type="button" name="Play" onclick="GameInit();">PLAY</button>
<button type="button" name="Play" onclick="LevelSelect();">LEVEL SELECT</button>
<button type="button" name="Play" onclick="ShowOnScreen('controlls','#17a689');">CONTROLLS</button>
</div>
<!-- controlls !-->
<div id="controlls" class="close">
<h1>Controlls</h1>
<h3>To start game, just click "PLAY" button.</h3>
<div class="steering">
<h1> ← </h1>
<h1> → </h1>
<h2>Move your paddle </h2>
</div>
<button type="button" onclick="GameInit();">PLAY</button>
<button type="button" onclick="ShowOnScreen('main-menu','#1abc9c');">MENU</button>
</div>
<!-- gameover screen !-->
<div id="game-over" class="close" >
<h2>Game Over!</h2>
<h3>Your Score: <span id="finalScore_1"></span></h3>
<h4>Don't give up! <br>Click "RESTART" button.</h3>
<button type="button" onclick="GameInit();">RESTART</button>
<button type="button" onclick="ShowOnScreen('main-menu','#1abc9c');">MENU</button>
</div>
<!-- win screen !-->
<div id="you-won" class="close">
<h2>You Won!</h2>
<h3>Your Score: <span id="finalScore_2"></span></h3>
<button type="button" onclick="GameInit();">NEXT</button>
<button type="button" onclick="ShowOnScreen('main-menu','#1abc9c');">MENU</button>
</div>
<!-- level locked screen !-->
<div class="level-locked select-level close">
<div class="locker">
<img src="images/lock27.png" alt="lock" />
</div>
<h1>Level <span class="level-numer"></span> locked</h1>
<h3>To unlock, finish previous level</h3>
</div>
<!-- level unlocked screen !-->
<div class="level-unlocked select-level close">
<h1>Level <span class="level-numer"></span></h1>
<h3>Click "PLAY"</h3>
<button type="button" name="Play" onclick="GameInit();">PLAY</button>
</div>
<!-- levels selectors !-->
<div class="next close" onclick="NextLevel();">
<img src="images/next21.png" alt="prev" />
</div>
<div class="prev close" onclick="PreviousLevel();">
<img src="images/next21.png" alt="next" />
</div>
<!-- Footer !-->
<h4>Find Us</h4>
<ul>
<li><a href="#"><img src="images/facebook2.png" alt="Facebook" /></a></li>
<li><a href="#"><img src="images/linkedin1.png" alt="LinkedIn" /></a></li>
<li><a href="https://github.com/lukas124/pumpBall"><img src="images/github17.png" alt="GitHub" /></a></li>
</ul>
<p>
Copyright © 2015 Szczepan, Łukasz & Mariusz.<br />All Rights Reserved.
</p>
<?php require_once('scripts_link.php'); ?>
</body>
</html>