motion-game 1.1.6 → 1.1.7

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.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +120 -0
  3. data/build/android/armeabi/libmotion-cocos.a +0 -0
  4. data/build/android/motion-cocos.jar +0 -0
  5. data/build/android/x86/libmotion-cocos.a +0 -0
  6. data/build/ios/libmotion-cocos.a +0 -0
  7. data/build/tvos/libmotion-cocos.a +0 -0
  8. data/doc/API_reference.rb +1407 -0
  9. data/doc/MG.html +1 -1
  10. data/doc/MG/Action.html +9 -9
  11. data/doc/MG/Animate.html +4 -4
  12. data/doc/MG/Application.html +5 -5
  13. data/doc/MG/Audio.html +391 -175
  14. data/doc/MG/Blink.html +3 -3
  15. data/doc/MG/Button.html +23 -23
  16. data/doc/MG/Color.html +19 -20
  17. data/doc/MG/DelayTime.html +3 -3
  18. data/doc/MG/Director.html +33 -33
  19. data/doc/MG/Draw.html +11 -11
  20. data/doc/MG/Events.html +1 -1
  21. data/doc/MG/Events/Acceleration.html +17 -17
  22. data/doc/MG/Events/Touch.html +5 -5
  23. data/doc/MG/FadeIn.html +3 -3
  24. data/doc/MG/FadeOut.html +3 -3
  25. data/doc/MG/FadeTo.html +3 -3
  26. data/doc/MG/File.html +3 -3
  27. data/doc/MG/Follow.html +3 -3
  28. data/doc/MG/JumpBy.html +3 -3
  29. data/doc/MG/JumpTo.html +3 -3
  30. data/doc/MG/Layout.html +15 -15
  31. data/doc/MG/List.html +21 -21
  32. data/doc/MG/Menu.html +9 -9
  33. data/doc/MG/MoveBy.html +3 -3
  34. data/doc/MG/MoveTo.html +3 -3
  35. data/doc/MG/Node.html +61 -61
  36. data/doc/MG/Parallax.html +3 -3
  37. data/doc/MG/Particle.html +47 -47
  38. data/doc/MG/Point.html +16 -18
  39. data/doc/MG/Repeat.html +3 -3
  40. data/doc/MG/RepeatForever.html +3 -3
  41. data/doc/MG/RotateBy.html +3 -3
  42. data/doc/MG/RotateTo.html +3 -3
  43. data/doc/MG/ScaleBy.html +3 -3
  44. data/doc/MG/ScaleTo.html +3 -3
  45. data/doc/MG/Scene.html +33 -33
  46. data/doc/MG/Scroll.html +15 -15
  47. data/doc/MG/Sequence.html +3 -3
  48. data/doc/MG/Size.html +19 -20
  49. data/doc/MG/SkewBy.html +3 -3
  50. data/doc/MG/SkewTo.html +3 -3
  51. data/doc/MG/Slider.html +7 -7
  52. data/doc/MG/Spawn.html +3 -3
  53. data/doc/MG/Speed.html +3 -3
  54. data/doc/MG/Sprite.html +189 -67
  55. data/doc/MG/Text.html +31 -31
  56. data/doc/MG/TintBy.html +3 -3
  57. data/doc/MG/TintTo.html +3 -3
  58. data/doc/MG/Web.html +15 -15
  59. data/doc/MG/Widget.html +15 -15
  60. data/doc/_index.html +1 -1
  61. data/doc/file.README.html +4 -2
  62. data/doc/index.html +4 -2
  63. data/doc/method_list.html +181 -141
  64. data/doc/top-level-namespace.html +1 -1
  65. data/lib/motion-game/android.rb +0 -1
  66. metadata +4 -2
data/doc/MG.html CHANGED
@@ -121,7 +121,7 @@ under that module.</p>
121
121
  </div>
122
122
 
123
123
  <div id="footer">
124
- Generated on Sun Nov 27 15:52:18 2016 by
124
+ Generated on Sun Dec 11 16:38:29 2016 by
125
125
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
126
  0.9.5 (ruby-2.3.3).
