-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (57 loc) · 2.49 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
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/[email protected]/dist/ml5.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
<title>p5.play.Mario</title>
<!-- link p5.js and its addons like p5.dom.js or p5.sound.js -->
<script src="lib/p5.min.js" type="text/javascript"></script>
<!-- link p5.play.js -->
<script src="lib/p5.play.js" type="text/javascript"></script>
<!-- link p5.dom.js -->
<script src="lib/p5.dom.js" type="text/javascript"></script>
<!-- link your javascript sketch -->
<script src="scripts/sprites.js" type="text/javascript"></script>
<script src="main.js" type="text/javascript"></script>
<script src="characters_environment.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.0.0/addons/p5.sound.min.js"></script>
</head>
<body>
<center>
<div class="btn btn-primary heading">
<h3>Mario Game</h3>
<button class="bt btn-primary" data-toggle="modal" data-target="#myModal">Instructions</button>
</div>
<img src="mario.jpg" class="big_image">
<br><br>
<button class="btn btn-success" id="start" onclick="startGame()">Play Game</button>
<br><br>
<h3 id="status" class="btn btn-warning"></h3>
<br><br>
<div id="canvas"></div>
<div id="game_console"></div>
<h4>
Source Code : <a href="https://github.com/linuk">Linuk</a> || Game Credit : Mario
</h4>
<div id="myModal" class="modal fade ">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button class="close" data-dismiss="modal">×</button>
<h4>Instructions</h4>
</div>
<div class="modal-body">
<img src="jump.png" class="instruction_image">
<img src="right.png" class="instruction_image">
<img src="left.png" class="instruction_image">
</div>
</div>
</div>
</div>
</center>
</body>
</html>