-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgames.html
More file actions
executable file
·262 lines (252 loc) · 9.47 KB
/
Copy pathgames.html
File metadata and controls
executable file
·262 lines (252 loc) · 9.47 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!DOCTYPE html>
<html lang="en" class="full-height">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Dovid Baum's Portfolio - 2018</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Material Design Bootstrap -->
<link href="css/mdb.min.css" rel="stylesheet">
</head>
<body>
<!--Main Navigation-->
<header>
<!--Navbar-->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top scrolling-navbar">
<div class="container">
<a class="navbar-brand" href="index.html"><strong>Dovid Baum</strong></a>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent-6"aria-controls="navbarSupportedContent-6"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent-6">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="#">Games<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="algorithms.html">Riddles & Algorithms</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://playlists-spotify-backend.herokuapp.com/login"
title="Takes a while to load because I am using Heroku's free backend server">Apps</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Profile</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Drawings</a>
</li>
</ul>
<form class="form-inline">
<div class="md-form mt-0">
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
</div>
</form>
</div>
</div>
</nav>
<!-- Canvas Section -->
<div class="view hm-black-light jarallax" data-jarallax='{"speed": 0.2}' style="background-color:#d1b58e">
<div class="full-bg-img">
<div class="container-fluid">
<div class="row pt-5 mt-3">
<div id="loader"></div>
<div id="sketch-holder" class="col-9"></div>
<div class="col-3">
<div class="row vbottomUp">
<div class="col-3"></div>
<div class="col-6">
<button id="upArrow" class="arrowKeys">
<span class="glyphicon glyphicon-menu-up" alt="^"></span>
</button>
</div>
<div class="col-3"></div>
</div>
<div class="row vbottomDirection">
<div class="col-6">
<button id="leftArrow" class="arrowKeys">
<span class="glyphicon glyphicon-menu-left" alt="<"></span>
</button>
</div>
<div class="col-6">
<button id="rightArrow" class="arrowKeys">
<span class="glyphicon glyphicon-menu-right" alt=">" id="righArrow"></span>
</button>
</div>
</div>
<div class="row vbottomDown">
<div class="col-3"></div>
<div class="col-6">
<button id="downArrow" class="arrowKeys">
<span class="glyphicon glyphicon-menu-down" id="downArrow" alt="v"></span>
</button>
</div>
<div class="col-3"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
<!--Main Layout-->
<main style="background-color: #939c9c">
<div class="container">
<div class="row py-5 mt-4">
<div class="col-12 text-center">
<h1 class="display-1 font-weight-bold">How to Play</h1>
<p class="display-4">Use arrow keys or Buttons</p>
<p class="display-3">Avoid the vehicles</p>
<p class="display-3">Jump on the Boats</p>
<p class="display-3">Reach the finish line</p>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="page-footer font-small darken-3 " style="background-color: #262626">
<div class="container">
<div class="row">
<div class="col-md-12 py-5">
<div class="mb-5 flex-center">
<!-- Quora -->
<a class="quora-ic">
<a href="https://www.quora.com/profile/Dovid-Baum-1/questions" title="Quora">
<i class="fa fa-quora fa-lg white-text mr-md-5 mr-3 fa-2x"> </i>
</a>
</a>
<!--Email-->
<a class="email-ic mr-3">
<a href=mailto:dovidbaum@gmail.com title="Email">
<i class="fa fa-lg fa-envelope-o white-text mr-md-5 mr-3 fa-2x"></i>
</a>
</a>
<!-- GITHUB-->
<a class="git-ic">
<a href="https://github.com/dovidbaum" title="Github">
<i class="fa fa-github fa-lg white-text mr-md-5 mr-3 fa-2x"></i>
</a>
</a>
<!--Linkedin -->
<a class="li-ic">
<a href="https://www.linkedin.com/in/dovidbaum/" title="LinkedIn">
<i class="fa fa-linkedin fa-lg white-text mr-md-5 mr-3 fa-2x"></i>
</a>
</a>
<!--Instagram-->
<a class="ins-ic">
<a href="https://www.instagram.com/dovidb/" title="Instagram">
<i class="fa fa-instagram fa-lg white-text mr-md-5 mr-3 fa-2x"> </i>
</a>
</a>
</div>
</div>
</div>
</div>
<!-- Copyright -->
<div class="footer-copyright text-center py-3">© 2018 Copyright:
<a href="https://mdbootstrap.com/bootstrap-tutorial/"> Dovid Baum</a>
</div>
</footer>
<!-- SCRIPTS -->
<!-- JQuery -->
<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
<!-- Bootstrap tooltips -->
<script type="text/javascript" src="js/popper.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="js/mdb.min.js"></script>
<!-- my files -->
<script src="libraries/p5.js" type="text/javascript"></script>
<script src="libraries/p5.dom.js" type="text/javascript"></script>
<script src="libraries/p5.sound.js" type="text/javascript"></script>
<script src="Frogger/rectangle.js" type="text/javascript"></script>
<script src="Frogger/obstacle.js" type="text/javascript"></script>
<script src="Frogger/lane.js" type="text/javascript"></script>
<script src="Frogger/frog.js" type="text/javascript"></script>
<script src="Frogger/frogger.js" type="text/javascript"></script>
<style>
.vbottomUp{
position: relative;
top: 65%;
transform: translateY(-65%);
}
.vbottomDirection{
position: relative;
top: 70%;
transform: translateY(-70%);
}
.vbottomDown{
position: relative;
top: 75%;
transform: translateY(-75%);
}
.glyphicon {
font-size: 6.5vw;
}
canvas {
border-radius: 16px;
}
.arrowKeys{
border-radius: 8px;
color: #222222;
background-color: #196a7f;
}
/* style for loading */
/* Center the loader */
#loader {
position: absolute;
left: 50%;
top: 50%;
z-index: 1;
width: 150px;
height: 150px;
margin: -75px 0 0 -75px;
border: 16px solid #f3f3f3;
border-radius: 50%;
border-top: 16px solid #88a624;
border-right: 16px solid #389fba;
border-bottom: 16px solid #fc0d1b;
width: 120px;
height: 120px;
-webkit-animation: spin 2s linear infinite;
animation: spin 2s linear infinite;
}
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Add animation to "page content" */
.animate-bottom {
position: relative;
-webkit-animation-name: animatebottom;
-webkit-animation-duration: 1s;
animation-name: animatebottom;
animation-duration: 1s
}
@-webkit-keyframes animatebottom {
from { bottom:-100px; opacity:0 }
to { bottom:0px; opacity:1 }
}
@keyframes animatebottom {
from{ bottom:-100px; opacity:0 }
to{ bottom:0; opacity:1 }
}
</style>
</body>
</html>