-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
127 lines (111 loc) · 3.04 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
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
<html>
<head>
<title>Cpt Black Pixel</title>
<link href=favicon.png rel="shortcut icon" />
<style text="text/css">
@font-face {
font-family: Pixeltype;
src: url(assets/Pixeltype.ttf);
}
@keyframes createBox {
from {
transform: scale(0);
}
to {
transform: scale(1);
}
}
a {
color: #747574;
}
body {
font-size: 2em;
margin: 0;
background-color: #222;
text-align: center;
display: flex;
flex: 1;
flex-direction: column;
justify-content: center;
}
#modal {
position: fixed;
top: 20%;
bottom: 20%;
left: 10%;
right: 10%;
background-color: #000;
border: 15px double #e7e7e7;
display: none;
animation: createBox .5s;
color: #fff;
font-family: Pixeltype;
}
#modalContent {
height: 100%;
overflow: auto;
}
#modal ul li {
list-style: none;
}
#modalClose, #help-button {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
}
#help-button {
color: #fff;
font-family: Pixeltype;
}
#sound-control {
position: absolute;
top: 10px;
right: 150px;
cursor: pointer;
color: #fff;
font-family: Pixeltype;
}
#about {
position: absolute;
top: 10px;
left: 10px;
font-family: Pixeltype;
}
.help-text {
margin-top: 20%;
}
</style>
</head>
<body>
<canvas id="game"></canvas>
<a id="about" href="/about.html">Contacts</a>
<div id="sound-control" onclick="javascript:SoundControl.toggle()"></div>
<div id="help-button" onclick="javascript:Modal.showHelpModal()">How to play</div>
<div id="modal">
<div id="modalClose" onclick="javascript:Modal.hide()">X</div>
<div id="modalContent"></div>
</div>
<audio id="music-player" src="assets/a-farming-we-will-go.mp3" loop></audio>
<a href="http://mrjoshuamclean.com/" id="music-link" target="_blank" style="display: none;"></a>
<a href="https://www.dafont.com/pt/pixeltype.font" id="font-link" target="_blank" style="display: none;"></a>
</body>
<script src="js/sound.js"></script>
<script src="js/graphics.js"></script>
<script src="js/modal.js"></script>
<script src="js/camera.js"></script>
<script src="js/input.js"></script>
<script src="js/images.js"></script>
<script src="js/spritesheet.js"></script>
<script src="js/engine.js"></script>
<script src="js/projects.js"></script>
<script src="js/components/stage.js"></script>
<script src="js/components/background.js"></script>
<script src="js/components/floor.js"></script>
<script src="js/components/band.js"></script>
<script src="js/components/player.js"></script>
<script src="js/game.js"></script>
<script>
Game.init(document.querySelector("#game"))
</script>
</html>