-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
87 lines (74 loc) · 2.56 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
<!DOCTYPE html>
<html>
<head>
<title>SnaKey - David F.</title>
<meta name='author' content='David Fong' />
<meta name='description' content='An original game based on the snake game.' />
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
<meta charset='UTF-8' />
<link rel='icon' href='favicon.ico' type='image/png'/>
<script src='source/sounds.js'> </script>
<script src='source/options_menu.js'> </script>
<script src='source/pos.js'> </script>
<script src='source/trail.js'> </script>
<script src='source/player.js'> </script>
<script src='source/game.js'> </script>
<!-- Main Formatting: -->
<link rel='stylesheet'
type='text/css'
href='assets/style.css'>
</style>
<!-- List of language filenames: -->
<script>
const INTERPRETERS = new Map();
INTERPRETERS.register = (interpreter) => {
INTERPRETERS.set(
interpreter.prototype.langName,
interpreter.prototype.constructor
);
}
</script>
<script charset='UTF-8' src='assets/languages/eng.js'></script>
<script charset='UTF-8' src='assets/languages/jpn_h.js'></script>
<script charset='UTF-8' src='assets/languages/jpn_k.js'></script>
<!--
<script charset='UTF-8' src='assets/languages/kor_kbd.js'></script>
<script charset='UTF-8' src='assets/languages/kor_rmn.js'></script>
-->
<!-- List of color scheme filenames: -->
<script>
const coloringSourceFileNames = [
'dark_theme_nw', 'sheep',
];
</script>
<!-- Variable Color Scheme: -->
<link rel='stylesheet'
type='text/css'
id='coloringSource'>
</head>
<!-- DOCUMENT BODY -->
<body style='margin:0px;'>
<div class='background'></div>
<main class='vBars'>
<!-- CONTROLS & SCORING -->
<div id='scoringBar' class='menubar'>controls & score</div>
<!-- OPTIONS & TUTORIAL -->
<div id='optionsBar' class='menubar'>options & tutorial</div>
<!-- GAME FRAME -->
<div id='gameBar'>
<table id='grid' class='grid'></table>
</div>
</main>
<!-- Run Game Code: -->
<script>
// Disable scroll-down via spacebar:
window.addEventListener('keydown', (event) => {
if (event.keyCode == 32 && event.target == document.body) {
event.preventDefault();
return false;
}
});
const GAME = new Game();
</script>
</body>
<html>