-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
124 lines (98 loc) · 3.38 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
<?php
session_start();
if(!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] == false){
header("Location: login.php");
}
?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<title> TRABALHO 3 - PHP </title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<header>
<div id="logo">
<img id="tetris-logo" src="img/project-logo.png" alt="logotipo">
</div>
</header>
<section>
<button id="button" onclick="pauseGame()">Pause game</button>
<button id="button2" onclick="startGame()">Restart game</button>
<button id="button3" onclick="instructWindow()">Instructions</button>
<button id="button5" onclick="document.location.href='historico.php'">Histórico de partidas</button>
<button id="button6" onclick="document.location.href='ranking.php'">Ranking global</button>
<button id="button7" onclick="document.location.href='alterar.php'">Alterar dados</button>
<button id="button8" onclick="document.location.href='deslogar.php'">Deslogar</button>
<canvas id="Matriz"></canvas>
</div>
<div id="next">
<div class="title">
<h3>Next Piece</h3>
<hr>
</div>
<div class="canvas-lateral">
<canvas id="next-canvas"></canvas>
</div>
</div>
<div id="score">
<div class="title">
<h3>Score</h3>
</div>
<div id="score-info">
<hr>
<p id="time">Time: 0 seconds</p>
<p id="rows">Eliminated rows: 0</p>
<p id="points">Points: 0</p>
<p id="level">Nível: 1</p>
<hr>
</div>
</div>
<div id="hold">
<div class="title">
<h3>Holded Piece</h3>
<hr>
</div>
<div class="canvas-lateral">
<canvas id="hold-canvas"></canvas>
</div>
</div>
<div id="rank">
<div class="title">
<h3>Ranking</h3><hr>
<ul id="dados"></ul>
</div>
</div>
<div id="instructions">
<h2>Instructions</h2>
<div class="key">
<img src="img/up-key.png" alt="Up arrow">
<p>Move piece foward</p>
</div>
<div class="key">
<img src="img/left-key.png" alt="Left arrow">
<p>Move piece to the left</p>
</div>
<div class="key">
<img src="img/right-key.png" alt="Right arrow">
<p>Move piece to the right</p>
</div>
<div class="key">
<img src="img/down-key.png" alt="Down arrow">
<p>Rotate piece</p>
</div>
<div class="key">
<img src="img/c-key.png" alt="C key">
<p>Hold piece to use it later</p>
</div>
<div class="key">
<img src="img/p-key.png" alt="P key">
<p>Pause/unpause game</p>
</div>
<button id="button4" onclick="instructWindow()">Ok</button>
</div>
</section>
<script src="Tetris.js"></script>
</body>
</html>