127
127
  </div>
data/doc/MG/Action.html CHANGED
@@ -255,12 +255,12 @@
255
255
  <pre class="lines">
256
256
 
257
257
 
258
- 23
259
- 24
260
- 25</pre>
258
+ 28
259
+ 29
260
+ 30</pre>
261
261
  </td>
262
262
  <td>
263
- <pre class="code"><span class="info file"># File 'motion-game', line 23</span>
263
+ <pre class="code"><span class="info file"># File 'motion-game', line 28</span>
264
264
 
265
265
  def done?
266
266
  @done?
@@ -321,10 +321,10 @@ end</pre>
321
321
  <pre class="lines">
322
322
 
323
323
 
324
- 16</pre>
324
+ 21</pre>
325
325
  </td>
326
326
  <td>
327
- <pre class="code"><span class="info file"># File 'motion-game', line 16</span>
327
+ <pre class="code"><span class="info file"># File 'motion-game', line 21</span>
328
328
 
329
329
  <span class='kw'>def</span> <span class='id identifier rubyid_clone'>clone</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
330
330
  </td>
@@ -376,10 +376,10 @@ end</pre>
376
376
  <pre class="lines">
377
377
 
378
378
 
379
- 9</pre>
379
+ 14</pre>
380
380
  </td>
381
381
  <td>
382
- <pre class="code"><span class="info file"># File 'motion-game', line 9</span>
382
+ <pre class="code"><span class="info file"># File 'motion-game', line 14</span>
383
383
 
384
384
  <span class='kw'>def</span> <span class='id identifier rubyid_reverse'>reverse</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
385
385
  </td>
@@ -392,7 +392,7 @@ end</pre>
392
392
  </div>
393
393
 
394
394
  <div id="footer">
395
- Generated on Sun Nov 27 15:52:18 2016 by
395
+ Generated on Sun Dec 11 16:38:29 2016 by
396
396
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
397
397
  0.9.5 (ruby-2.3.3).
398
398
  </div>
data/doc/MG/Animate.html CHANGED
@@ -205,7 +205,7 @@ to the given frames in <code>frame_names</code> based on the given
205
205
  <p>an array of sprite frames to load and use for the animation, which can be
206
206
  either the names of standalone image files in the application&#39;s
207
207
  resource directory or the names of sprite frames loaded from a spritesheet
208
- using load.</p>
208
+ using <span class='object_link'><a href="Sprite.html#load-class_method" title="MG::Sprite.load (method)">Sprite.load</a></span>.</p>
209
209
  </div>
210
210
 
211
211
  </li>
@@ -254,10 +254,10 @@ using load.</p>
254
254
  <pre class="lines">
255
255
 
256
256
 
257
- 334</pre>
257
+ 339</pre>
258
258
  </td>
259
259
  <td>
260
- <pre class="code"><span class="info file"># File 'motion-game', line 334</span>
260
+ <pre class="code"><span class="info file"># File 'motion-game', line 339</span>
261
261
 
262
262
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_frame_names'>frame_names</span><span class='comma'>,</span> <span class='id identifier rubyid_delay'>delay</span><span class='comma'>,</span> <span class='id identifier rubyid_loops'>loops</span><span class='op'>=</span><span class='int'>1</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
263
263
  </td>
@@ -271,7 +271,7 @@ using load.</p>
271
271
  </div>
272
272
 
273
273
  <div id="footer">
274
- Generated on Sun Nov 27 15:52:18 2016 by
274
+ Generated on Sun Dec 11 16:38:29 2016 by
275
275
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
276
276
  0.9.5 (ruby-2.3.3).
277
277
  </div>
@@ -246,10 +246,10 @@ create a scene and ask the director to run it:</p>
246
246
  <pre class="lines">
247
247
 
248
248
 
249
- 350</pre>
249
+ 355</pre>
250
250
  </td>
251
251
  <td>
252
- <pre class="code"><span class="info file"># File 'motion-game', line 350</span>
252
+ <pre class="code"><span class="info file"># File 'motion-game', line 355</span>
253
253
 
