-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
86 lines (80 loc) · 2 KB
/
main.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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta
name="description"
content="Nostalgic Bounce game from old Nokia phones made in JavaScript."
/>
<meta
name="keywords"
content="Bounce, nokia, game, javascript, js, side-scrolling, tile-based, old-game, clone"
/>
<link
rel="shortcut icon"
type="image/ico"
href="assetts/tile/ball_small.png"
/>
<title>Bounce Nokia Game Clone</title>
<style>
@font-face {
font-family: "GameFont";
src: url("assetts/fonts/YanoneKaffeesatz-Bold.ttf");
}
body {
background-color: #f1f1f1;
}
#gameArea {
position: absolute;
width: 640px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
canvas {
margin: 0;
padding: 0;
display: block;
font-family: "GameFont";
}
.game-finished {
width: 480px;
height: 270px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.level-menu {
width: 640px;
height: 360px;
position: absolute;
top: 0;
left: 0;
}
.gbar {
width: 630px;
height: 40px;
position: absolute;
top: 5px;
left: 5px;
}
</style>
</head>
<body>
<div id="gameArea"></div>
<script src="js/title.js"></script>
<script src="js/sprite.js"></script>
<script src="js/input.js"></script>
<script src="js/entity.js"></script>
<script src="js/enemy.js"></script>
<script src="js/player.js"></script>
<script src="js/canvas.js"></script>
<script src="js/map.js"></script>
<script src="js/level.js"></script>
<script src="js/game.js"></script>
<script src="js/main.js"></script>
</body>
</html>