-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (109 loc) · 3.72 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
<!DOCTYPE html>
<html>
<head>
<title>Fire 'n Ice</title>
<link rel="stylesheet" type="text/css" href="./css/styles.css" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="./favicon-16x16.png"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
/>
<meta
property="og:image"
content="https://eugenioenko.github.io/fire-n-ice/images/thumbnail.png"
/>
<meta
property="og:description"
content="Fire'n Ice is a remake in progress of a NES game with the same name, known also as Solomon's Key 2"
/>
<script src="./dist/firenice.js"></script>
</head>
<body>
<div class="wrapper">
<h1>Fire 'n Ice</h1>
<p>
A remake of the game from NES with the same name.
<a href="https://github.com/eugenioenko/fire-n-ice"
><i class="fab fa-github" style="font-size: 16px; margin: 0"></i>View
project page</a
>
</p>
</div>
<div class="wrapper">
<canvas id="canvas" height="416" width="544">
<div style="display: none">
<audio id="sfx-ice-push" src="sounds/sfx-ice-push.mp3"></audio>
<audio id="sfx-fire-off" src="sounds/sfx-fire-off.mp3"></audio>
<audio id="sfx-falling" src="sounds/sfx-falling.mp3"></audio>
<audio id="sfx-new-ice" src="sounds/sfx-new-ice.mp3"></audio>
<audio id="sfx-climb" src="sounds/sfx-climb.mp3"></audio>
<audio
id="sfx-ice-collision"
src="sounds/sfx-ice-collision.mp3"
></audio>
<audio id="sfx-stage-enter" src="sounds/sfx-stage-enter.mp3"></audio>
<audio id="sfx-danger" src="sounds/sfx-danger.mp3"></audio>
<audio id="sfx-ice-remove" src="sounds/sfx-ice-remove.mp3"></audio>
<audio id="sfx-state-leave" src="sounds/sfx-state-leave.mp3"></audio>
<audio id="sfx-disabled" src="sounds/sfx-disabled.mp3"></audio>
<audio id="sfx-fall" src="sounds/sfx-fall.mp3"></audio>
<audio id="sfx-music-sparks" src="music/sparks.mp3"></audio>
</div>
</canvas>
<div class="bg-dark" id="loader">
<div class="start blink">CLICK TO START</div>
</div>
</div>
<div class="wrapper">
<div class="col-50 bg-dark">
<span class="fa fa-arrow-circle-left" id="btn_left"></span>
<span class="fa fa-arrow-circle-right" id="btn_right"></span>
</div>
<div class="col-50 bg-dark">
<span class="fa fa-redo-alt" id="btn_select"></span>
<span class="fa fa-dot-circle pull-right" id="btn_action"></span>
</div>
</div>
<div class="wrapper">
<div class="col-50" id="level-selector" style="opacity: 0">
<h3>Level Select</h3>
<div id="lvl-select"></div>
<script>
let $select = document.getElementById("lvl-select");
let levels = 30;
let options = "";
for (let i = 0; i <= levels; ++i) {
options +=
'<button class="lvl" lvl="' +
i +
'"' +
">[" +
(i + 1) +
"]</button>";
}
$select.innerHTML += options;
</script>
</div>
<div class="col-50">
<h3>Controls</h3>
<ul id="controls">
<li><b>Left</b> and <b>Right</b> move player</li>
<li><b>Down / Space / Circle</b> creates an ice block</li>
<li><b>Enter / Redo</b> reloads current Level</li>
</ul>
</div>
</div>
</body>
</html>