254
254
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_shared'>shared</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
255
255
  </td>
@@ -309,10 +309,10 @@ implementation that will create the interface of your game.</p>
309
309
  <pre class="lines">
310
310
 
311
311
 
312
- 359</pre>
312
+ 364</pre>
313
313
  </td>
314
314
  <td>
315
- <pre class="code"><span class="info file"># File 'motion-game', line 359</span>
315
+ <pre class="code"><span class="info file"># File 'motion-game', line 364</span>
316
316
 
317
317
  <span class='kw'>def</span> <span class='id identifier rubyid_start'>start</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
318
318
  </td>
@@ -325,7 +325,7 @@ implementation that will create the interface of your game.</p>
325
325
  </div>
326
326
 
327
327
  <div id="footer">
328
- Generated on Sun Nov 27 15:52:18 2016 by
328
+ Generated on Sun Dec 11 16:38:29 2016 by
329
329
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
330
330
  0.9.5 (ruby-2.3.3).
331
331
  </div>
data/doc/MG/Audio.html CHANGED
@@ -111,7 +111,7 @@
111
111
  <li class="public ">
112
112
  <span class="summary_signature">
113
113
 
114
- <a href="#current_position-instance_method" title="#current_position (instance method)">#<strong>current_position</strong> &#x21d2; Float </a>
114
+ <a href="#duration-instance_method" title="#duration (instance method)">#<strong>duration</strong> &#x21d2; Float </a>
115
115
 
116
116
 
117
117
 
@@ -120,6 +120,8 @@
120
120
 
121
121
 
122
122
 
123
+ <span class="note title readonly">readonly</span>
124
+
123
125
 
124
126
 
125
127
 
@@ -129,16 +131,29 @@
129
131
 
130
132
 
131
133
  <span class="summary_desc"><div class='inline'>
132
- <p>The position where to play the sound file.</p>
134
+ <p>The duration left in the sound file.</p>
133
135
  </div></span>
134
136
 
135
137
  </li>
136
138
 
137
139
 
138
- <li class="public ">
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 ">
139
154
  <span class="summary_signature">
140
155
 
141
- <a href="#duration-instance_method" title="#duration (instance method)">#<strong>duration</strong> &#x21d2; Float </a>
156
+ <a href="#play-class_method" title="play (class method)">.<strong>play</strong>(path, loop = false, volume = 1.0) &#x21d2; Audio </a>
142
157
 
143
158
 
144
159
 
@@ -146,11 +161,6 @@
146
161
 
147
162
 
148
163
 
149
-
150
- <span class="note title readonly">readonly</span>
151
-
152
-
153
-
154
164
 
155
165
 
156
166
 
@@ -158,16 +168,26 @@
158
168
 
159
169
 
160
170
  <span class="summary_desc"><div class='inline'>
161
- <p>The duration left in the sound file.</p>
171
+ <p>Creates a new Audio object based on a sound file at the given path and
172
+ immediately plays it.</p>
162
173
  </div></span>
163
174
 
164
175
  </li>
165
176
 
166
-
167
- <li class="public ">
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 ">
168
188
  <span class="summary_signature">
169
189
 
170
- <a href="#loop%3F-instance_method" title="#loop? (instance method)">#<strong>loop?</strong> &#x21d2; Boolean </a>
190
+ <a href="#current_position-instance_method" title="#current_position (instance method)">#<strong>current_position</strong> &#x21d2; Float </a>
171
191
 
172
192
 
173
193
 
@@ -175,9 +195,6 @@
175
195
 
176
196
 
177
197
 
178
-
179
-
180
-
181
198
 
182
199
 
183
200
 
@@ -185,16 +202,16 @@
185
202
 
186
203
 
187
204
  <span class="summary_desc"><div class='inline'>
188
- <p>Whether the sound file should loop.</p>
205
+ <p>The position where to play the sound file.</p>
189
206
  </div></span>
190
207
 
191
208
  </li>
192
209
 
