This repository was archived by the owner on Apr 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (48 loc) · 1.55 KB
/
Copy pathindex.html
File metadata and controls
59 lines (48 loc) · 1.55 KB
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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Your PIT Game</title>
<script src="js/phaser.min.js"></script>
<script src="js/boot.js"></script>
<script src="js/preload.js"></script>
<script src="js/gametitle.js"></script>
<script src="js/thegame.js"></script>
<script src="js/gameover.js"></script>
<script src="js/settings.js"></script>
<script type="text/javascript">
WebFontConfig = {
google: { families: [ 'Rock+Salt::latin' ] }
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
wf.type = 'text/javascript';
wf.async = 'true';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(wf, s);
})(); </script>
<style> body{
margin:0;
background:black;
}
</style>
<script>
(function() {
//Game initialisieren
var game = new Phaser.Game(1000, 800, Phaser.AUTO, "game");
//States hinzufügen
game.state.add("Boot",boot);
game.state.add("Preload",preload);
game.state.add("GameTitle",gametitle);
game.state.add("TheGame",thegame);
game.state.add("GameOver", gameover);
//Start BootScreen
game.state.start("Boot");
})();
</script>
</head>
<body>
</body>
</html>