motion-game 1.1 → 1.1.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/build/android/armeabi/libmotion-cocos.a +0 -0
- data/build/android/motion-cocos.jar +0 -0
- data/build/android/x86/libmotion-cocos.a +0 -0
- data/build/ios/libmotion-cocos.a +0 -0
- data/build/tvos/libchipmunk.a +0 -0
- data/build/tvos/libcrypto.a +0 -0
- data/build/tvos/libcurl.a +0 -0
- data/build/tvos/libfreetype.a +0 -0
- data/build/tvos/libjpeg.a +0 -0
- data/build/tvos/libmotion-cocos.a +0 -0
- data/build/tvos/libpng.a +0 -0
- data/build/tvos/libssl.a +0 -0
- data/build/tvos/libtiff.a +0 -0
- data/build/tvos/libwebp.a +0 -0
- data/doc/MG.html +3 -3
- data/doc/MG/Application.html +8 -8
- data/doc/MG/Audio.html +2 -2
- data/doc/MG/Button.html +27 -27
- data/doc/MG/Color.html +28 -23
- data/doc/MG/Director.html +2 -2
- data/doc/MG/Draw.html +6 -6
- data/doc/MG/Events.html +2 -2
- data/doc/MG/Events/Acceleration.html +2 -2
- data/doc/MG/Events/Touch.html +2 -2
- data/doc/MG/File.html +216 -0
- data/doc/MG/Layout.html +16 -16
- data/doc/MG/List.html +22 -22
- data/doc/MG/Node.html +58 -57
- data/doc/MG/Parallax.html +4 -4
- data/doc/MG/Particle.html +48 -48
- data/doc/MG/Point.html +18 -16
- data/doc/MG/Scene.html +319 -28
- data/doc/MG/Scroll.html +16 -16
- data/doc/MG/Size.html +22 -20
- data/doc/MG/Slider.html +8 -8
- data/doc/MG/Sprite.html +60 -60
- data/doc/MG/Text.html +32 -32
- data/doc/MG/Web.html +16 -16
- data/doc/MG/Widget.html +12 -12
- data/doc/_index.html +20 -5
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +63 -16
- data/doc/index.html +63 -16
- data/doc/method_list.html +104 -80
- data/doc/top-level-namespace.html +2 -2
- data/template/motion-game/files/config/tvos.rb.erb +1 -1
- metadata +55 -44
data/doc/MG/Parallax.html
CHANGED
@@ -269,10 +269,10 @@ view.</p>
|
|
269
269
|
<pre class="lines">
|
270
270
|
|
271
271
|
|
272
|
-
|
272
|
+
383</pre>
|
273
273
|
</td>
|
274
274
|
<td>
|
275
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
275
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 383</span>
|
276
276
|
|
277
277
|
<span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_node'>node</span><span class='comma'>,</span> <span class='id identifier rubyid_zpos'>zpos</span><span class='comma'>,</span> <span class='id identifier rubyid_parallax_ratio'>parallax_ratio</span><span class='comma'>,</span> <span class='id identifier rubyid_position_offset'>position_offset</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
278
278
|
</td>
|
@@ -285,9 +285,9 @@ view.</p>
|
|
285
285
|
</div>
|
286
286
|
|
287
287
|
<div id="footer">
|
288
|
-
Generated on
|
288
|
+
Generated on Sun Feb 28 09:23:30 2016 by
|
289
289
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
290
|
-
0.8.7.6 (ruby-2.
|
290
|
+
0.8.7.6 (ruby-2.2.3).
|
291
291
|
</div>
|
292
292
|
|
293
293
|
</body>
|
data/doc/MG/Particle.html
CHANGED
@@ -519,10 +519,10 @@ Particle object will be created.</p>
|
|
519
519
|
<pre class="lines">
|
520
520
|
|
521
521
|
|
522
|
-
|
522
|
+
417</pre>
|
523
523
|
</td>
|
524
524
|
<td>
|
525
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
525
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 417</span>
|
526
526
|
|
527
527
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_file_name'>file_name</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
528
528
|
</td>
|
@@ -581,12 +581,12 @@ Particle object will be created.</p>
|
|
581
581
|
<pre class="lines">
|
582
582
|
|
583
583
|
|
584
|
-
|
585
|
-
|
586
|
-
|
584
|
+
435
|
585
|
+
436
|
586
|
+
437</pre>
|
587
587
|
</td>
|
588
588
|
<td>
|
589
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
589
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 435</span>
|
590
590
|
|
591
591
|
<span class='kw'>def</span> <span class='id identifier rubyid_angle'>angle</span>
|
592
592
|
<span class='ivar'>@angle</span>
|
@@ -642,12 +642,12 @@ Particle object will be created.</p>
|
|
642
642
|
<pre class="lines">
|
643
643
|
|
644
644
|
|
645
|
-
|
646
|
-
|
647
|
-
|
645
|
+
438
|
646
|
+
439
|
647
|
+
440</pre>
|
648
648
|
</td>
|
649
649
|
<td>
|
650
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
650
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 438</span>
|
651
651
|
|
652
652
|
<span class='kw'>def</span> <span class='id identifier rubyid_angle_range'>angle_range</span>
|
653
653
|
<span class='ivar'>@angle_range</span>
|
@@ -703,12 +703,12 @@ Particle object will be created.</p>
|
|
703
703
|
<pre class="lines">
|
704
704
|
|
705
705
|
|
706
|
-
|
707
|
-
|
708
|
-
|
706
|
+
441
|
707
|
+
442
|
708
|
+
443</pre>
|
709
709
|
</td>
|
710
710
|
<td>
|
711
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
711
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 441</span>
|
712
712
|
|
713
713
|
<span class='kw'>def</span> <span class='id identifier rubyid_duration'>duration</span>
|
714
714
|
<span class='ivar'>@duration</span>
|
@@ -764,12 +764,12 @@ Particle object will be created.</p>
|
|
764
764
|
<pre class="lines">
|
765
765
|
|
766
766
|
|
767
|
-
|
768
|
-
|
769
|
-
|
767
|
+
453
|
768
|
+
454
|
769
|
+
455</pre>
|
770
770
|
</td>
|
771
771
|
<td>
|
772
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
772
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 453</span>
|
773
773
|
|
774
774
|
<span class='kw'>def</span> <span class='id identifier rubyid_end_color'>end_color</span>
|
775
775
|
<span class='ivar'>@end_color</span>
|
@@ -825,12 +825,12 @@ Particle object will be created.</p>
|
|
825
825
|
<pre class="lines">
|
826
826
|
|
827
827
|
|
828
|
-
|
829
|
-
|
830
|
-
|
828
|
+
429
|
829
|
+
430
|
830
|
+
431</pre>
|
831
831
|
</td>
|
832
832
|
<td>
|
833
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
833
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 429</span>
|
834
834
|
|
835
835
|
<span class='kw'>def</span> <span class='id identifier rubyid_life'>life</span>
|
836
836
|
<span class='ivar'>@life</span>
|
@@ -886,12 +886,12 @@ Particle object will be created.</p>
|
|
886
886
|
<pre class="lines">
|
887
887
|
|
888
888
|
|
889
|
-
|
890
|
-
|
891
|
-
|
889
|
+
432
|
890
|
+
433
|
891
|
+
434</pre>
|
892
892
|
</td>
|
893
893
|
<td>
|
894
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
894
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 432</span>
|
895
895
|
|
896
896
|
<span class='kw'>def</span> <span class='id identifier rubyid_life_range'>life_range</span>
|
897
897
|
<span class='ivar'>@life_range</span>
|
@@ -947,12 +947,12 @@ Particle object will be created.</p>
|
|
947
947
|
<pre class="lines">
|
948
948
|
|
949
949
|
|
950
|
-
|
951
|
-
|
952
|
-
|
950
|
+
447
|
951
|
+
448
|
952
|
+
449</pre>
|
953
953
|
</td>
|
954
954
|
<td>
|
955
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
955
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 447</span>
|
956
956
|
|
957
957
|
<span class='kw'>def</span> <span class='id identifier rubyid_particle_count'>particle_count</span>
|
958
958
|
<span class='ivar'>@particle_count</span>
|
@@ -1008,12 +1008,12 @@ Particle object will be created.</p>
|
|
1008
1008
|
<pre class="lines">
|
1009
1009
|
|
1010
1010
|
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1011
|
+
444
|
1012
|
+
445
|
1013
|
+
446</pre>
|
1014
1014
|
</td>
|
1015
1015
|
<td>
|
1016
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1016
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 444</span>
|
1017
1017
|
|
1018
1018
|
<span class='kw'>def</span> <span class='id identifier rubyid_position_range'>position_range</span>
|
1019
1019
|
<span class='ivar'>@position_range</span>
|
@@ -1069,12 +1069,12 @@ Particle object will be created.</p>
|
|
1069
1069
|
<pre class="lines">
|
1070
1070
|
|
1071
1071
|
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1072
|
+
426
|
1073
|
+
427
|
1074
|
+
428</pre>
|
1075
1075
|
</td>
|
1076
1076
|
<td>
|
1077
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1077
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 426</span>
|
1078
1078
|
|
1079
1079
|
<span class='kw'>def</span> <span class='id identifier rubyid_speed'>speed</span>
|
1080
1080
|
<span class='ivar'>@speed</span>
|
@@ -1130,12 +1130,12 @@ Particle object will be created.</p>
|
|
1130
1130
|
<pre class="lines">
|
1131
1131
|
|
1132
1132
|
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1133
|
+
450
|
1134
|
+
451
|
1135
|
+
452</pre>
|
1136
1136
|
</td>
|
1137
1137
|
<td>
|
1138
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1138
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 450</span>
|
1139
1139
|
|
1140
1140
|
<span class='kw'>def</span> <span class='id identifier rubyid_start_color'>start_color</span>
|
1141
1141
|
<span class='ivar'>@start_color</span>
|
@@ -1191,12 +1191,12 @@ Particle object will be created.</p>
|
|
1191
1191
|
<pre class="lines">
|
1192
1192
|
|
1193
1193
|
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1194
|
+
423
|
1195
|
+
424
|
1196
|
+
425</pre>
|
1197
1197
|
</td>
|
1198
1198
|
<td>
|
1199
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1199
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 423</span>
|
1200
1200
|
|
1201
1201
|
<span class='kw'>def</span> <span class='id identifier rubyid_texture='>texture=</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
|
1202
1202
|
<span class='ivar'>@texture</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
@@ -1212,9 +1212,9 @@ Particle object will be created.</p>
|
|
1212
1212
|
</div>
|
1213
1213
|
|
1214
1214
|
<div id="footer">
|
1215
|
-
Generated on
|
1215
|
+
Generated on Sun Feb 28 09:23:30 2016 by
|
1216
1216
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1217
|
-
0.8.7.6 (ruby-2.
|
1217
|
+
0.8.7.6 (ruby-2.2.3).
|
1218
1218
|
</div>
|
1219
1219
|
|
1220
1220
|
</body>
|
data/doc/MG/Point.html
CHANGED
@@ -109,14 +109,16 @@
|
|
109
109
|
<code>Array</code> can be passed instead, as a convenience shortcut. For
|
110
110
|
example,</p>
|
111
111
|
|
112
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_location'>location</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='int'>10</span><span class='comma'>,</span> <span class='int'>20</span><span class='rbracket'>]</span
|
112
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_location'>location</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='int'>10</span><span class='comma'>,</span> <span class='int'>20</span><span class='rbracket'>]</span>
|
113
|
+
</code></pre>
|
113
114
|
|
114
115
|
<p>is the same as</p>
|
115
116
|
|
116
117
|
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_point'>point</span> <span class='op'>=</span> <span class='const'>MG</span><span class='op'>::</span><span class='const'>Point</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
117
118
|
<span class='id identifier rubyid_point'>point</span><span class='period'>.</span><span class='id identifier rubyid_x'>x</span> <span class='op'>=</span> <span class='int'>10</span>
|
118
119
|
<span class='id identifier rubyid_point'>point</span><span class='period'>.</span><span class='id identifier rubyid_y'>y</span> <span class='op'>=</span> <span class='int'>20</span>
|
119
|
-
<span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_location'>location</span> <span class='op'>=</span> <span class='id identifier rubyid_point'>point</span
|
120
|
+
<span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_location'>location</span> <span class='op'>=</span> <span class='id identifier rubyid_point'>point</span>
|
121
|
+
</code></pre>
|
120
122
|
|
121
123
|
|
122
124
|
</div>
|
@@ -301,12 +303,12 @@ given point object.</p>
|
|
301
303
|
<pre class="lines">
|
302
304
|
|
303
305
|
|
304
|
-
|
305
|
-
|
306
|
-
|
306
|
+
590
|
307
|
+
591
|
308
|
+
592</pre>
|
307
309
|
</td>
|
308
310
|
<td>
|
309
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
311
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 590</span>
|
310
312
|
|
311
313
|
<span class='kw'>def</span> <span class='id identifier rubyid_x'>x</span>
|
312
314
|
<span class='ivar'>@x</span>
|
@@ -362,12 +364,12 @@ given point object.</p>
|
|
362
364
|
<pre class="lines">
|
363
365
|
|
364
366
|
|
365
|
-
|
366
|
-
|
367
|
-
|
367
|
+
593
|
368
|
+
594
|
369
|
+
595</pre>
|
368
370
|
</td>
|
369
371
|
<td>
|
370
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
372
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 593</span>
|
371
373
|
|
372
374
|
<span class='kw'>def</span> <span class='id identifier rubyid_y'>y</span>
|
373
375
|
<span class='ivar'>@y</span>
|
@@ -444,10 +446,10 @@ point object.</p>
|
|
444
446
|
<pre class="lines">
|
445
447
|
|
446
448
|
|
447
|
-
|
449
|
+
602</pre>
|
448
450
|
</td>
|
449
451
|
<td>
|
450
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
452
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 602</span>
|
451
453
|
|
452
454
|
<span class='kw'>def</span> <span class='op'>+</span><span class='lparen'>(</span><span class='id identifier rubyid_point'>point</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
453
455
|
</td>
|
@@ -515,10 +517,10 @@ given point object.</p>
|
|
515
517
|
<pre class="lines">
|
516
518
|
|
517
519
|
|
518
|
-
|
520
|
+
608</pre>
|
519
521
|
</td>
|
520
522
|
<td>
|
521
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
523
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 608</span>
|
522
524
|
|
523
525
|
<span class='kw'>def</span> <span class='op'>-</span><span class='lparen'>(</span><span class='id identifier rubyid_point'>point</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
524
526
|
</td>
|
@@ -531,9 +533,9 @@ given point object.</p>
|
|
531
533
|
</div>
|
532
534
|
|
533
535
|
<div id="footer">
|
534
|
-
Generated on
|
536
|
+
Generated on Sun Feb 28 09:23:31 2016 by
|
535
537
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
536
|
-
0.8.7.6 (ruby-2.
|
538
|
+
0.8.7.6 (ruby-2.2.3).
|
537
539
|
</div>
|
538
540
|
|
539
541
|
</body>
|
data/doc/MG/Scene.html
CHANGED
@@ -428,6 +428,78 @@ game loop. An application must have at least one scene, and the
|
|
428
428
|
<p>Starts listening for touch begin events on the receiver.</p>
|
429
429
|
</div></span>
|
430
430
|
|
431
|
+
</li>
|
432
|
+
|
433
|
+
|
434
|
+
<li class="public ">
|
435
|
+
<span class="summary_signature">
|
436
|
+
|
437
|
+
<a href="#on_touch_cancel-instance_method" title="#on_touch_cancel (instance method)">- (Scene) <strong>on_touch_cancel</strong> {|Events::Touch| ... }</a>
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
</span>
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
<span class="summary_desc"><div class='inline'>
|
452
|
+
<p>Starts listening for touch cancel events on the receiver.</p>
|
453
|
+
</div></span>
|
454
|
+
|
455
|
+
</li>
|
456
|
+
|
457
|
+
|
458
|
+
<li class="public ">
|
459
|
+
<span class="summary_signature">
|
460
|
+
|
461
|
+
<a href="#on_touch_end-instance_method" title="#on_touch_end (instance method)">- (Scene) <strong>on_touch_end</strong> {|Events::Touch| ... }</a>
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
</span>
|
466
|
+
|
467
|
+
|
468
|
+
|
469
|
+
|
470
|
+
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
<span class="summary_desc"><div class='inline'>
|
476
|
+
<p>Starts listening for touch end events on the receiver.</p>
|
477
|
+
</div></span>
|
478
|
+
|
479
|
+
</li>
|
480
|
+
|
481
|
+
|
482
|
+
<li class="public ">
|
483
|
+
<span class="summary_signature">
|
484
|
+
|
485
|
+
<a href="#on_touch_move-instance_method" title="#on_touch_move (instance method)">- (Scene) <strong>on_touch_move</strong> {|Events::Touch| ... }</a>
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
</span>
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
<span class="summary_desc"><div class='inline'>
|
500
|
+
<p>Starts listening for touch move events on the receiver.</p>
|
501
|
+
</div></span>
|
502
|
+
|
431
503
|
</li>
|
432
504
|
|
433
505
|
|
@@ -476,10 +548,10 @@ the update loop by calling <span class='object_link'><a href="#start_update-inst
|
|
476
548
|
<pre class="lines">
|
477
549
|
|
478
550
|
|
479
|
-
|
551
|
+
191</pre>
|
480
552
|
</td>
|
481
553
|
<td>
|
482
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
554
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 191</span>
|
483
555
|
|
484
556
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
485
557
|
</td>
|
@@ -538,12 +610,12 @@ the update loop by calling <span class='object_link'><a href="#start_update-inst
|
|
538
610
|
<pre class="lines">
|
539
611
|
|
540
612
|
|
541
|
-
|
542
|
-
|
543
|
-
|
613
|
+
275
|
614
|
+
276
|
615
|
+
277</pre>
|
544
616
|
</td>
|
545
617
|
<td>
|
546
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
618
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 275</span>
|
547
619
|
|
548
620
|
def debug_physics?
|
549
621
|
@debug_physics?
|
@@ -599,12 +671,12 @@ end</pre>
|
|
599
671
|
<pre class="lines">
|
600
672
|
|
601
673
|
|
602
|
-
|
603
|
-
|
604
|
-
|
674
|
+
272
|
675
|
+
273
|
676
|
+
274</pre>
|
605
677
|
</td>
|
606
678
|
<td>
|
607
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
679
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 272</span>
|
608
680
|
|
609
681
|
<span class='kw'>def</span> <span class='id identifier rubyid_gravity'>gravity</span>
|
610
682
|
<span class='ivar'>@gravity</span>
|
@@ -684,10 +756,10 @@ the device.</p>
|
|
684
756
|
<pre class="lines">
|
685
757
|
|
686
758
|
|
687
|
-
|
759
|
+
260</pre>
|
688
760
|
</td>
|
689
761
|
<td>
|
690
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
762
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 260</span>
|
691
763
|
|
692
764
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_accelerate'>on_accelerate</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
693
765
|
</td>
|
@@ -758,10 +830,10 @@ physics engine.</p>
|
|
758
830
|
<pre class="lines">
|
759
831
|
|
760
832
|
|
761
|
-
|
833
|
+
266</pre>
|
762
834
|
</td>
|
763
835
|
<td>
|
764
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
836
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 266</span>
|
765
837
|
|
766
838
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_contact_begin'>on_contact_begin</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
767
839
|
</td>
|
@@ -831,15 +903,234 @@ physics engine.</p>
|
|
831
903
|
<pre class="lines">
|
832
904
|
|
833
905
|
|
834
|
-
|
906
|
+
236</pre>
|
835
907
|
</td>
|
836
908
|
<td>
|
837
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
909
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 236</span>
|
838
910
|
|
839
911
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_touch_begin'>on_touch_begin</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
840
912
|
</td>
|
841
913
|
</tr>
|
842
914
|
</table>
|
915
|
+
</div>
|
916
|
+
|
917
|
+
<div class="method_details ">
|
918
|
+
<h3 class="signature " id="on_touch_cancel-instance_method">
|
919
|
+
|
920
|
+
- (<tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>) <strong>on_touch_cancel</strong> {|Events::Touch| ... }
|
921
|
+
|
922
|
+
|
923
|
+
|
924
|
+
|
925
|
+
|
926
|
+
</h3><div class="docstring">
|
927
|
+
<div class="discussion">
|
928
|
+
|
929
|
+
<p>Starts listening for touch cancel events on the receiver.</p>
|
930
|
+
|
931
|
+
|
932
|
+
</div>
|
933
|
+
</div>
|
934
|
+
<div class="tags">
|
935
|
+
|
936
|
+
<p class="tag_title">Yields:</p>
|
937
|
+
<ul class="yield">
|
938
|
+
|
939
|
+
<li>
|
940
|
+
|
941
|
+
|
942
|
+
<span class='type'>(<tt><span class='object_link'><a href="Events/Touch.html" title="MG::Events::Touch (class)">Events::Touch</a></span></tt>)</span>
|
943
|
+
|
944
|
+
|
945
|
+
|
946
|
+
—
|
947
|
+
<div class='inline'>
|
948
|
+
<p>the given block will be yield when a touch cancel event is received.</p>
|
949
|
+
</div>
|
950
|
+
|
951
|
+
</li>
|
952
|
+
|
953
|
+
</ul>
|
954
|
+
<p class="tag_title">Returns:</p>
|
955
|
+
<ul class="return">
|
956
|
+
|
957
|
+
<li>
|
958
|
+
|
959
|
+
|
960
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>)</span>
|
961
|
+
|
962
|
+
|
963
|
+
|
964
|
+
—
|
965
|
+
<div class='inline'>
|
966
|
+
<p>the receiver.</p>
|
967
|
+
</div>
|
968
|
+
|
969
|
+
</li>
|
970
|
+
|
971
|
+
</ul>
|
972
|
+
|
973
|
+
</div><table class="source_code">
|
974
|
+
<tr>
|
975
|
+
<td>
|
976
|
+
<pre class="lines">
|
977
|
+
|
978
|
+
|
979
|
+
254</pre>
|
980
|
+
</td>
|
981
|
+
<td>
|
982
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 254</span>
|
983
|
+
|
984
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_on_touch_cancel'>on_touch_cancel</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
985
|
+
</td>
|
986
|
+
</tr>
|
987
|
+
</table>
|
988
|
+
</div>
|
989
|
+
|
990
|
+
<div class="method_details ">
|
991
|
+
<h3 class="signature " id="on_touch_end-instance_method">
|
992
|
+
|
993
|
+
- (<tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>) <strong>on_touch_end</strong> {|Events::Touch| ... }
|
994
|
+
|
995
|
+
|
996
|
+
|
997
|
+
|
998
|
+
|
999
|
+
</h3><div class="docstring">
|
1000
|
+
<div class="discussion">
|
1001
|
+
|
1002
|
+
<p>Starts listening for touch end events on the receiver.</p>
|
1003
|
+
|
1004
|
+
|
1005
|
+
</div>
|
1006
|
+
</div>
|
1007
|
+
<div class="tags">
|
1008
|
+
|
1009
|
+
<p class="tag_title">Yields:</p>
|
1010
|
+
<ul class="yield">
|
1011
|
+
|
1012
|
+
<li>
|
1013
|
+
|
1014
|
+
|
1015
|
+
<span class='type'>(<tt><span class='object_link'><a href="Events/Touch.html" title="MG::Events::Touch (class)">Events::Touch</a></span></tt>)</span>
|
1016
|
+
|
1017
|
+
|
1018
|
+
|
1019
|
+
—
|
1020
|
+
<div class='inline'>
|
1021
|
+
<p>the given block will be yield when a touch end event is received.</p>
|
1022
|
+
</div>
|
1023
|
+
|
1024
|
+
</li>
|
1025
|
+
|
1026
|
+
</ul>
|
1027
|
+
<p class="tag_title">Returns:</p>
|
1028
|
+
<ul class="return">
|
1029
|
+
|
1030
|
+
<li>
|
1031
|
+
|
1032
|
+
|
1033
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>)</span>
|
1034
|
+
|
1035
|
+
|
1036
|
+
|
1037
|
+
—
|
1038
|
+
<div class='inline'>
|
1039
|
+
<p>the receiver.</p>
|
1040
|
+
</div>
|
1041
|
+
|
1042
|
+
</li>
|
1043
|
+
|
1044
|
+
</ul>
|
1045
|
+
|
1046
|
+
</div><table class="source_code">
|
1047
|
+
<tr>
|
1048
|
+
<td>
|
1049
|
+
<pre class="lines">
|
1050
|
+
|
1051
|
+
|
1052
|
+
242</pre>
|
1053
|
+
</td>
|
1054
|
+
<td>
|
1055
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 242</span>
|
1056
|
+
|
1057
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_on_touch_end'>on_touch_end</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1058
|
+
</td>
|
1059
|
+
</tr>
|
1060
|
+
</table>
|
1061
|
+
</div>
|
1062
|
+
|
1063
|
+
<div class="method_details ">
|
1064
|
+
<h3 class="signature " id="on_touch_move-instance_method">
|
1065
|
+
|
1066
|
+
- (<tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>) <strong>on_touch_move</strong> {|Events::Touch| ... }
|
1067
|
+
|
1068
|
+
|
1069
|
+
|
1070
|
+
|
1071
|
+
|
1072
|
+
</h3><div class="docstring">
|
1073
|
+
<div class="discussion">
|
1074
|
+
|
1075
|
+
<p>Starts listening for touch move events on the receiver.</p>
|
1076
|
+
|
1077
|
+
|
1078
|
+
</div>
|
1079
|
+
</div>
|
1080
|
+
<div class="tags">
|
1081
|
+
|
1082
|
+
<p class="tag_title">Yields:</p>
|
1083
|
+
<ul class="yield">
|
1084
|
+
|
1085
|
+
<li>
|
1086
|
+
|
1087
|
+
|
1088
|
+
<span class='type'>(<tt><span class='object_link'><a href="Events/Touch.html" title="MG::Events::Touch (class)">Events::Touch</a></span></tt>)</span>
|
1089
|
+
|
1090
|
+
|
1091
|
+
|
1092
|
+
—
|
1093
|
+
<div class='inline'>
|
1094
|
+
<p>the given block will be yield when a touch move event is received.</p>
|
1095
|
+
</div>
|
1096
|
+
|
1097
|
+
</li>
|
1098
|
+
|
1099
|
+
</ul>
|
1100
|
+
<p class="tag_title">Returns:</p>
|
1101
|
+
<ul class="return">
|
1102
|
+
|
1103
|
+
<li>
|
1104
|
+
|
1105
|
+
|
1106
|
+
<span class='type'>(<tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>)</span>
|
1107
|
+
|
1108
|
+
|
1109
|
+
|
1110
|
+
—
|
1111
|
+
<div class='inline'>
|
1112
|
+
<p>the receiver.</p>
|
1113
|
+
</div>
|
1114
|
+
|
1115
|
+
</li>
|
1116
|
+
|
1117
|
+
</ul>
|
1118
|
+
|
1119
|
+
</div><table class="source_code">
|
1120
|
+
<tr>
|
1121
|
+
<td>
|
1122
|
+
<pre class="lines">
|
1123
|
+
|
1124
|
+
|
1125
|
+
248</pre>
|
1126
|
+
</td>
|
1127
|
+
<td>
|
1128
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 248</span>
|
1129
|
+
|
1130
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_on_touch_move'>on_touch_move</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1131
|
+
</td>
|
1132
|
+
</tr>
|
1133
|
+
</table>
|
843
1134
|
</div>
|
844
1135
|
|
845
1136
|
<div class="method_details ">
|
@@ -961,10 +1252,10 @@ needed.</p>
|
|
961
1252
|
<pre class="lines">
|
962
1253
|
|
963
1254
|
|
964
|
-
|
1255
|
+
221</pre>
|
965
1256
|
</td>
|
966
1257
|
<td>
|
967
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1258
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 221</span>
|
968
1259
|
|
969
1260
|
<span class='kw'>def</span> <span class='id identifier rubyid_schedule'>schedule</span><span class='lparen'>(</span><span class='id identifier rubyid_delay'>delay</span><span class='comma'>,</span> <span class='id identifier rubyid_repeat'>repeat</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_interval'>interval</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
970
1261
|
</td>
|
@@ -1017,10 +1308,10 @@ this object for every frame.</p>
|
|
1017
1308
|
<pre class="lines">
|
1018
1309
|
|
1019
1310
|
|
1020
|
-
|
1311
|
+
199</pre>
|
1021
1312
|
</td>
|
1022
1313
|
<td>
|
1023
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1314
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 199</span>
|
1024
1315
|
|
1025
1316
|
<span class='kw'>def</span> <span class='id identifier rubyid_start_update'>start_update</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1026
1317
|
</td>
|
@@ -1073,10 +1364,10 @@ called on this object.</p>
|
|
1073
1364
|
<pre class="lines">
|
1074
1365
|
|
1075
1366
|
|
1076
|
-
|
1367
|
+
204</pre>
|
1077
1368
|
</td>
|
1078
1369
|
<td>
|
1079
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1370
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 204</span>
|
1080
1371
|
|
1081
1372
|
<span class='kw'>def</span> <span class='id identifier rubyid_stop_update'>stop_update</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1082
1373
|
</td>
|
@@ -1148,10 +1439,10 @@ called on this object.</p>
|
|
1148
1439
|
<pre class="lines">
|
1149
1440
|
|
1150
1441
|
|
1151
|
-
|
1442
|
+
227</pre>
|
1152
1443
|
</td>
|
1153
1444
|
<td>
|
1154
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1445
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 227</span>
|
1155
1446
|
|
1156
1447
|
<span class='kw'>def</span> <span class='id identifier rubyid_unschedule'>unschedule</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1157
1448
|
</td>
|
@@ -1225,10 +1516,10 @@ this method was called.</p>
|
|
1225
1516
|
<pre class="lines">
|
1226
1517
|
|
1227
1518
|
|
1228
|
-
|
1519
|
+
211</pre>
|
1229
1520
|
</td>
|
1230
1521
|
<td>
|
1231
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1522
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 211</span>
|
1232
1523
|
|
1233
1524
|
<span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='id identifier rubyid_delta'>delta</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1234
1525
|
</td>
|
@@ -1241,9 +1532,9 @@ this method was called.</p>
|
|
1241
1532
|
</div>
|
1242
1533
|
|
1243
1534
|
<div id="footer">
|
1244
|
-
Generated on
|
1535
|
+
Generated on Sun Feb 28 09:23:30 2016 by
|
1245
1536
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1246
|
-
0.8.7.6 (ruby-2.
|
1537
|
+
0.8.7.6 (ruby-2.2.3).
|
1247
1538
|
</div>
|
1248
1539
|
|
1249
1540
|
</body>
|