193
-
194
- <li class="public ">
210
+
211
+ <li class="public ">
195
212
  <span class="summary_signature">
196
213
 
197
- <a href="#volume-instance_method" title="#volume (instance method)">#<strong>volume</strong> &#x21d2; Float </a>
214
+ <a href="#current_position%3D-instance_method" title="#current_position= (instance method)">#<strong>current_position=</strong>(value) &#x21d2; Object </a>
198
215
 
199
216
 
200
217
 
@@ -202,9 +219,6 @@
202
219
 
203
220
 
204
221
 
205
-
206
-
207
-
208
222
 
209
223
 
210
224
 
@@ -212,29 +226,40 @@
212
226
 
213
227
 
214
228
  <span class="summary_desc"><div class='inline'>
215
- <p>The volume of the sound file, from a 0.0 to 1.0 Float range.</p>
229
+ <p>Set the position where to play the sound.</p>
216
230
  </div></span>
217
231
 
218
232
  </li>
219
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) &#x21d2; Object </a>
220
239
 
221
- </ul>
222
-
223
-
224
240
 
241
+
242
+ </span>
243
+
244
+
245
+
246
+
247
+
248
+
249
+
225
250
 
226
251
 
227
- <h2>
228
- Constructors
229
- <small><a href="#" class="summary_toggle">collapse</a></small>
230
- </h2>
252
+ <span class="summary_desc"><div class='inline'>
253
+ <p>Set whether to loop the sound.</p>
254
+ </div></span>
255
+
256
+ </li>
231
257
 
232
- <ul class="summary">
233
258
 
234
259
  <li class="public ">
235
260
  <span class="summary_signature">
236
261
 
237
- <a href="#play-class_method" title="play (class method)">.<strong>play</strong>(path, loop = false, volume = 1.0) &#x21d2; Audio </a>
262
+ <a href="#loop%3F-instance_method" title="#loop? (instance method)">#<strong>loop?</strong> &#x21d2; Boolean </a>
238
263
 
239
264
 
240
265
 
@@ -249,22 +274,12 @@
249
274
 
250
275
 
251
276
  <span class="summary_desc"><div class='inline'>
252
- <p>Creates a new Audio object based on a sound file at the given path and
253
- immediately plays it.</p>
277
+ <p>Whether the sound file should loop.</p>
254
278
  </div></span>
255
279
 
256
280
  </li>
257
281
 
258
282
 
259
- </ul>
260
-
261
- <h2>
262
- Playback
263
- <small><a href="#" class="summary_toggle">collapse</a></small>
264
- </h2>
265
-
266
- <ul class="summary">
267
-
268
283
  <li class="public ">
269
284
  <span class="summary_signature">
270
285
 
@@ -382,6 +397,54 @@ immediately plays it.</p>
382
397
  <p>Stops the sound file.</p>
383
398
  </div></span>
384
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> &#x21d2; 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) &#x21d2; 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
+
385
448
  </li>
386
449
 
387
450
 
@@ -393,11 +456,11 @@ immediately plays it.</p>
393
456
  <h2>Instance Attribute Details</h2>
394
457
 
395
458
 
396
- <span id="current_position=-instance_method"></span>
459
+ <span id=""></span>
397
460
  <div class="method_details first">
398
- <h3 class="signature first" id="current_position-instance_method">
461
+ <h3 class="signature first" id="duration-instance_method">
399
462
 
400
- #<strong>current_position</strong> &#x21d2; <tt>Float</tt>
463
+ #<strong>duration</strong> &#x21d2; <tt>Float</tt> <span class="extras">(readonly)</span>
401
464
 
402
465
 
403
466
 
@@ -406,7 +469,7 @@ immediately plays it.</p>
406
469
  </h3><div class="docstring">
407
470
  <div class="discussion">
408
471
 
409
- <p>Returns the position where to play the sound file.</p>
472
+ <p>Returns the duration left in the sound file.</p>
410
473
 
411
474
 
412
475
  </div>
@@ -425,7 +488,7 @@ immediately plays it.</p>
425
488
 
