-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathexample.html
422 lines (380 loc) · 20.4 KB
/
example.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
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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
<!DOCTYPE html>
<html ng-app>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>Example | tmlib.js</title>
<link rel="shortcut icon" href="logo.png" />
<link rel="apple-touch-icon-precomposed" href="icon.png" />
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css">
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.1/js/bootstrap.min.js"></script>
<!-- anguler -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script>
<script>
function DemoCtrl($scope) {
$scope.examples = [
{
name: 'Circle',
description: '円を表示するサンプル. クリック or タッチすると円が出現してポンポンします.',
url: 'examples/circle/index.html',
code: 'https://github.com/phi-jp/tmlib.js/tree/develop/examples/circle/',
icon: 'examples/circle/icon.png',
},
{
name: 'Circle Collision',
description: '円同士の衝突判定サンプル. クリックで投げたりパラメータを調整して遊んでください♪',
url: 'examples/circle-collision/index.html',
code: 'https://github.com/phi-jp/tmlib.js/tree/develop/examples/circle-collision/',
icon: 'examples/circle-collision/icon.png',
},
{
name: 'Filter',
description: 'フィルターツールです. 画像をモノクロにしたりカラーフィルターを当てたり.',
url: 'examples/filter/index.html',
code: 'https://github.com/phi-jp/tmlib.js/tree/develop/examples/filter/',
icon: 'examples/filter/icon.png',
},
{
name: 'Juggling',
description: 'ジャグリングです. タッチしてボールが落ちないようにするやつ.',
url: 'examples/juggling/index.html',
code: 'https://github.com/phi-jp/tmlib.js/tree/develop/examples/juggling/',
icon: 'examples/juggling/icon.png',
},
{
name: 'Magic Square',
description: '魔方陣サンプル. 結構きれい.',
url: 'examples/magic-square/index.html',
code: 'https://github.com/phi-jp/tmlib.js/tree/develop/examples/magic-square/',
icon: 'examples/magic-square/icon.png',
},
{
name: 'Paint',
description: 'ペイントツール. 絵を描くことができます.',
url: 'examples/paint/index.html',
code: 'https://github.com/phi-jp/tmlib.js/tree/develop/examples/paint/',
icon: 'examples/paint/icon.png',
},
{
name: 'Piano',
description: 'ピアノ.',
url: 'examples/piano/index.html',
code: 'https://github.com/phi-jp/tmlib.js/tree/develop/examples/piano/',
icon: 'examples/piano/icon.png',
},
{
name: 'Pursuit',
description: '追尾',
url: 'examples/pursuit/index.html',
code: 'https://github.com/phi-jp/tmlib.js/tree/develop/examples/pursuit/',
icon: 'examples/pursuit/icon.png',
},
{
name: 'Snow',
description: '雪',
url: 'examples/snow/index.html',
code: 'https://github.com/phi-jp/tmlib.js/tree/develop/examples/snow/',
icon: 'examples/snow/icon.png',
},
{
name: 'Torne Interface',
description: 'トルネっぽいインターフェース',
url: 'examples/torne-interface/index.html',
code: 'https://github.com/phi-jp/tmlib.js/tree/develop/examples/torne-interface/',
icon: 'examples/torne-interface/icon.png',
},
{
name: 'Unit Circle',
description: '単位円を学ぼう♪',
url: 'examples/unit-circle/index.html',
code: 'https://github.com/phi-jp/tmlib.js/tree/develop/examples/unit-circle/',
icon: 'examples/unit-circle/icon.png',
},
{
name: 'Particle',
description: 'パーティクル',
url: 'examples/particle/index.html',
code: 'https://github.com/phi-jp/tmlib.js/tree/develop/examples/particle/',
icon: 'examples/particle/icon.png',
},
{
name: 'Text Effect',
description: 'テキストエフェクト',
url: 'examples/text-effect/index.html',
code: 'https://github.com/phi-jp/tmlib.js/tree/develop/examples/text-effect/',
icon: 'examples/text-effect/icon.png',
},
];
};
function GameCtrl($scope) {
$scope.examples = [
{
name: 'Web Reverse Reverse',
description: '@Rosetta_Halt が iPhone アプリとして作っていたものを tmlib.js を使って Web に完全移植!! アプリ並のクォリティです.',
url: 'http://webrxr.github.com/RxR/',
icon: 'https://raw.github.com/webrxr/RxR/master/img/icon/[email protected]',
},
{
name: 'Rogue Plus',
description: 'ローグライク風のアクションゲームです.ドット絵が懐かしい. @omatoroさんが作ってくれたゲームです.',
url: 'http://rogueplus.testcoding.net/',
icon: 'https://rawgithub.com/omatoro/RoguePlus/ddf10560b79049a0ba573c064f25c0d01ac874d9/rsc/[email protected]',
},
{
name: 'GL-Shooter',
description: '@daishi_hmr san が tmlib.js × bulletml.js を使って作られた本格弾幕シューティング! Web 上で作られたゲームの中でもトップクラス!!?',
url: 'http://9leap.net/games/2877',
icon: 'http://9leap.net/screenshots//140x140/2877_140',
},
{
name: 'Enclose Circle',
description: '',
url: 'examples/enclose-circle/index.html',
icon: 'examples/enclose-circle/icon.png',
},
{
name: 'Mogura Tataki',
description: '',
url: 'examples/mogura-tataki/index.html',
icon: 'examples/mogura-tataki/icon.png',
},
{
name: 'Shooting',
description: 'サンプルとして作ったシューティングゲーム',
url: 'examples/shooting/index.html',
icon: 'examples/shooting/icon.png',
},
{"name":"TongTong Z","url":"http://9leap.net/games/3005","icon":"http://9leap.net/screenshots/300x300/3005_300.png"},
{"name":"Diving Girl","url":"http://9leap.net/games/2986","icon":"http://9leap.net/screenshots/300x300/2986_300.png"},
{"name":"HeartRunner","url":"http://9leap.net/games/3004","icon":"http://9leap.net/screenshots/300x300/3004_300.png"},
{"name":"PompPompPomp!","url":"http://9leap.net/games/2991","icon":"http://9leap.net/screenshots/300x300/2991_300.png"},
// {"name":"Survival Land","url":"http://9leap.net/games/2989","icon":"http://9leap.net/screenshots/300x300/2989_300.png"},
{
name: 'WEBack',
description: '簡単な脳トレゲームです. n個前の数字を答えます. これまた @omatoro san が作ってくれたゲームです.',
url: 'http://weback.testcording.com/',
icon: 'https://rawgithub.com/omatoro/MemoryUp/0872ff26778d888bee030de315ac9858702bc422/rsc/[email protected]',
},
{
name: '英語タッチLR マッチ売りの少女',
description: '『英語タッチLR』は左右どちらかをタッチで答えていくことによって英語を学習するアプリです。 @papuujp san が作られたゲームです.',
url: 'http://d-webapp.jp/app_data/536/index.html',
icon: 'http://d-webapp.jp/app_img/15_536/icon_536.png',
},
];
};
function ThreeCtrl($scope) {
$scope.examples = [
{"name":"template","url":"http://jsdo.it/phi/4U6h","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/4/U/6/4U6h.jpg?t=1358684880"},
{"name":"Cube","url":"http://jsdo.it/phi/52o9h","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/5/2/o/52o9h.jpg?t=1358684944"},
{"name":"3D Text","url":"http://jsdo.it/phi/tDjm","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/t/D/j/tDjm.jpg?t=1358684944"},
{"name":"ParticleSystem","url":"http://jsdo.it/phi/wEU7","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/w/E/U/wEU7.jpg?t=1358684944"},
{"name":"Color Particle","url":"http://jsdo.it/phi/jOEV","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/j/O/E/jOEV.jpg?t=1358684944"},
{"name":"Heart Particle","url":"http://jsdo.it/phi/6CEk","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/6/C/E/6CEk.jpg?t=1358684944"},
{"name":"DRAGON Ball","url":"http://jsdo.it/phi/4oyL","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/4/o/y/4oyL.jpg?t=1358684944"},
];
};
function WebAudioCtrl($scope) {
$scope.examples = [
{"name":"Visualizer","url":"http://jsdo.it/phi/aJRp","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/a/J/R/aJRp.jpg?t=1358684880"},
{"name":"Heart Visualizer","url":"http://jsdo.it/phi/b8Pt","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/b/8/P/b8Pt.jpg?t=1358684880"},
{"name":"F1 効果","url":"http://jsdo.it/phi/vU84","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/v/U/8/vU84.jpg?t=1358684880"},
{"name":"左右それぞれ違う音","url":"http://jsdo.it/phi/rfdr","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/r/f/d/rfdr.jpg?t=1358684880"},
{"name":"音源位置設定","url":"http://jsdo.it/phi/ijtS","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/i/j/t/ijtS.jpg?t=1358684880"},
{"name":"MML","url":"http://jsdo.it/phi/dOWk","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/d/O/W/dOWk.jpg?t=1358684880"},
{"name":"circle visualizer","url":"http://jsdo.it/omatoro/wGJN","icon":"http://jsdo-it-static-contents.s3.amazonaws.com/images/capture/w/G/J/wGJN.jpg?t=1358684880"},
];
};
</script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./index.html">tmlib.js</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="./usage.html">Usage</a></li>
<li><a href="./tutorial.html">Tutorial</a></li>
<li class="active"><a href="./example.html">Example</a></li>
<li><a href="./docs/index.html">Docs</a></li>
<li><a href="http://banraku-games.sakura.ne.jp/" target="_blank">Assets</a></li>
<li><a href="http://tmlife.net" target="_blank">Blog</a></li>
<li><a href="https://twitter.com/phi_jp" target="_blank">Contact</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<div>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://phi-jp.github.io/tmlib.js/" data-text="ヒヨコ始めました!! 『JavaScript ライブラリ tmlib.js』" data-via="phi_jp" data-hashtags="tmlib">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
</li>
<li>
<div>
<a data-pocket-label="pocket" data-pocket-count="horizontal" class="pocket-btn" data-lang="en"></a>
<script type="text/javascript">!function(d,i){if(!d.getElementById(i)){var j=d.createElement("script");j.id=i;j.src="https://widgets.getpocket.com/v1/j/btn.js?v=1";var w=d.getElementById(i);d.body.appendChild(j);}}(document,"pocket-btn-js");</script>
</div>
</li>
<li>
<div>
<a href="http://b.hatena.ne.jp/entry/http://phi-jp.github.io/tmlib.js/" class="hatena-bookmark-button" data-hatena-bookmark-title="tmlib.js" data-hatena-bookmark-layout="standard-balloon" data-hatena-bookmark-lang="en" title="このエントリーをはてなブックマークに追加"><img src="http://b.st-hatena.com/images/entry-button/[email protected]" alt="このエントリーをはてなブックマークに追加" width="20" height="20" style="border: none;" /></a><script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>
</div>
</li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="jumbotron">
<h1>
tmlib.js Example
</h1>
<p>tmlib.js サンプル集です.</p>
</div>
<div>
<h2>Demo</h2>
<div ng-controller="DemoCtrl">
<div class="row">
<div ng-repeat="example in examples" class="col-lg-3">
<div class="example-inner">
<h4>{{example.name}}</h4>
<p>
<img class="img-circle" data-src="holder.js/140x140" alt="140x140" style="width: 140px; height: 140px;" src="{{example.icon}}">
</p>
<p class="description">{{example.description}}</p>
<p>
<a class="btn btn-default" href="{{example.url}}" target="_blank" role="button">Demo »</a>
<a class="btn btn-default" href="{{example.code}}" target="_blank" role="button">Code »</a>
</p>
</div>
</div>
</div>
</div>
</div>
<div>
<h2>Game</h2>
<div ng-controller="GameCtrl">
<div class="row">
<div ng-repeat="example in examples" class="col-lg-4">
<div class="example-inner">
<h4>{{example.name}}</h4>
<p>
<img class="img-circle" data-src="holder.js/200x200" alt="200x200" style="width: 200px; height: 200px;" src="{{example.icon}}">
</p>
<p class="description">{{example.description}}</p>
<p>
<a class="btn btn-default" href="{{example.url}}" target="_blank" role="button">View Demo »</a>
</p>
</div>
</div>
</div>
</div>
</div>
<div>
<h2>Three.js</h2>
<div ng-controller="ThreeCtrl">
<div class="row">
<div ng-repeat="example in examples" class="col-lg-3">
<div class="example-inner">
<h4>{{example.name}}</h4>
<p>
<img class="img-circle" data-src="holder.js/140x140" alt="140x140" style="width: 140px; height: 140px;" src="{{example.icon}}">
</p>
<p class="description">{{example.description}}</p>
<p>
<a class="btn btn-default" href="{{example.url}}" target="_blank" role="button">View Demo »</a>
</p>
</div>
</div>
</div>
</div>
</div>
<div>
<h2>Web Audio</h2>
<div ng-controller="WebAudioCtrl">
<div class="row">
<div ng-repeat="example in examples" class="col-lg-3">
<div class="example-inner">
<h4>{{example.name}}</h4>
<p>
<img class="img-circle" data-src="holder.js/140x140" alt="140x140" style="width: 140px; height: 140px;" src="{{example.icon}}">
</p>
<p class="description">{example.description}</p>
<p>
<a class="btn btn-default" href="{{example.url}}" target="_blank" role="button">View Demo »</a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p>
Copyright © TM Life. All Rights Reserved.
</p>
<ul class="footer-links">
<li><a href="http://tmlife.net">Blog</a></li>
<li class="muted">·</li>
<li><a href="https://github.com/phi1618/tmlib.js/issues?state=open">Issues</a></li>
<li class="muted">·</li>
<li><a href="https://github.com/phi1618/tmlib.js/blob/master/CHANGELOG.md">Changelog</a></li>
</ul>
</div>
</footer>
<!-- Github ribbon -->
<a href="https://github.com/phi-jp/tmlib.js/" target="_blank"><img style="position: fixed; top: 0; right: 0; border: 0; z-index: 9999;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
<script src="build/tmlib.js"></script>
<!-- hiyoko -->
<link rel="stylesheet" href="plugins/hiyoko/hiyoko.css">
<script src="plugins/hiyoko/hiyoko.js"></script>
<style>
body {
padding-top: 50px;
}
@media(min-width:1200px) {
.container{width: 1000px;
}
.col-lg-3 {
text-align: center;
margin-bottom: 20px;
}
.col-lg-4 {
text-align: center;
margin-bottom: 20px;
}
.example-inner {
background: hsl(240, 80%, 98%);
box-shadow: 0px 0px 2px 0px #aaa;
border-radius: 4px;
padding: 5px 10px;
}
p.description {
min-height: 60px;
font-size: 13px;
}
</style>
<link href='http://fonts.googleapis.com/css?family=Mystery+Quest' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="css/header.css" />
<link rel="stylesheet" href="css/footer.css" />
<style>
body {
padding-top: 80px;
}
</style>
</body>
</html>