forked from TylerPottsDev/chrome-dino-replica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
46 lines (46 loc) · 1.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="robots" content="noindex">
<title>Novios saltarines</title>
<style>
body {
margin: 0px;
padding: 0px;
box-sizing: border-box;
}
#game {
margin: 0px;
padding: 0px;
display: block;
image-rendering: pixelated;
}
#gameover {
margin: 0px;
display: none;
position: absolute;
width: 100%;
height: 100%;
top: 0px;
}
#gameover * {
text-align: center;
font-family: 'Courier New', Courier, monospace;
}
</style>
<script>
function redirectOnVictory() {
window.location = 'invitation.html'+window.location.search;
}
var mainScript = document.createElement("script");
mainScript.src = "main.js"+window.location.search;
document.head.appendChild(mainScript);
</script>
</head>
<body onload="StartLoadingImages()">
<canvas id="game" width="640" height="400"></canvas>
<div id="gameover" onclick="Start()"><h1 id="endtext">GAME OVER</h1><p id="repeattext">Pulsa para reiniciar</p></div>
</body>
</html>