426
489
  &mdash;
427
490
  <div class='inline'>
428
- <p>the position where to play the sound file.</p>
491
+ <p>the duration left in the sound file.</p>
429
492
  </div>
430
493
 
431
494
  </li>
@@ -438,27 +501,32 @@ immediately plays it.</p>
438
501
  <pre class="lines">
439
502
 
440
503
 
441
- 386
442
- 387
443
- 388</pre>
504
+ 409
505
+ 410
506
+ 411</pre>
444
507
  </td>
445
508
  <td>
446
- <pre class="code"><span class="info file"># File 'motion-game', line 386</span>
509
+ <pre class="code"><span class="info file"># File 'motion-game', line 409</span>
447
510
 
448
- <span class='kw'>def</span> <span class='id identifier rubyid_current_position'>current_position</span>
449
- <span class='ivar'>@current_position</span>
511
+ <span class='kw'>def</span> <span class='id identifier rubyid_duration'>duration</span>
512
+ <span class='ivar'>@duration</span>
450
513
  <span class='kw'>end</span></pre>
451
514
  </td>
452
515
  </tr>
453
516
  </table>
454
517
  </div>
455
518
 
456
-
457
- <span id=""></span>
458
- <div class="method_details ">
459
- <h3 class="signature " id="duration-instance_method">
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">
460
528
 
461
- #<strong>duration</strong> &#x21d2; <tt>Float</tt> <span class="extras">(readonly)</span>
529
+ .<strong>play</strong>(path, loop = false, volume = 1.0) &#x21d2; <tt><span class='object_link'><a href="" title="MG::Audio (class)">Audio</a></span></tt>
462
530
 
463
531
 
464
532
 
@@ -467,26 +535,84 @@ immediately plays it.</p>
467
535
  </h3><div class="docstring">
468
536
  <div class="discussion">
469
537
 
470
- <p>Returns the duration left in the sound file.</p>
538
+ <p>Creates a new Audio object based on a sound file at the given path and
539
+ immediately plays it.</p>
471
540
 
472
541
 
473
542
  </div>
474
543
  </div>
475
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
+ &mdash;
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
+ &mdash;
576
+ <div class='inline'>
577
+ <p>whether the sound file playback should loop.</p>
578
+ </div>
579
+
580
+ </li>
476
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
+ &mdash;
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
+
477
603
  <p class="tag_title">Returns:</p>
478
604
  <ul class="return">
479
605
 
480
606
  <li>
481
607
 
482
608
 
483
- <span class='type'>(<tt>Float</tt>)</span>
609
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Audio (class)">Audio</a></span></tt>)</span>
484
610
 
485
611
 
486
612
 
487
613
  &mdash;
488
614
  <div class='inline'>
489
- <p>the duration left in the sound file.</p>
615
+ <p>an Audio instance.</p>
490
616
  </div>
491
617
 
492
618
  </li>
@@ -499,27 +625,27 @@ immediately plays it.</p>
499
625
  <pre class="lines">
500
626
 
501
627
 
502
- 389
503
- 390
504
- 391</pre>
628
+ 379</pre>
505
629
  </td>
506
630
  <td>
507
- <pre class="code"><span class="info file"># File 'motion-game', line 389</span>
631
+ <pre class="code"><span class="info file"># File 'motion-game', line 379</span>
508
632
 
509
- <span class='kw'>def</span> <span class='id identifier rubyid_duration'>duration</span>
510
- <span class='ivar'>@duration</span>
511
- <span class='kw'>end</span></pre>
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>
512
634
  </td>
513
635
  </tr>
514
636
  </table>
515
637
  </div>
516
638
 
517
-
518
- <span id="loop?=-instance_method"></span>
519
- <div class="method_details ">
520
- <h3 class="signature " id="loop?-instance_method">
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">
521
647
 
522
- #<strong>loop?</strong> &#x21d2; <tt>Boolean</tt>
648
+ #<strong>current_position</strong> &#x21d2; <tt>Float</tt>
523
649
 
524
650
 
525
651
 
