-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
executable file
·95 lines (89 loc) · 4.19 KB
/
main.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
<!DOCTYPE html>
<html>
<head>
<title>Infinite Mario - JavaScript</title>
<link rel="shortcut icon" href="https://www.honeycomb.io/wp-content/themes/honeycomb/assets/img/favicon/favicon.ico">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap" rel="stylesheet">
<style type="text/css">
html, body {
font-family: Roboto;
height: 100%;
margin: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
canvas {
border:1px solid gray;
}
</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src='https://fraigo.github.io/javascript-midi-player/midiplayer/WebAudioFontPlayer.js'></script>
<script src='https://fraigo.github.io/javascript-midi-player/midiplayer/MIDIFile.js'></script>
<script src='https://fraigo.github.io/javascript-midi-player/midiplayer/MIDIPlayer.js'></script>
</head>
<body>
<div>
<h1>Javascript Mario Brothers HTML5 Game</h1>
</div>
<div>
<p>This game is a version of <a href="https://github.com/robertkleffner/mariohtml5">mariohtml5</a> game that runs
on Web browser using HTML5. Use keypad for directions, and s for start, jump, and a for attack</p>
<p>Ths game is also instrumented using
Honeycomb's <a href="https://docs.honeycomb.io/get-started/start-building/web/">frontend observability</a> package.</p>
</div>
<div>
<canvas id="canvas" width="640" height="480">
<p>Your browser does not support the canvas element.</p>
</canvas>
<!-- Enjine Includes -->
<script src="Enjine/core.js"></script>
<script src="Enjine/gameCanvas.js"></script>
<script src="Enjine/keyboardInput.js"></script>
<script src="Enjine/resources.js"></script>
<script src="Enjine/drawable.js"></script>
<script src="Enjine/state.js"></script>
<script src="Enjine/gameTimer.js"></script>
<script src="Enjine/camera.js"></script>
<script src="Enjine/drawableManager.js"></script>
<script src="Enjine/sprite.js"></script>
<script src="Enjine/spriteFont.js"></script>
<script src="Enjine/frameSprite.js"></script>
<script src="Enjine/animatedSprite.js"></script>
<script src="Enjine/collideable.js"></script>
<script src="Enjine/application.js"></script>
<!-- Actual game code -->
<script src="code/setup.js"></script>
<script src="code/spriteCuts.js"></script>
<script src="code/level.js"></script>
<script src="code/backgroundGenerator.js"></script>
<script src="code/backgroundRenderer.js"></script>
<script src="code/improvedNoise.js"></script>
<script src="code/notchSprite.js"></script>
<script src="code/character.js"></script>
<script src="code/levelRenderer.js"></script>
<script src="code/levelGenerator.js"></script>
<script src="code/spriteTemplate.js"></script>
<script src="code/enemy.js"></script>
<script src="code/fireball.js"></script>
<script src="code/sparkle.js"></script>
<script src="code/coinAnim.js"></script>
<script src="code/mushroom.js"></script>
<script src="code/particle.js"></script>
<script src="code/fireFlower.js"></script>
<script src="code/bulletBill.js"></script>
<script src="code/flowerEnemy.js"></script>
<script src="code/shell.js"></script>
<script src="code/titleState.js"></script>
<script src="code/loadingState.js"></script>
<script src="code/loseState.js"></script>
<script src="code/winState.js"></script>
<script src="code/mapState.js"></script>
<script src="code/levelState.js"></script>
<script src="code/music.js"></script>
<script>$(document).ready(function() { new Enjine.Application().Initialize(new Mario.LoadingState(), 320, 240) });</script>
<script src="otel-load.js"></script>
</body>
</html>