motion-game 1.1.7 → 1.1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +2 -0
- data/build/android/motion-cocos.jar +0 -0
- metadata +2 -66
- data/doc/MG.html +0 -131
- data/doc/MG/Action.html +0 -402
- data/doc/MG/Animate.html +0 -281
- data/doc/MG/Application.html +0 -335
- data/doc/MG/Audio.html +0 -1268
- data/doc/MG/Blink.html +0 -257
- data/doc/MG/Button.html +0 -725
- data/doc/MG/Color.html +0 -535
- data/doc/MG/DelayTime.html +0 -239
- data/doc/MG/Director.html +0 -1301
- data/doc/MG/Draw.html +0 -813
- data/doc/MG/Events.html +0 -129
- data/doc/MG/Events/Acceleration.html +0 -505
- data/doc/MG/Events/Touch.html +0 -235
- data/doc/MG/FadeIn.html +0 -240
- data/doc/MG/FadeOut.html +0 -240
- data/doc/MG/FadeTo.html +0 -256
- data/doc/MG/File.html +0 -219
- data/doc/MG/Follow.html +0 -241
- data/doc/MG/JumpBy.html +0 -292
- data/doc/MG/JumpTo.html +0 -287
- data/doc/MG/Layout.html +0 -516
- data/doc/MG/List.html +0 -1053
- data/doc/MG/Menu.html +0 -458
- data/doc/MG/MoveBy.html +0 -259
- data/doc/MG/MoveTo.html +0 -257
- data/doc/MG/Node.html +0 -2013
- data/doc/MG/Parallax.html +0 -297
- data/doc/MG/Particle.html +0 -1224
- data/doc/MG/Point.html +0 -543
- data/doc/MG/Repeat.html +0 -257
- data/doc/MG/RepeatForever.html +0 -239
- data/doc/MG/RotateBy.html +0 -259
- data/doc/MG/RotateTo.html +0 -257
- data/doc/MG/ScaleBy.html +0 -255
- data/doc/MG/ScaleTo.html +0 -255
- data/doc/MG/Scene.html +0 -1544
- data/doc/MG/Scroll.html +0 -533
- data/doc/MG/Sequence.html +0 -241
- data/doc/MG/Size.html +0 -741
- data/doc/MG/SkewBy.html +0 -273
- data/doc/MG/SkewTo.html +0 -273
- data/doc/MG/Slider.html +0 -338
- data/doc/MG/Spawn.html +0 -239
- data/doc/MG/Speed.html +0 -259
- data/doc/MG/Sprite.html +0 -2591
- data/doc/MG/Text.html +0 -921
- data/doc/MG/TintBy.html +0 -272
- data/doc/MG/TintTo.html +0 -274
- data/doc/MG/Web.html +0 -831
- data/doc/MG/Widget.html +0 -552
- data/doc/_index.html +0 -574
- data/doc/class_list.html +0 -51
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -58
- data/doc/css/style.css +0 -481
- data/doc/file.README.html +0 -192
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -17
- data/doc/index.html +0 -192
- data/doc/js/app.js +0 -243
- data/doc/js/full_list.js +0 -216
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -1635
- data/doc/top-level-namespace.html +0 -112
data/doc/MG/Audio.html
DELETED
@@ -1,1268 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Class: MG::Audio
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.5
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "MG::Audio";
|
19
|
-
relpath = '../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../class_list.html"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../_index.html">Index (A)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../MG.html" title="MG (module)">MG</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">Audio</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<iframe id="search_frame" src="../class_list.html"></iframe>
|
63
|
-
|
64
|
-
<div id="content"><h1>Class: MG::Audio
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
</h1>
|
69
|
-
<div class="box_info">
|
70
|
-
|
71
|
-
<dl>
|
72
|
-
<dt>Inherits:</dt>
|
73
|
-
<dd>
|
74
|
-
<span class="inheritName">Object</span>
|
75
|
-
|
76
|
-
<ul class="fullTree">
|
77
|
-
<li>Object</li>
|
78
|
-
|
79
|
-
<li class="next">MG::Audio</li>
|
80
|
-
|
81
|
-
</ul>
|
82
|
-
<a href="#" class="inheritanceTree">show all</a>
|
83
|
-
|
84
|
-
</dd>
|
85
|
-
</dl>
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
<dl>
|
98
|
-
<dt>Defined in:</dt>
|
99
|
-
<dd>motion-game</dd>
|
100
|
-
</dl>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
<h2>Properties <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
109
|
-
<ul class="summary">
|
110
|
-
|
111
|
-
<li class="public ">
|
112
|
-
<span class="summary_signature">
|
113
|
-
|
114
|
-
<a href="#duration-instance_method" title="#duration (instance method)">#<strong>duration</strong> ⇒ Float </a>
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
</span>
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
<span class="note title readonly">readonly</span>
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
<span class="summary_desc"><div class='inline'>
|
134
|
-
<p>The duration left in the sound file.</p>
|
135
|
-
</div></span>
|
136
|
-
|
137
|
-
</li>
|
138
|
-
|
139
|
-
|
140
|
-
</ul>
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
<h2>
|
147
|
-
Constructors
|
148
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
149
|
-
</h2>
|
150
|
-
|
151
|
-
<ul class="summary">
|
152
|
-
|
153
|
-
<li class="public ">
|
154
|
-
<span class="summary_signature">
|
155
|
-
|
156
|
-
<a href="#play-class_method" title="play (class method)">.<strong>play</strong>(path, loop = false, volume = 1.0) ⇒ Audio </a>
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
</span>
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
<span class="summary_desc"><div class='inline'>
|
171
|
-
<p>Creates a new Audio object based on a sound file at the given path and
|
172
|
-
immediately plays it.</p>
|
173
|
-
</div></span>
|
174
|
-
|
175
|
-
</li>
|
176
|
-
|
177
|
-
|
178
|
-
</ul>
|
179
|
-
|
180
|
-
<h2>
|
181
|
-
Instance Method Summary
|
182
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
183
|
-
</h2>
|
184
|
-
|
185
|
-
<ul class="summary">
|
186
|
-
|
187
|
-
<li class="public ">
|
188
|
-
<span class="summary_signature">
|
189
|
-
|
190
|
-
<a href="#current_position-instance_method" title="#current_position (instance method)">#<strong>current_position</strong> ⇒ Float </a>
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
</span>
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
<span class="summary_desc"><div class='inline'>
|
205
|
-
<p>The position where to play the sound file.</p>
|
206
|
-
</div></span>
|
207
|
-
|
208
|
-
</li>
|
209
|
-
|
210
|
-
|
211
|
-
<li class="public ">
|
212
|
-
<span class="summary_signature">
|
213
|
-
|
214
|
-
<a href="#current_position%3D-instance_method" title="#current_position= (instance method)">#<strong>current_position=</strong>(value) ⇒ Object </a>
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
</span>
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
<span class="summary_desc"><div class='inline'>
|
229
|
-
<p>Set the position where to play the sound.</p>
|
230
|
-
</div></span>
|
231
|
-
|
232
|
-
</li>
|
233
|
-
|
234
|
-
|
235
|
-
<li class="public ">
|
236
|
-
<span class="summary_signature">
|
237
|
-
|
238
|
-
<a href="#loop%3D-instance_method" title="#loop= (instance method)">#<strong>loop=</strong>(value) ⇒ Object </a>
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
</span>
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
<span class="summary_desc"><div class='inline'>
|
253
|
-
<p>Set whether to loop the sound.</p>
|
254
|
-
</div></span>
|
255
|
-
|
256
|
-
</li>
|
257
|
-
|
258
|
-
|
259
|
-
<li class="public ">
|
260
|
-
<span class="summary_signature">
|
261
|
-
|
262
|
-
<a href="#loop%3F-instance_method" title="#loop? (instance method)">#<strong>loop?</strong> ⇒ Boolean </a>
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
</span>
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
<span class="summary_desc"><div class='inline'>
|
277
|
-
<p>Whether the sound file should loop.</p>
|
278
|
-
</div></span>
|
279
|
-
|
280
|
-
</li>
|
281
|
-
|
282
|
-
|
283
|
-
<li class="public ">
|
284
|
-
<span class="summary_signature">
|
285
|
-
|
286
|
-
<a href="#pause-instance_method" title="#pause (instance method)">#<strong>pause</strong> ⇒ Audio </a>
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
</span>
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
<span class="summary_desc"><div class='inline'>
|
301
|
-
<p>Pauses the sound file.</p>
|
302
|
-
</div></span>
|
303
|
-
|
304
|
-
</li>
|
305
|
-
|
306
|
-
|
307
|
-
<li class="public ">
|
308
|
-
<span class="summary_signature">
|
309
|
-
|
310
|
-
<a href="#paused%3F-instance_method" title="#paused? (instance method)">#<strong>paused?</strong> ⇒ Boolean </a>
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
</span>
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
<span class="summary_desc"><div class='inline'>
|
325
|
-
<p>Whether the sound file is being paused.</p>
|
326
|
-
</div></span>
|
327
|
-
|
328
|
-
</li>
|
329
|
-
|
330
|
-
|
331
|
-
<li class="public ">
|
332
|
-
<span class="summary_signature">
|
333
|
-
|
334
|
-
<a href="#playing%3F-instance_method" title="#playing? (instance method)">#<strong>playing?</strong> ⇒ Boolean </a>
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
</span>
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
<span class="summary_desc"><div class='inline'>
|
349
|
-
<p>Whether the sound file is being played.</p>
|
350
|
-
</div></span>
|
351
|
-
|
352
|
-
</li>
|
353
|
-
|
354
|
-
|
355
|
-
<li class="public ">
|
356
|
-
<span class="summary_signature">
|
357
|
-
|
358
|
-
<a href="#resume-instance_method" title="#resume (instance method)">#<strong>resume</strong> ⇒ Audio </a>
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
</span>
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
<span class="summary_desc"><div class='inline'>
|
373
|
-
<p>Resumes playing the sound file.</p>
|
374
|
-
</div></span>
|
375
|
-
|
376
|
-
</li>
|
377
|
-
|
378
|
-
|
379
|
-
<li class="public ">
|
380
|
-
<span class="summary_signature">
|
381
|
-
|
382
|
-
<a href="#stop-instance_method" title="#stop (instance method)">#<strong>stop</strong> ⇒ Audio </a>
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
</span>
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
<span class="summary_desc"><div class='inline'>
|
397
|
-
<p>Stops the sound file.</p>
|
398
|
-
</div></span>
|
399
|
-
|
400
|
-
</li>
|
401
|
-
|
402
|
-
|
403
|
-
<li class="public ">
|
404
|
-
<span class="summary_signature">
|
405
|
-
|
406
|
-
<a href="#volume-instance_method" title="#volume (instance method)">#<strong>volume</strong> ⇒ Float </a>
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
</span>
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
<span class="summary_desc"><div class='inline'>
|
421
|
-
<p>The volume of the sound file, from a 0.0 to 1.0 Float range.</p>
|
422
|
-
</div></span>
|
423
|
-
|
424
|
-
</li>
|
425
|
-
|
426
|
-
|
427
|
-
<li class="public ">
|
428
|
-
<span class="summary_signature">
|
429
|
-
|
430
|
-
<a href="#volume%3D-instance_method" title="#volume= (instance method)">#<strong>volume=</strong>(value) ⇒ Object </a>
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
</span>
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
<span class="summary_desc"><div class='inline'>
|
445
|
-
<p>Set the volume of the sound.</p>
|
446
|
-
</div></span>
|
447
|
-
|
448
|
-
</li>
|
449
|
-
|
450
|
-
|
451
|
-
</ul>
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
<div id="instance_attr_details" class="attr_details">
|
456
|
-
<h2>Instance Attribute Details</h2>
|
457
|
-
|
458
|
-
|
459
|
-
<span id=""></span>
|
460
|
-
<div class="method_details first">
|
461
|
-
<h3 class="signature first" id="duration-instance_method">
|
462
|
-
|
463
|
-
#<strong>duration</strong> ⇒ <tt>Float</tt> <span class="extras">(readonly)</span>
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
</h3><div class="docstring">
|
470
|
-
<div class="discussion">
|
471
|
-
|
472
|
-
<p>Returns the duration left in the sound file.</p>
|
473
|
-
|
474
|
-
|
475
|
-
</div>
|
476
|
-
</div>
|
477
|
-
<div class="tags">
|
478
|
-
|
479
|
-
<p class="tag_title">Returns:</p>
|
480
|
-
<ul class="return">
|
481
|
-
|
482
|
-
<li>
|
483
|
-
|
484
|
-
|
485
|
-
<span class='type'>(<tt>Float</tt>)</span>
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
—
|
490
|
-
<div class='inline'>
|
491
|
-
<p>the duration left in the sound file.</p>
|
492
|
-
</div>
|
493
|
-
|
494
|
-
</li>
|
495
|
-
|
496
|
-
</ul>
|
497
|
-
|
498
|
-
</div><table class="source_code">
|
499
|
-
<tr>
|
500
|
-
<td>
|
501
|
-
<pre class="lines">
|
502
|
-
|
503
|
-
|
504
|
-
409
|
505
|
-
410
|
506
|
-
411</pre>
|
507
|
-
</td>
|
508
|
-
<td>
|
509
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 409</span>
|
510
|
-
|
511
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_duration'>duration</span>
|
512
|
-
<span class='ivar'>@duration</span>
|
513
|
-
<span class='kw'>end</span></pre>
|
514
|
-
</td>
|
515
|
-
</tr>
|
516
|
-
</table>
|
517
|
-
</div>
|
518
|
-
|
519
|
-
</div>
|
520
|
-
|
521
|
-
|
522
|
-
<div id="class_method_details" class="method_details_list">
|
523
|
-
<h2>Class Method Details</h2>
|
524
|
-
|
525
|
-
|
526
|
-
<div class="method_details first">
|
527
|
-
<h3 class="signature first" id="play-class_method">
|
528
|
-
|
529
|
-
.<strong>play</strong>(path, loop = false, volume = 1.0) ⇒ <tt><span class='object_link'><a href="" title="MG::Audio (class)">Audio</a></span></tt>
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
</h3><div class="docstring">
|
536
|
-
<div class="discussion">
|
537
|
-
|
538
|
-
<p>Creates a new Audio object based on a sound file at the given path and
|
539
|
-
immediately plays it.</p>
|
540
|
-
|
541
|
-
|
542
|
-
</div>
|
543
|
-
</div>
|
544
|
-
<div class="tags">
|
545
|
-
<p class="tag_title">Parameters:</p>
|
546
|
-
<ul class="param">
|
547
|
-
|
548
|
-
<li>
|
549
|
-
|
550
|
-
<span class='name'>path</span>
|
551
|
-
|
552
|
-
|
553
|
-
<span class='type'>(<tt>String</tt>)</span>
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
—
|
558
|
-
<div class='inline'>
|
559
|
-
<p>the path of the sound file that should be played.</p>
|
560
|
-
</div>
|
561
|
-
|
562
|
-
</li>
|
563
|
-
|
564
|
-
<li>
|
565
|
-
|
566
|
-
<span class='name'>loop</span>
|
567
|
-
|
568
|
-
|
569
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
570
|
-
|
571
|
-
|
572
|
-
<em class="default">(defaults to: <tt>false</tt>)</em>
|
573
|
-
|
574
|
-
|
575
|
-
—
|
576
|
-
<div class='inline'>
|
577
|
-
<p>whether the sound file playback should loop.</p>
|
578
|
-
</div>
|
579
|
-
|
580
|
-
</li>
|
581
|
-
|
582
|
-
<li>
|
583
|
-
|
584
|
-
<span class='name'>volume</span>
|
585
|
-
|
586
|
-
|
587
|
-
<span class='type'>(<tt>Float</tt>)</span>
|
588
|
-
|
589
|
-
|
590
|
-
<em class="default">(defaults to: <tt>1.0</tt>)</em>
|
591
|
-
|
592
|
-
|
593
|
-
—
|
594
|
-
<div class='inline'>
|
595
|
-
<p>the audio volume that should be used to play this this sound file, as a
|
596
|
-
<code>0.0</code> to <code>1.0</code> Float range.</p>
|
597
|
-
</div>
|
598
|
-
|
599
|
-
</li>
|
600
|
-
|
601
|
-
</ul>
|
602
|
-
|
603
|
-
<p class="tag_title">Returns:</p>
|
604
|
-
<ul class="return">
|
605
|
-
|
606
|
-
<li>
|
607
|
-
|
608
|
-
|
609
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="MG::Audio (class)">Audio</a></span></tt>)</span>
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
—
|
614
|
-
<div class='inline'>
|
615
|
-
<p>an Audio instance.</p>
|
616
|
-
</div>
|
617
|
-
|
618
|
-
</li>
|
619
|
-
|
620
|
-
</ul>
|
621
|
-
|
622
|
-
</div><table class="source_code">
|
623
|
-
<tr>
|
624
|
-
<td>
|
625
|
-
<pre class="lines">
|
626
|
-
|
627
|
-
|
628
|
-
379</pre>
|
629
|
-
</td>
|
630
|
-
<td>
|
631
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 379</span>
|
632
|
-
|
633
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_play'>play</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_loop'>loop</span><span class='op'>=</span><span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_volume'>volume</span><span class='op'>=</span><span class='float'>1.0</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
634
|
-
</td>
|
635
|
-
</tr>
|
636
|
-
</table>
|
637
|
-
</div>
|
638
|
-
|
639
|
-
</div>
|
640
|
-
|
641
|
-
<div id="instance_method_details" class="method_details_list">
|
642
|
-
<h2>Instance Method Details</h2>
|
643
|
-
|
644
|
-
|
645
|
-
<div class="method_details first">
|
646
|
-
<h3 class="signature first" id="current_position-instance_method">
|
647
|
-
|
648
|
-
#<strong>current_position</strong> ⇒ <tt>Float</tt>
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
</h3><div class="docstring">
|
655
|
-
<div class="discussion">
|
656
|
-
|
657
|
-
<p>Returns the position where to play the sound file.</p>
|
658
|
-
|
659
|
-
|
660
|
-
</div>
|
661
|
-
</div>
|
662
|
-
<div class="tags">
|
663
|
-
|
664
|
-
<p class="tag_title">Returns:</p>
|
665
|
-
<ul class="return">
|
666
|
-
|
667
|
-
<li>
|
668
|
-
|
669
|
-
|
670
|
-
<span class='type'>(<tt>Float</tt>)</span>
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
—
|
675
|
-
<div class='inline'>
|
676
|
-
<p>the position where to play the sound file.</p>
|
677
|
-
</div>
|
678
|
-
|
679
|
-
</li>
|
680
|
-
|
681
|
-
</ul>
|
682
|
-
|
683
|
-
</div><table class="source_code">
|
684
|
-
<tr>
|
685
|
-
<td>
|
686
|
-
<pre class="lines">
|
687
|
-
|
688
|
-
|
689
|
-
399</pre>
|
690
|
-
</td>
|
691
|
-
<td>
|
692
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 399</span>
|
693
|
-
|
694
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_current_position'>current_position</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
695
|
-
</td>
|
696
|
-
</tr>
|
697
|
-
</table>
|
698
|
-
</div>
|
699
|
-
|
700
|
-
<div class="method_details ">
|
701
|
-
<h3 class="signature " id="current_position=-instance_method">
|
702
|
-
|
703
|
-
#<strong>current_position=</strong>(value) ⇒ <tt>Object</tt>
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
</h3><div class="docstring">
|
710
|
-
<div class="discussion">
|
711
|
-
|
712
|
-
<p>Set the position where to play the sound.</p>
|
713
|
-
|
714
|
-
|
715
|
-
</div>
|
716
|
-
</div>
|
717
|
-
<div class="tags">
|
718
|
-
<p class="tag_title">Parameters:</p>
|
719
|
-
<ul class="param">
|
720
|
-
|
721
|
-
<li>
|
722
|
-
|
723
|
-
<span class='name'>value</span>
|
724
|
-
|
725
|
-
|
726
|
-
<span class='type'>(<tt>Float</tt>)</span>
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
—
|
731
|
-
<div class='inline'>
|
732
|
-
<p>the position</p>
|
733
|
-
</div>
|
734
|
-
|
735
|
-
</li>
|
736
|
-
|
737
|
-
</ul>
|
738
|
-
|
739
|
-
|
740
|
-
</div><table class="source_code">
|
741
|
-
<tr>
|
742
|
-
<td>
|
743
|
-
<pre class="lines">
|
744
|
-
|
745
|
-
|
746
|
-
403</pre>
|
747
|
-
</td>
|
748
|
-
<td>
|
749
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 403</span>
|
750
|
-
|
751
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_current_position='>current_position=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
752
|
-
</td>
|
753
|
-
</tr>
|
754
|
-
</table>
|
755
|
-
</div>
|
756
|
-
|
757
|
-
<div class="method_details ">
|
758
|
-
<h3 class="signature " id="loop=-instance_method">
|
759
|
-
|
760
|
-
#<strong>loop=</strong>(value) ⇒ <tt>Object</tt>
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
765
|
-
|
766
|
-
</h3><div class="docstring">
|
767
|
-
<div class="discussion">
|
768
|
-
|
769
|
-
<p>Set whether to loop the sound.</p>
|
770
|
-
|
771
|
-
|
772
|
-
</div>
|
773
|
-
</div>
|
774
|
-
<div class="tags">
|
775
|
-
<p class="tag_title">Parameters:</p>
|
776
|
-
<ul class="param">
|
777
|
-
|
778
|
-
<li>
|
779
|
-
|
780
|
-
<span class='name'>value</span>
|
781
|
-
|
782
|
-
|
783
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
—
|
788
|
-
<div class='inline'>
|
789
|
-
<p>true if the sound should loop.</p>
|
790
|
-
</div>
|
791
|
-
|
792
|
-
</li>
|
793
|
-
|
794
|
-
</ul>
|
795
|
-
|
796
|
-
|
797
|
-
</div><table class="source_code">
|
798
|
-
<tr>
|
799
|
-
<td>
|
800
|
-
<pre class="lines">
|
801
|
-
|
802
|
-
|
803
|
-
389</pre>
|
804
|
-
</td>
|
805
|
-
<td>
|
806
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 389</span>
|
807
|
-
|
808
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_loop='>loop=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
809
|
-
</td>
|
810
|
-
</tr>
|
811
|
-
</table>
|
812
|
-
</div>
|
813
|
-
|
814
|
-
<div class="method_details ">
|
815
|
-
<h3 class="signature " id="loop?-instance_method">
|
816
|
-
|
817
|
-
#<strong>loop?</strong> ⇒ <tt>Boolean</tt>
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
</h3><div class="docstring">
|
824
|
-
<div class="discussion">
|
825
|
-
|
826
|
-
<p>Returns whether the sound file should loop.</p>
|
827
|
-
|
828
|
-
|
829
|
-
</div>
|
830
|
-
</div>
|
831
|
-
<div class="tags">
|
832
|
-
|
833
|
-
<p class="tag_title">Returns:</p>
|
834
|
-
<ul class="return">
|
835
|
-
|
836
|
-
<li>
|
837
|
-
|
838
|
-
|
839
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
—
|
844
|
-
<div class='inline'>
|
845
|
-
<p>whether the sound file should loop.</p>
|
846
|
-
</div>
|
847
|
-
|
848
|
-
</li>
|
849
|
-
|
850
|
-
</ul>
|
851
|
-
|
852
|
-
</div><table class="source_code">
|
853
|
-
<tr>
|
854
|
-
<td>
|
855
|
-
<pre class="lines">
|
856
|
-
|
857
|
-
|
858
|
-
385</pre>
|
859
|
-
</td>
|
860
|
-
<td>
|
861
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 385</span>
|
862
|
-
|
863
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_loop?'>loop?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
864
|
-
</td>
|
865
|
-
</tr>
|
866
|
-
</table>
|
867
|
-
</div>
|
868
|
-
|
869
|
-
<div class="method_details ">
|
870
|
-
<h3 class="signature " id="pause-instance_method">
|
871
|
-
|
872
|
-
#<strong>pause</strong> ⇒ <tt><span class='object_link'><a href="" title="MG::Audio (class)">Audio</a></span></tt>
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
</h3><div class="docstring">
|
879
|
-
<div class="discussion">
|
880
|
-
|
881
|
-
<p>Pauses the sound file.</p>
|
882
|
-
|
883
|
-
|
884
|
-
</div>
|
885
|
-
</div>
|
886
|
-
<div class="tags">
|
887
|
-
|
888
|
-
<p class="tag_title">Returns:</p>
|
889
|
-
<ul class="return">
|
890
|
-
|
891
|
-
<li>
|
892
|
-
|
893
|
-
|
894
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="MG::Audio (class)">Audio</a></span></tt>)</span>
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
—
|
899
|
-
<div class='inline'>
|
900
|
-
<p>the receiver.</p>
|
901
|
-
</div>
|
902
|
-
|
903
|
-
</li>
|
904
|
-
|
905
|
-
</ul>
|
906
|
-
|
907
|
-
</div><table class="source_code">
|
908
|
-
<tr>
|
909
|
-
<td>
|
910
|
-
<pre class="lines">
|
911
|
-
|
912
|
-
|
913
|
-
420</pre>
|
914
|
-
</td>
|
915
|
-
<td>
|
916
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 420</span>
|
917
|
-
|
918
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_pause'>pause</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
919
|
-
</td>
|
920
|
-
</tr>
|
921
|
-
</table>
|
922
|
-
</div>
|
923
|
-
|
924
|
-
<div class="method_details ">
|
925
|
-
<h3 class="signature " id="paused?-instance_method">
|
926
|
-
|
927
|
-
#<strong>paused?</strong> ⇒ <tt>Boolean</tt>
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
</h3><div class="docstring">
|
934
|
-
<div class="discussion">
|
935
|
-
|
936
|
-
<p>Returns whether the sound file is being paused.</p>
|
937
|
-
|
938
|
-
|
939
|
-
</div>
|
940
|
-
</div>
|
941
|
-
<div class="tags">
|
942
|
-
|
943
|
-
<p class="tag_title">Returns:</p>
|
944
|
-
<ul class="return">
|
945
|
-
|
946
|
-
<li>
|
947
|
-
|
948
|
-
|
949
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
950
|
-
|
951
|
-
|
952
|
-
|
953
|
-
—
|
954
|
-
<div class='inline'>
|
955
|
-
<p>whether the sound file is being paused.</p>
|
956
|
-
</div>
|
957
|
-
|
958
|
-
</li>
|
959
|
-
|
960
|
-
</ul>
|
961
|
-
|
962
|
-
</div><table class="source_code">
|
963
|
-
<tr>
|
964
|
-
<td>
|
965
|
-
<pre class="lines">
|
966
|
-
|
967
|
-
|
968
|
-
430</pre>
|
969
|
-
</td>
|
970
|
-
<td>
|
971
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 430</span>
|
972
|
-
|
973
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_paused?'>paused?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
974
|
-
</td>
|
975
|
-
</tr>
|
976
|
-
</table>
|
977
|
-
</div>
|
978
|
-
|
979
|
-
<div class="method_details ">
|
980
|
-
<h3 class="signature " id="playing?-instance_method">
|
981
|
-
|
982
|
-
#<strong>playing?</strong> ⇒ <tt>Boolean</tt>
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
</h3><div class="docstring">
|
989
|
-
<div class="discussion">
|
990
|
-
|
991
|
-
<p>Returns whether the sound file is being played.</p>
|
992
|
-
|
993
|
-
|
994
|
-
</div>
|
995
|
-
</div>
|
996
|
-
<div class="tags">
|
997
|
-
|
998
|
-
<p class="tag_title">Returns:</p>
|
999
|
-
<ul class="return">
|
1000
|
-
|
1001
|
-
<li>
|
1002
|
-
|
1003
|
-
|
1004
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
—
|
1009
|
-
<div class='inline'>
|
1010
|
-
<p>whether the sound file is being played.</p>
|
1011
|
-
</div>
|
1012
|
-
|
1013
|
-
</li>
|
1014
|
-
|
1015
|
-
</ul>
|
1016
|
-
|
1017
|
-
</div><table class="source_code">
|
1018
|
-
<tr>
|
1019
|
-
<td>
|
1020
|
-
<pre class="lines">
|
1021
|
-
|
1022
|
-
|
1023
|
-
427</pre>
|
1024
|
-
</td>
|
1025
|
-
<td>
|
1026
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 427</span>
|
1027
|
-
|
1028
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_playing?'>playing?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1029
|
-
</td>
|
1030
|
-
</tr>
|
1031
|
-
</table>
|
1032
|
-
</div>
|
1033
|
-
|
1034
|
-
<div class="method_details ">
|
1035
|
-
<h3 class="signature " id="resume-instance_method">
|
1036
|
-
|
1037
|
-
#<strong>resume</strong> ⇒ <tt><span class='object_link'><a href="" title="MG::Audio (class)">Audio</a></span></tt>
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
</h3><div class="docstring">
|
1044
|
-
<div class="discussion">
|
1045
|
-
|
1046
|
-
<p>Resumes playing the sound file.</p>
|
1047
|
-
|
1048
|
-
|
1049
|
-
</div>
|
1050
|
-
</div>
|
1051
|
-
<div class="tags">
|
1052
|
-
|
1053
|
-
<p class="tag_title">Returns:</p>
|
1054
|
-
<ul class="return">
|
1055
|
-
|
1056
|
-
<li>
|
1057
|
-
|
1058
|
-
|
1059
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="MG::Audio (class)">Audio</a></span></tt>)</span>
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
—
|
1064
|
-
<div class='inline'>
|
1065
|
-
<p>the receiver.</p>
|
1066
|
-
</div>
|
1067
|
-
|
1068
|
-
</li>
|
1069
|
-
|
1070
|
-
</ul>
|
1071
|
-
|
1072
|
-
</div><table class="source_code">
|
1073
|
-
<tr>
|
1074
|
-
<td>
|
1075
|
-
<pre class="lines">
|
1076
|
-
|
1077
|
-
|
1078
|
-
416</pre>
|
1079
|
-
</td>
|
1080
|
-
<td>
|
1081
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 416</span>
|
1082
|
-
|
1083
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_resume'>resume</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1084
|
-
</td>
|
1085
|
-
</tr>
|
1086
|
-
</table>
|
1087
|
-
</div>
|
1088
|
-
|
1089
|
-
<div class="method_details ">
|
1090
|
-
<h3 class="signature " id="stop-instance_method">
|
1091
|
-
|
1092
|
-
#<strong>stop</strong> ⇒ <tt><span class='object_link'><a href="" title="MG::Audio (class)">Audio</a></span></tt>
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
</h3><div class="docstring">
|
1099
|
-
<div class="discussion">
|
1100
|
-
|
1101
|
-
<p>Stops the sound file.</p>
|
1102
|
-
|
1103
|
-
|
1104
|
-
</div>
|
1105
|
-
</div>
|
1106
|
-
<div class="tags">
|
1107
|
-
|
1108
|
-
<p class="tag_title">Returns:</p>
|
1109
|
-
<ul class="return">
|
1110
|
-
|
1111
|
-
<li>
|
1112
|
-
|
1113
|
-
|
1114
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="MG::Audio (class)">Audio</a></span></tt>)</span>
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
—
|
1119
|
-
<div class='inline'>
|
1120
|
-
<p>the receiver.</p>
|
1121
|
-
</div>
|
1122
|
-
|
1123
|
-
</li>
|
1124
|
-
|
1125
|
-
</ul>
|
1126
|
-
|
1127
|
-
</div><table class="source_code">
|
1128
|
-
<tr>
|
1129
|
-
<td>
|
1130
|
-
<pre class="lines">
|
1131
|
-
|
1132
|
-
|
1133
|
-
424</pre>
|
1134
|
-
</td>
|
1135
|
-
<td>
|
1136
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 424</span>
|
1137
|
-
|
1138
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_stop'>stop</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1139
|
-
</td>
|
1140
|
-
</tr>
|
1141
|
-
</table>
|
1142
|
-
</div>
|
1143
|
-
|
1144
|
-
<div class="method_details ">
|
1145
|
-
<h3 class="signature " id="volume-instance_method">
|
1146
|
-
|
1147
|
-
#<strong>volume</strong> ⇒ <tt>Float</tt>
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
</h3><div class="docstring">
|
1154
|
-
<div class="discussion">
|
1155
|
-
|
1156
|
-
<p>Returns the volume of the sound file, from a 0.0 to 1.0 Float range.</p>
|
1157
|
-
|
1158
|
-
|
1159
|
-
</div>
|
1160
|
-
</div>
|
1161
|
-
<div class="tags">
|
1162
|
-
|
1163
|
-
<p class="tag_title">Returns:</p>
|
1164
|
-
<ul class="return">
|
1165
|
-
|
1166
|
-
<li>
|
1167
|
-
|
1168
|
-
|
1169
|
-
<span class='type'>(<tt>Float</tt>)</span>
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
—
|
1174
|
-
<div class='inline'>
|
1175
|
-
<p>the volume of the sound file, from a 0.0 to 1.0 Float range.</p>
|
1176
|
-
</div>
|
1177
|
-
|
1178
|
-
</li>
|
1179
|
-
|
1180
|
-
</ul>
|
1181
|
-
|
1182
|
-
</div><table class="source_code">
|
1183
|
-
<tr>
|
1184
|
-
<td>
|
1185
|
-
<pre class="lines">
|
1186
|
-
|
1187
|
-
|
1188
|
-
392</pre>
|
1189
|
-
</td>
|
1190
|
-
<td>
|
1191
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 392</span>
|
1192
|
-
|
1193
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_volume'>volume</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1194
|
-
</td>
|
1195
|
-
</tr>
|
1196
|
-
</table>
|
1197
|
-
</div>
|
1198
|
-
|
1199
|
-
<div class="method_details ">
|
1200
|
-
<h3 class="signature " id="volume=-instance_method">
|
1201
|
-
|
1202
|
-
#<strong>volume=</strong>(value) ⇒ <tt>Object</tt>
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
|
1207
|
-
|
1208
|
-
</h3><div class="docstring">
|
1209
|
-
<div class="discussion">
|
1210
|
-
|
1211
|
-
<p>Set the volume of the sound.</p>
|
1212
|
-
|
1213
|
-
|
1214
|
-
</div>
|
1215
|
-
</div>
|
1216
|
-
<div class="tags">
|
1217
|
-
<p class="tag_title">Parameters:</p>
|
1218
|
-
<ul class="param">
|
1219
|
-
|
1220
|
-
<li>
|
1221
|
-
|
1222
|
-
<span class='name'>value</span>
|
1223
|
-
|
1224
|
-
|
1225
|
-
<span class='type'>(<tt>Float</tt>)</span>
|
1226
|
-
|
1227
|
-
|
1228
|
-
|
1229
|
-
—
|
1230
|
-
<div class='inline'>
|
1231
|
-
<p>the volume of the sound.</p>
|
1232
|
-
</div>
|
1233
|
-
|
1234
|
-
</li>
|
1235
|
-
|
1236
|
-
</ul>
|
1237
|
-
|
1238
|
-
|
1239
|
-
</div><table class="source_code">
|
1240
|
-
<tr>
|
1241
|
-
<td>
|
1242
|
-
<pre class="lines">
|
1243
|
-
|
1244
|
-
|
1245
|
-
396</pre>
|
1246
|
-
</td>
|
1247
|
-
<td>
|
1248
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 396</span>
|
1249
|
-
|
1250
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_volume='>volume=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1251
|
-
</td>
|
1252
|
-
</tr>
|
1253
|
-
</table>
|
1254
|
-
</div>
|
1255
|
-
|
1256
|
-
</div>
|
1257
|
-
|
1258
|
-
</div>
|
1259
|
-
|
1260
|
-
<div id="footer">
|
1261
|
-
Generated on Sun Dec 11 16:38:29 2016 by
|
1262
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1263
|
-
0.9.5 (ruby-2.3.3).
|
1264
|
-
</div>
|
1265
|
-
|
1266
|
-
</div>
|
1267
|
-
</body>
|
1268
|
-
</html>
|