@@ -528,7 +654,7 @@ immediately plays it.</p>
528
654
  </h3><div class="docstring">
529
655
  <div class="discussion">
530
656
 
531
- <p>Returns whether the sound file should loop.</p>
657
+ <p>Returns the position where to play the sound file.</p>
532
658
 
533
659
 
534
660
  </div>
@@ -541,13 +667,13 @@ immediately plays it.</p>
541
667
  <li>
542
668
 
543
669
 
544
- <span class='type'>(<tt>Boolean</tt>)</span>
670
+ <span class='type'>(<tt>Float</tt>)</span>
545
671
 
546
672
 
547
673
 
548
674
  &mdash;
549
675
  <div class='inline'>
550
- <p>whether the sound file should loop.</p>
676
+ <p>the position where to play the sound file.</p>
551
677
  </div>
552
678
 
553
679
  </li>
@@ -560,27 +686,21 @@ immediately plays it.</p>
560
686
  <pre class="lines">
561
687
 
562
688
 
563
- 380
564
- 381
565
- 382</pre>
689
+ 399</pre>
566
690
  </td>
567
691
  <td>
568
- <pre class="code"><span class="info file"># File 'motion-game', line 380</span>
692
+ <pre class="code"><span class="info file"># File 'motion-game', line 399</span>
569
693
 
570
- def loop?
571
- @loop?
572
- end</pre>
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>
573
695
  </td>
574
696
  </tr>
575
697
  </table>
576
698
  </div>
577
699
 
578
-
579
- <span id="volume=-instance_method"></span>
580
700
  <div class="method_details ">
581
- <h3 class="signature " id="volume-instance_method">
701
+ <h3 class="signature " id="current_position=-instance_method">
582
702
 
583
- #<strong>volume</strong> &#x21d2; <tt>Float</tt>
703
+ #<strong>current_position=</strong>(value) &#x21d2; <tt>Object</tt>
584
704
 
585
705
 
586
706
 
@@ -589,18 +709,19 @@ end</pre>
589
709
  </h3><div class="docstring">
590
710
  <div class="discussion">
591
711
 
592
- <p>Returns the volume of the sound file, from a 0.0 to 1.0 Float range.</p>
712
+ <p>Set the position where to play the sound.</p>
593
713
 
594
714
 
595
715
  </div>
596
716
  </div>
597
717
  <div class="tags">
598
-
599
- <p class="tag_title">Returns:</p>
600
- <ul class="return">
718
+ <p class="tag_title">Parameters:</p>
719
+ <ul class="param">
601
720
 
602
721
  <li>
603
722
 
723
+ <span class='name'>value</span>
724
+
604
725
 
605
726
  <span class='type'>(<tt>Float</tt>)</span>
606
727
 
@@ -608,45 +729,35 @@ end</pre>
608
729
 
609
730
  &mdash;
610
731
  <div class='inline'>
611
- <p>the volume of the sound file, from a 0.0 to 1.0 Float range.</p>
732
+ <p>the position</p>
612
733
  </div>
613
734
 
614
735
  </li>
615
736
 
616
737
  </ul>
617
738
 
739
+
618
740
  </div><table class="source_code">
619
741
  <tr>
620
742
  <td>
621
743
  <pre class="lines">
622
744
 
623
745
 
624
- 383
625
- 384
626
- 385</pre>
746
+ 403</pre>
627
747
  </td>
628
748
  <td>
629
- <pre class="code"><span class="info file"># File 'motion-game', line 383</span>
749
+ <pre class="code"><span class="info file"># File 'motion-game', line 403</span>
630
750
 
631
- <span class='kw'>def</span> <span class='id identifier rubyid_volume'>volume</span>
632
- <span class='ivar'>@volume</span>
633
- <span class='kw'>end</span></pre>
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>
634
752
  </td>
635
753
  </tr>
636
754
  </table>
637
755
  </div>
638
756
 
