-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (64 loc) · 2.66 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
<!DOCTYPE html>
<html>
<head>
<script src="https://unpkg.com/ml5@0.4.3/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 background="background.jpg">
<center>
<div class="btn btn-info heading">
<h3>AI mario game</h3>
<button class="btn btn-success" data-toggle = "modal" data-target="#myModal">Instructions</button>
<br>
<span class="btn btn-primary">A mario ripoff where you control mario's actions with your nose. epic, innit-</span>
</div>
<img src="mario.jpg" class="welcomeScreen">
<br>
<br>
<button class="btn btn-success start" onclick = "startGame()" style="font-size: 22px;">Start</button>
<br>
<br>
<h3 class="btn btn-warning" id="status" style="font-size: 22px;"></h3>
<br>
<br>
<div id="canvas"></div>
<div id="gameConsole"></div>
<h4>
<a href="https://github.com/linuk">Source Code</a> || Game used as reference: Mari0
</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="instuction_image">
<img src="left.png" class="intruction_image">
<img src="right.png" class="instrction_image">
</div>
</div>
</div>
</div>
</center>
</body>
</html>