-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (97 loc) · 5.62 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Adventures of Red - A Platformer game</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="theme-color" content="#000000" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
body {
margin: 0;
padding: 0;
background-color: #000000;
overflow: hidden;
}
#canvasArea {
margin-left: auto;
margin-right: auto;
overflow: hidden;
}
</style>
<!-- Libs and GDJS core files : -->
<script src="libs/jshashtable.js" crossorigin="anonymous"></script>
<script src="logger.js" crossorigin="anonymous"></script>
<script src="gd.js" crossorigin="anonymous"></script>
<script src="libs/rbush.js" crossorigin="anonymous"></script>
<script src="inputmanager.js" crossorigin="anonymous"></script>
<script src="jsonmanager.js" crossorigin="anonymous"></script>
<script src="timemanager.js" crossorigin="anonymous"></script>
<script src="runtimeobject.js" crossorigin="anonymous"></script>
<script src="profiler.js" crossorigin="anonymous"></script>
<script src="runtimescene.js" crossorigin="anonymous"></script>
<script src="scenestack.js" crossorigin="anonymous"></script>
<script src="polygon.js" crossorigin="anonymous"></script>
<script src="force.js" crossorigin="anonymous"></script>
<script src="layer.js" crossorigin="anonymous"></script>
<script src="timer.js" crossorigin="anonymous"></script>
<script src="runtimegame.js" crossorigin="anonymous"></script>
<script src="variable.js" crossorigin="anonymous"></script>
<script src="variablescontainer.js" crossorigin="anonymous"></script>
<script src="oncetriggers.js" crossorigin="anonymous"></script>
<script src="runtimebehavior.js" crossorigin="anonymous"></script>
<script src="spriteruntimeobject.js" crossorigin="anonymous"></script>
<script src="events-tools/commontools.js" crossorigin="anonymous"></script>
<script src="events-tools/variabletools.js" crossorigin="anonymous"></script>
<script src="events-tools/runtimescenetools.js" crossorigin="anonymous"></script>
<script src="events-tools/inputtools.js" crossorigin="anonymous"></script>
<script src="events-tools/objecttools.js" crossorigin="anonymous"></script>
<script src="events-tools/cameratools.js" crossorigin="anonymous"></script>
<script src="events-tools/soundtools.js" crossorigin="anonymous"></script>
<script src="events-tools/storagetools.js" crossorigin="anonymous"></script>
<script src="events-tools/stringtools.js" crossorigin="anonymous"></script>
<script src="events-tools/windowtools.js" crossorigin="anonymous"></script>
<script src="events-tools/networktools.js" crossorigin="anonymous"></script>
<script src="splash/gd-logo-dark.js" crossorigin="anonymous"></script>
<script src="pixi-renderers/pixi.js" crossorigin="anonymous"></script>
<script src="pixi-renderers/pixi-filters-tools.js" crossorigin="anonymous"></script>
<script src="pixi-renderers/runtimegame-pixi-renderer.js" crossorigin="anonymous"></script>
<script src="pixi-renderers/runtimescene-pixi-renderer.js" crossorigin="anonymous"></script>
<script src="pixi-renderers/layer-pixi-renderer.js" crossorigin="anonymous"></script>
<script src="pixi-renderers/pixi-image-manager.js" crossorigin="anonymous"></script>
<script src="pixi-renderers/pixi-bitmapfont-manager.js" crossorigin="anonymous"></script>
<script src="pixi-renderers/spriteruntimeobject-pixi-renderer.js" crossorigin="anonymous"></script>
<script src="pixi-renderers/loadingscreen-pixi-renderer.js" crossorigin="anonymous"></script>
<script src="pixi-renderers/pixi-effects-manager.js" crossorigin="anonymous"></script>
<script src="howler-sound-manager/howler.min.js" crossorigin="anonymous"></script>
<script src="howler-sound-manager/howler-sound-manager.js" crossorigin="anonymous"></script>
<script src="fontfaceobserver-font-manager/fontfaceobserver.js" crossorigin="anonymous"></script>
<script src="fontfaceobserver-font-manager/fontfaceobserver-font-manager.js" crossorigin="anonymous"></script>
<script src="Extensions/PlatformBehavior/platformruntimebehavior.js" crossorigin="anonymous"></script>
<script src="Extensions/PlatformBehavior/platformerobjectruntimebehavior.js" crossorigin="anonymous"></script>
<script src="Extensions/PlatformBehavior/platformtools.js" crossorigin="anonymous"></script>
<script src="Extensions/TiledSpriteObject/tiledspriteruntimeobject.js" crossorigin="anonymous"></script>
<script src="Extensions/TiledSpriteObject/tiledspriteruntimeobject-pixi-renderer.js" crossorigin="anonymous"></script>
<script src="Extensions/TextObject/textruntimeobject.js" crossorigin="anonymous"></script>
<script src="Extensions/TextObject/textruntimeobject-pixi-renderer.js" crossorigin="anonymous"></script>
<script src="code0.js" crossorigin="anonymous"></script>
<script src="data.js" crossorigin="anonymous"></script>
</head>
<body>
<script>
(function() {
//Initialization
var game = new gdjs.RuntimeGame(gdjs.projectData, {});
//Create a renderer
game.getRenderer().createStandardCanvas(document.body);
//Bind keyboards/mouse/touch events
game.getRenderer().bindStandardEvents(game.getInputManager(), window, document);
//Load all assets and start the game
game.loadAllAssets(function() {
game.startGameLoop();
});
})();
</script>
</body>
</html>