639
- </div>
640
-
641
-
642
- <div id="class_method_details" class="method_details_list">
643
- <h2>Class Method Details</h2>
644
-
645
-
646
- <div class="method_details first">
647
- <h3 class="signature first" id="play-class_method">
757
+ <div class="method_details ">
758
+ <h3 class="signature " id="loop=-instance_method">
648
759
 
649
- .<strong>play</strong>(path, loop = false, volume = 1.0) &#x21d2; <tt><span class='object_link'><a href="" title="MG::Audio (class)">Audio</a></span></tt>
760
+ #<strong>loop=</strong>(value) &#x21d2; <tt>Object</tt>
650
761
 
651
762
 
652
763
 
@@ -655,8 +766,7 @@ end</pre>
655
766
  </h3><div class="docstring">
656
767
  <div class="discussion">
657
768
 
658
- <p>Creates a new Audio object based on a sound file at the given path and
659
- immediately plays it.</p>
769
+ <p>Set whether to loop the sound.</p>
660
770
 
661
771
 
662
772
  </div>
@@ -667,72 +777,72 @@ immediately plays it.</p>
667
777
 
668
778
  <li>
669
779
 
670
- <span class='name'>path</span>
671
-
672
-
673
- <span class='type'>(<tt>String</tt>)</span>
674
-
675
-
676
-
677
- &mdash;
678
- <div class='inline'>
679
- <p>the path of the sound file that should be played.</p>
680
- </div>
681
-
682
- </li>
683
-
684
- <li>
685
-
686
- <span class='name'>loop</span>
780
+ <span class='name'>value</span>
687
781
 
688
782
 
689
783
  <span class='type'>(<tt>Boolean</tt>)</span>
690
784
 
691
785
 
692
- <em class="default">(defaults to: <tt>false</tt>)</em>
693
-
694
786
 
695
787
  &mdash;
696
788
  <div class='inline'>
697
- <p>whether the sound file playback should loop.</p>
789
+ <p>true if the sound should loop.</p>
698
790
  </div>
699
791
 
700
792
  </li>
701
793
 
702
- <li>
703
-
704
- <span class='name'>volume</span>
705
-
706
-
707
- <span class='type'>(<tt>Float</tt>)</span>
708
-
709
-
710
- <em class="default">(defaults to: <tt>1.0</tt>)</em>
711
-
712
-
713
- &mdash;
714
- <div class='inline'>
715
- <p>the audio volume that should be used to play this this sound file, as a
716
- <code>0.0</code> to <code>1.0</code> Float range.</p>
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>
717
812
  </div>
718
-
719
- </li>
813
+
814
+ <div class="method_details ">
815
+ <h3 class="signature " id="loop?-instance_method">
816
+
817
+ #<strong>loop?</strong> &#x21d2; <tt>Boolean</tt>
720
818
 
721
- </ul>
722
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
+
723
833
  <p class="tag_title">Returns:</p>
724
834
  <ul class="return">
725
835
 
726
836
  <li>
727
837
 
728
838
 
729
- <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Audio (class)">Audio</a></span></tt>)</span>
839
+ <span class='type'>(<tt>Boolean</tt>)</span>
730
840
 
731
841
 
732
842
 
733
843
  &mdash;
734
844
  <div class='inline'>
735
- <p>an Audio instance.</p>
845
+ <p>whether the sound file should loop.</p>
736
846
  </div>
737
847
 
738
848
  </li>
@@ -745,25 +855,19 @@ immediately plays it.</p>
745
855
  <pre class="lines">
746
856
 
747
857
 
748
- 374</pre>
858
+ 385</pre>
749
859
  </td>
750
860
  <td>
751
- <pre class="code"><span class="info file"># File 'motion-game', line 374</span>
861
+ <pre class="code"><span class="info file"># File 'motion-game', line 385</span>
752
862
 
753
- <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>
863
+ <span class='kw'>def</span> <span class='id identifier rubyid_loop?'>loop?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
754
864
  </td>
755
865
  </tr>
756
866
  </table>
757
867
  </div>
758
868
 
