-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
130 lines (108 loc) · 4.92 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="datafiles/icon.ico" />
<title>Qualli</title>
<link rel = "Stylesheet" type = "text/css" href = "Master.css"/>
<script type="module">
import * as f from "./datafiles/javascript/functions.js";
import * as g from "./datafiles/javascript/globals.js";
import Settings from "./datafiles/javascript/engine/Settings.js";
import ProgressManager from "./datafiles/javascript/appEtc/ProgressManager.js";
import Game from "./datafiles/javascript/engine/Game.js";
// TODO remove workaround
window.f = f;
window.g = g;
window.Settings = Settings;
window.ProgressManager = ProgressManager;
window.onload = () => {
var game = new Game();
window.game = game;
}
</script>
</head>
<!-- <body onLoad="main()" onresize="onResize()"> -->
<body onresize="game.resizeCanvas()">
<div id="ressources" style="visibility: collapse; position: fixed;">
<img id="img_Erde" src="datafiles/sprites/Erde3.png" width="0" height="0"/>
<img id="img_Linsenreflex" src="datafiles/sprites/Linsenreflex.png" width="0" height="0"/>
<img id="img_Linsenreflex_schwach" src="datafiles/sprites/Linsenreflex_schwach.png" width="0" height="0"/>
<img id="img_Sterne" src="datafiles/sprites/Sterne.png" width="0" height="0"/>
<img id="img_Planet" src="datafiles/sprites/Planet.png" width="0" height="0"/>
<img id="lock" src="datafiles/sprites/lock.png" width="0" height="0"/>
<img id="qualleRed" src="datafiles/sprites/qualleRed.png" width="0" height="0"/>
<img id="qualleBlue" src="datafiles/sprites/qualleBlue.png" width="0" height="0"/>
<img id="qualleGreen" src="datafiles/sprites/qualleGreen.png" width="0" height="0"/>
<img id="qualleYellow" src="datafiles/sprites/qualleYellow.png" width="0" height="0"/>
<!-- Medals -->
<img id="medalGold" src="datafiles/sprites/medals/gold.png" width="0" height="0"/>
<img id="medalSilver" src="datafiles/sprites/medals/silver.png" width="0" height="0"/>
<img id="medalBronze" src="datafiles/sprites/medals/bronze.png" width="0" height="0"/>
<img id="bubble" src="datafiles/sprites/bubble4.png" width="0" height="0"/>
<img id="bgMenu" src="datafiles/sprites/bg5FullHd.png" width="0" height="0"/>
<img id="bg0" src="datafiles/sprites/bg8FullHd.png" width="0" height="0"/>
<img id="bgMenuDark" src="datafiles/sprites/bg5dark.png" width="0" height="0"/>
</div>
<div id="endgameOverlay" class="overlay hidden">
<div id="endgameContent" class="overlayContent">
<h1>Game Over</h1>
<h2 id="egWon"></h2>
<div id="egTime"></div>
<br>
<div>
<input id="egRestart" type="button" value="Restart ♻" onClick="game.room.restart(); game.hideEndgame();" />
<input id="egResume" type="button" value="Resume ▶" onClick="game.hideEndgame();" />
<input id="egExit" type="button" value="Exit 🚪" onClick="game.room.return(); game.hideEndgame()" />
</div>
</div>
</div>
<div id="pausedOverlay" class="overlay hidden">
<div id="pausedContent" class="overlayContent">
<h1>Paused</h1>
<div>
<input id="pResume" type="button" value="Resume ▶" onClick="Settings.unpause()" />
<input id="pSettings" type="button" value="Settings ⚙" onClick="Settings.show()" />
</div>
<br>
<br>
<div>
<input id="pRestart" type="button" value="Restart ♻" onClick="if(game.room.restart(true) != false) { Settings.unpause() }" />
<input id="pExit" type="button" value="Exit 🏳" onClick="game.room.surrender()" />
</div>
</div>
</div>
<div id="settingsOverlay" class="overlay hidden">
<div id="settingsContent" class="overlayContent">
<h1>Settings</h1>
<br>
<label for="sMute">Mute</label>
<input id="sMute" type="checkbox" onchange="Settings.toggleMute()" />
<br>
<label for="sScaling">Scaling</label>
<!-- TODO intialize checkboxes in program -->
<input id="sScaling" type="checkbox" checked onchange="Settings.toggleScaling()" />
<br>
<label for="sJellyGlow">Jelly Glow</label>
<!-- TODO intialize checkboxes in program -->
<input id="sJellyGlow" type="checkbox" checked onchange="Settings.toggleJellyGlow()" />
<br>
<label for="sExperimental">Experimental</label>
<input id="sExperimental" type="checkbox" checked onchange="Settings.toggleExperimental()" />
<br>
<label for="sDebug">Debug</label>
<input id="sDebug" type="checkbox" onchange="Settings.toggleDebug()" />
<br>
<div>
<input id="sReset" type="button" value="Reset Progress ♻" onClick="game.progressManager.reset()" />
<input id="sClose" type="button" value="Close Settings ❌" onClick="Settings.hide()" />
</div>
</div>
</div>
<noscript>
<p style="font-size: 1.5em; color: red; background: yellow; text-align: center;">
Fehler: JavaScript wird nicht unterstützt oder ist deaktiviert.
</p>
</noscript>
</body>
</html>