-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (33 loc) · 962 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title id="title">Doodleman</title>
<link rel="stylesheet" href="res/style.css"/>
<link href="https://fonts.googleapis.com/css?family=Fredoka+One|Gochi+Hand" rel="stylesheet">
<link rel="manifest" href="manifest.json">
<meta name="viewport" content="user-scalable=no">
</head>
<body>
<div id="doodleman"></div>
<script type="module">
import {Engine} from './js/scribble.js';
import DoodlemanGame from './js/doodleman.js';
window.onload = () => {
let engine = new Engine("doodleman", 640, 360, {
images: "list/images.json",
sounds: "list/sounds.json",
animations: "list/animations.json"
});
engine.ready(() => {
engine.loadGame(DoodlemanGame);
});
if (window.location.hostname == "localhost") {
console.log(engine);
console.log(engine.objects.map)
window.engine = engine;
window.map = engine.objects.map;
}
};
</script>
</body>
</html>