759
- </div>
760
-
761
- <div id="instance_method_details" class="method_details_list">
762
- <h2>Instance Method Details</h2>
763
-
764
-
765
- <div class="method_details first">
766
- <h3 class="signature first" id="pause-instance_method">
869
+ <div class="method_details ">
870
+ <h3 class="signature " id="pause-instance_method">
767
871
 
768
872
  #<strong>pause</strong> &#x21d2; <tt><span class='object_link'><a href="" title="MG::Audio (class)">Audio</a></span></tt>
769
873
 
@@ -806,10 +910,10 @@ immediately plays it.</p>
806
910
  <pre class="lines">
807
911
 
808
912
 
809
- 400</pre>
913
+ 420</pre>
810
914
  </td>
811
915
  <td>
812
- <pre class="code"><span class="info file"># File 'motion-game', line 400</span>
916
+ <pre class="code"><span class="info file"># File 'motion-game', line 420</span>
813
917
 
814
918
  <span class='kw'>def</span> <span class='id identifier rubyid_pause'>pause</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
815
919
  </td>
@@ -861,10 +965,10 @@ immediately plays it.</p>
861
965
  <pre class="lines">
862
966
 
863
967
 
864
- 410</pre>
968
+ 430</pre>
865
969
  </td>
866
970
  <td>
867
- <pre class="code"><span class="info file"># File 'motion-game', line 410</span>
971
+ <pre class="code"><span class="info file"># File 'motion-game', line 430</span>
868
972
 
869
973
  <span class='kw'>def</span> <span class='id identifier rubyid_paused?'>paused?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
870
974
  </td>
@@ -916,10 +1020,10 @@ immediately plays it.</p>
916
1020
  <pre class="lines">
917
1021
 
918
1022
 
919
- 407</pre>
1023
+ 427</pre>
920
1024
  </td>
921
1025
  <td>
922
- <pre class="code"><span class="info file"># File 'motion-game', line 407</span>
1026
+ <pre class="code"><span class="info file"># File 'motion-game', line 427</span>
923
1027
 
924
1028
  <span class='kw'>def</span> <span class='id identifier rubyid_playing?'>playing?</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
925
1029
  </td>
@@ -971,10 +1075,10 @@ immediately plays it.</p>
971
1075
  <pre class="lines">
972
1076
 
973
1077
 
974
- 396</pre>
1078
+ 416</pre>
975
1079
  </td>
976
1080
  <td>
977
- <pre class="code"><span class="info file"># File 'motion-game', line 396</span>
1081
+ <pre class="code"><span class="info file"># File 'motion-game', line 416</span>
978
1082
 
979
1083
  <span class='kw'>def</span> <span class='id identifier rubyid_resume'>resume</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
980
1084
  </td>
@@ -1026,15 +1130,127 @@ immediately plays it.</p>
1026
1130
  <pre class="lines">
1027
1131
 
1028
1132
 
1029
- 404</pre>
1133
+ 424</pre>
1030
1134
  </td>
1031
1135
  <td>
1032
- <pre class="code"><span class="info file"># File 'motion-game', line 404</span>
1136
+ <pre class="code"><span class="info file"># File 'motion-game', line 424</span>
1033
1137
 
1034
1138
  <span class='kw'>def</span> <span class='id identifier rubyid_stop'>stop</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1035
1139
  </td>
1036
1140
  </tr>
1037
1141
  </table>
1142
+ </div>
1143
+
1144
+ <div class="method_details ">
1145
+ <h3 class="signature " id="volume-instance_method">
1146
+
1147
+ #<strong>volume</strong> &#x21d2; <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
+ &mdash;
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) &#x21d2; <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
+ &mdash;
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>
1038
1254
  </div>
1039
1255
 
1040
1256
  </div>
@@ -1042,7 +1258,7 @@ immediately plays it.</p>
1042
1258
  </div>
1043
1259
 
1044
1260
  <div id="footer">
1045
- Generated on Sun Nov 27 15:52:18 2016 by
1261
+ Generated on Sun Dec 11 16:38:29 2016 by
1046
1262
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1047
1263
  0.9.5 (ruby-2.3.3).
1048
1264
  </div>