-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (49 loc) · 1.25 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
---
layout: default
title: "Emerald Hunt"
description: "A JavaScript Clone"
---
<!DOCTYPE html>
<html>
<head>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<title>Emerald Hunt</title>
<style>
body {
background-image: url(resources/wallpaper.png);
background-color: black;
}
</style>
</head>
<body>
<div>
<p>
<canvas id="huntCanvas">
This browser can not run this game (canvas support missing).
</canvas>
</p>
<p>
Back in 2014 I couldn't find a copy of the original EmeraldHunt game that I fondly remembered from my childhood.
</p>
<p>
As a challenge to myself, and to work on my JavaScript skills, I decided to rewrite the game in native JavaScript
(no additional libraries).
</p>
<p>
I've since found the original game files, and uploaded them to <a href="http://www.abandonia.com/en/games/31445/Emerald+Hunt.html">Abandonia</a>.
</p>
</div>
</body>
</html>
<script type="module">
import {EmeraldHunt} from "./js/hunt.js";
import {ScreenshotAnalyser} from "./js/screenshot.js";
window.onload = init;
var app;
async function init() {
let canvas = document.getElementById("huntCanvas");
canvas.focus();
app = new EmeraldHunt(canvas);
await app.init();
};
</script>