-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·235 lines (219 loc) · 11.7 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="A collection of hackable code templates made with p5.play, the JS library to learn gamedev">
<meta name="author" content="Matteo Menapace @baddeo">
<title>p5.playthings</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- custom styles -->
<link href="css/album.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono:300,300i,500,500i,700,700i" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<main role="main">
<section class="jumbotron">
<div class="container">
<h1 class="jumbotron-heading">Every<i class="accent">play</i><i>thing</i> is a remix!</h1>
<p class="lead">
Here's a collection of <i>hackable playthings</i> made with <a href="http://p5play.molleindustria.org/" target="_blank">p5.play</a>. Compiled by <a href="https://twitter.com/baddeo" target="_blank">Matteo</a>.
</p>
<p class="lead">
<a href="https://creative-coding.decontextualize.com/making-games-with-p5-play/" target="_blank">This tutorial</a> by Allison Parrish is an awesome intro to get started with p5.play.
</p>
<!--
<p>
<a href="#" class="btn btn-primary my-2">Main call to action</a>
<a href="#" class="btn btn-secondary my-2">Secondary action</a>
</p>
-->
</div>
</section>
<div class="album py-5">
<div class="container">
<div class="row">
<!-- A square sprite that falls gently and moves where you click. -->
<article class="col-md-4">
<div class="card mb-4 box-shadow">
<img class="card-img-top" src="https://media.giphy.com/media/2sgeoNwCKbODAg2UHj/giphy.gif" alt="A square sprite that falls gently and moves where you click.">
<div class="card-body">
<p class="description">A square sprite that falls gently and moves where you click.</p>
<div class="learning-goals">
Use this to learn how to:
<ul>
<li>create sprites</li>
<li>listen for mouse clicks</li>
</ul>
</div>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a class="btn btn-sm btn-outline-secondary" href="https://thimbleprojects.org/baddeo/469462/" target="_blank">View it</a>
<a class="btn btn-sm btn-outline-secondary" href="https://thimble.mozilla.org/projects/469462/remix" target="_blank">Remix it</a>
</div>
<!-- <small class="text-muted">easy</small> -->
</div>
</div>
</div>
</article>
<!-- An emoji sprite that falls gently and moves where you click. -->
<article class="col-md-4">
<div class="card mb-4 box-shadow">
<img class="card-img-top" src="https://media.giphy.com/media/2fPidneRUz3IzMDZVY/giphy.gif" alt="An emoji sprite that falls gently and moves where you click.">
<div class="card-body">
<p class="description">An emoji sprite that falls gently and moves where you click.</p>
<div class="learning-goals">
Use this to learn how to:
<ul>
<li>preload an image</li>
<li>add an image to a sprite</li>
<li>listen for mouse clicks</li>
<li>scale a sprite</li>
</ul>
</div>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a class="btn btn-sm btn-outline-secondary" href="https://thimbleprojects.org/baddeo/469190" target="_blank">View it</a>
<a class="btn btn-sm btn-outline-secondary" href="https://thimble.mozilla.org/projects/469190/remix" target="_blank">Remix it</a>
</div>
<!-- <small class="text-muted">easy</small> -->
</div>
</div>
</div>
</article>
<!-- An emoji sprite that bounces. You can customise how it bounces. -->
<article class="col-md-4">
<div class="card mb-4 box-shadow">
<img class="card-img-top" src="https://media.giphy.com/media/42Cpy1rko1OEmR1A0d/giphy.gif" alt="An emoji sprite that bounces. You can customise how it bounces.">
<div class="card-body">
<p class="description">An emoji sprite that bounces. You can customise how it bounces.</p>
<div class="learning-goals">
Use this to learn how to:
<ul>
<li>preload an image</li>
<li>add an image to a sprite</li>
<li>show & tweak variables with <a href="https://workshop.chromeexperiments.com/examples/gui/" target="_blank">dat.GUI</a></li>
</ul>
</div>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a class="btn btn-sm btn-outline-secondary" href="https://thimbleprojects.org/baddeo/469466" target="_blank">View it</a>
<a class="btn btn-sm btn-outline-secondary" href="https://thimble.mozilla.org/projects/469466/remix" target="_blank">Remix it</a>
</div>
<!-- <small class="text-muted">easy</small> -->
</div>
</div>
</div>
</article>
<!-- Some keys will make the game state change. Find out which ones. -->
<article class="col-md-4">
<div class="card mb-4 box-shadow">
<img class="card-img-top" src="https://media.giphy.com/media/2fWdWe6yfaUiKtLw0k/giphy.gif" alt="Some keys will make the game state change. Find out which ones">
<div class="card-body">
<p class="description">Some keys will make the <i>game state</i> change. Find out which ones.</p>
<div class="learning-goals">
Use this to learn how to:
<ul>
<li>switch between game states</li>
<li>listen for keyboard events</li>
<li>show & tweak variables with <a href="https://workshop.chromeexperiments.com/examples/gui/" target="_blank">dat.GUI</a></li>
</ul>
</div>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a class="btn btn-sm btn-outline-secondary" href="https://thimbleprojects.org/baddeo/476493" target="_blank">View it</a>
<a class="btn btn-sm btn-outline-secondary" href="https://thimble.mozilla.org/projects/476493/remix" target="_blank">Remix it</a>
</div>
</div>
</div>
</div>
</article>
<!-- Click the emojis to inflate them. Try not to make them touch each other. -->
<article class="col-md-4">
<div class="card mb-4 box-shadow">
<img class="card-img-top" src="https://media.giphy.com/media/cZ0ZFabxmgtg4Gjgnj/giphy.gif" alt="Click the emojis to inflate them. Try not to make them touch each other.">
<div class="card-body">
<p class="description">Click the emojis to inflate them. Try not to make them touch each other.</p>
<div class="learning-goals">
Use this to learn how to:
<ul>
<li>listen for mouse (continuous) clicks</li>
<li>change a sprite image with code</li>
<li>switch between game states</li>
<li>check for sprite overlaps</li>
</ul>
</div>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a class="btn btn-sm btn-outline-secondary" href="https://thimbleprojects.org/baddeo/469524" target="_blank">View it</a>
<a class="btn btn-sm btn-outline-secondary" href="https://thimble.mozilla.org/projects/469524/remix" target="_blank">Remix it</a>
</div>
</div>
</div>
</div>
</article>
<!-- Each face inflates with a different key. Find out which ones. -->
<article class="col-md-4">
<div class="card mb-4 box-shadow">
<img class="card-img-top" src="https://media.giphy.com/media/1yjr8WizDNESqhrHvX/giphy.gif" alt="Each face inflates with a different key. Find out which ones.">
<div class="card-body">
<p class="description">Each face inflates with a different key. Find out which ones.</p>
<div class="learning-goals">
Use this to learn how to:
<ul>
<li>listen for keyboard presses</li>
<li>change a sprite image with code</li>
<li>keep scores for each player</li>
</ul>
</div>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a class="btn btn-sm btn-outline-secondary" href="https://thimbleprojects.org/baddeo/477714" target="_blank">View it</a>
<a class="btn btn-sm btn-outline-secondary" href="https://thimble.mozilla.org/projects/477714/remix" target="_blank">Remix it</a>
</div>
</div>
</div>
</div>
</article>
<!-- plaything template -->
<!-- <article class="col-md-4">
<div class="card mb-4 box-shadow">
<img class="card-img-top" src="" alt="">
<div class="card-body">
<p class="description"></p>
<div class="learning-goals">
Use this to learn how to:
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div class="d-flex justify-content-between align-items-center">
<div class="btn-group">
<a class="btn btn-sm btn-outline-secondary" href="" target="_blank">View it</a>
<a class="btn btn-sm btn-outline-secondary" href="https://thimble.mozilla.org/projects/PROJECT_ID/remix" target="_blank">Remix it</a>
</div>
</div>
</div>
</div>
</article> -->
<!-- end of template -->
</div>
</div>
</div>
</main>
<footer>
<div class="container">
<p class="float-right">
<a href="#">Back to top</a>
</p>
<p>
<a href="https://github.com/beesness/p5.playthings" target="_blank">Get <b>your plaything</b> featured in this collection!</a>
</p>
</div>
</footer>
</body>
</html>