-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
90 lines (89 loc) · 2.33 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="./phaser-3.55.2/dist/phaser-arcade-physics.js"></script>
<script src="./maps/level-1.js"></script>
<script src="./game.js"></script>
<meta charset="UTF-8">
<title>Man Pac</title>
<style>
body {
margin: 0;
padding: 0;
}
#menu {
z-index: 100;
position: absolute;
display: block;
left: 0;
width: 775px;
height: 775px;
top: 0;
background: #fff;
}
.main, .winner {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.winner h2 {
margin-top: 100px;
}
.logo-container {
margin-top: 50px;
text-align: center;
}
.play {
margin-top: 200px;
width: 600px;
height: 60px;
background: white;
border: 1px solid #ccc;
cursor: pointer;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
font-weight: 200;
font-size: 24px;
}
.play:active {
box-shadow: none;
margin-top: 201px;
}
.hidden {
display: none !important;
}
#timer {
position: absolute;
z-index: 5;
left: 325px;
top: 400px;
font-size: 25px;
display: block;
width: 125px;
text-align: center;
}
</style>
</head>
<body>
<div id="menu">
<div id="main" class="main">
<div class="logo-container">
<img src="assets/logo-euskal.png" alt="Euskal Encounter 30 - Fast FOSS Game">
</div>
<button onclick="GAME.start()" class="play">Hasi!</button>
</div>
<div id="p1-winner" class="winner hidden">
<h2>Partya irabazle!</h2>
<button id="p1-replay" onclick="GAME.restart()" class="play">Berriro!</button>
</div>
<div id="p2-winner" class="winner hidden">
<h2>Birusa garaile!</h2>
<h3><span id="sobrean"></span> soberan</h3>
<button id="p2-replay" onclick="GAME.restart()" class="play">Berriro!</button>
</div>
</div>
<div id="timer">
2:00
</div>
</body>
</html>