motion-game 1.1 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- 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/Text.html
CHANGED
@@ -460,10 +460,10 @@
|
|
460
460
|
<pre class="lines">
|
461
461
|
|
462
462
|
|
463
|
-
|
463
|
+
733</pre>
|
464
464
|
</td>
|
465
465
|
<td>
|
466
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
466
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 733</span>
|
467
467
|
|
468
468
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_text'>text</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_font'>font</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_font_size'>font_size</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
469
469
|
</td>
|
@@ -522,12 +522,12 @@
|
|
522
522
|
<pre class="lines">
|
523
523
|
|
524
524
|
|
525
|
-
|
526
|
-
|
527
|
-
|
525
|
+
751
|
526
|
+
752
|
527
|
+
753</pre>
|
528
528
|
</td>
|
529
529
|
<td>
|
530
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
530
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 751</span>
|
531
531
|
|
532
532
|
<span class='kw'>def</span> <span class='id identifier rubyid_area_size'>area_size</span>
|
533
533
|
<span class='ivar'>@area_size</span>
|
@@ -583,12 +583,12 @@
|
|
583
583
|
<pre class="lines">
|
584
584
|
|
585
585
|
|
586
|
-
|
587
|
-
|
588
|
-
|
586
|
+
745
|
587
|
+
746
|
588
|
+
747</pre>
|
589
589
|
</td>
|
590
590
|
<td>
|
591
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
591
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 745</span>
|
592
592
|
|
593
593
|
<span class='kw'>def</span> <span class='id identifier rubyid_font'>font</span>
|
594
594
|
<span class='ivar'>@font</span>
|
@@ -644,12 +644,12 @@
|
|
644
644
|
<pre class="lines">
|
645
645
|
|
646
646
|
|
647
|
-
|
648
|
-
|
649
|
-
|
647
|
+
748
|
648
|
+
749
|
649
|
+
750</pre>
|
650
650
|
</td>
|
651
651
|
<td>
|
652
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
652
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 748</span>
|
653
653
|
|
654
654
|
<span class='kw'>def</span> <span class='id identifier rubyid_font_size'>font_size</span>
|
655
655
|
<span class='ivar'>@font_size</span>
|
@@ -705,12 +705,12 @@
|
|
705
705
|
<pre class="lines">
|
706
706
|
|
707
707
|
|
708
|
-
|
709
|
-
|
710
|
-
|
708
|
+
757
|
709
|
+
758
|
710
|
+
759</pre>
|
711
711
|
</td>
|
712
712
|
<td>
|
713
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
713
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 757</span>
|
714
714
|
|
715
715
|
<span class='kw'>def</span> <span class='id identifier rubyid_horizontal_align'>horizontal_align</span>
|
716
716
|
<span class='ivar'>@horizontal_align</span>
|
@@ -766,12 +766,12 @@
|
|
766
766
|
<pre class="lines">
|
767
767
|
|
768
768
|
|
769
|
-
|
770
|
-
|
771
|
-
|
769
|
+
739
|
770
|
+
740
|
771
|
+
741</pre>
|
772
772
|
</td>
|
773
773
|
<td>
|
774
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
774
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 739</span>
|
775
775
|
|
776
776
|
<span class='kw'>def</span> <span class='id identifier rubyid_text'>text</span>
|
777
777
|
<span class='ivar'>@text</span>
|
@@ -827,12 +827,12 @@
|
|
827
827
|
<pre class="lines">
|
828
828
|
|
829
829
|
|
830
|
-
|
831
|
-
|
832
|
-
|
830
|
+
742
|
831
|
+
743
|
832
|
+
744</pre>
|
833
833
|
</td>
|
834
834
|
<td>
|
835
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
835
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 742</span>
|
836
836
|
|
837
837
|
<span class='kw'>def</span> <span class='id identifier rubyid_text_color'>text_color</span>
|
838
838
|
<span class='ivar'>@text_color</span>
|
@@ -888,12 +888,12 @@
|
|
888
888
|
<pre class="lines">
|
889
889
|
|
890
890
|
|
891
|
-
|
892
|
-
|
893
|
-
|
891
|
+
754
|
892
|
+
755
|
893
|
+
756</pre>
|
894
894
|
</td>
|
895
895
|
<td>
|
896
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
896
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 754</span>
|
897
897
|
|
898
898
|
<span class='kw'>def</span> <span class='id identifier rubyid_vertical_align'>vertical_align</span>
|
899
899
|
<span class='ivar'>@vertical_align</span>
|
@@ -909,9 +909,9 @@
|
|
909
909
|
</div>
|
910
910
|
|
911
911
|
<div id="footer">
|
912
|
-
Generated on
|
912
|
+
Generated on Sun Feb 28 09:23:31 2016 by
|
913
913
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
914
|
-
0.8.7.6 (ruby-2.
|
914
|
+
0.8.7.6 (ruby-2.2.3).
|
915
915
|
</div>
|
916
916
|
|
917
917
|
</body>
|
data/doc/MG/Web.html
CHANGED
@@ -370,10 +370,10 @@
|
|
370
370
|
<pre class="lines">
|
371
371
|
|
372
372
|
|
373
|
-
|
373
|
+
914</pre>
|
374
374
|
</td>
|
375
375
|
<td>
|
376
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
376
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 914</span>
|
377
377
|
|
378
378
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
379
379
|
</td>
|
@@ -452,10 +452,10 @@
|
|
452
452
|
<pre class="lines">
|
453
453
|
|
454
454
|
|
455
|
-
|
455
|
+
949</pre>
|
456
456
|
</td>
|
457
457
|
<td>
|
458
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
458
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 949</span>
|
459
459
|
|
460
460
|
<span class='kw'>def</span> <span class='id identifier rubyid_evaluate'>evaluate</span><span class='lparen'>(</span><span class='id identifier rubyid_expr'>expr</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
461
461
|
</td>
|
@@ -527,10 +527,10 @@
|
|
527
527
|
<pre class="lines">
|
528
528
|
|
529
529
|
|
530
|
-
|
530
|
+
933</pre>
|
531
531
|
</td>
|
532
532
|
<td>
|
533
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
533
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 933</span>
|
534
534
|
|
535
535
|
<span class='kw'>def</span> <span class='id identifier rubyid_load_file'>load_file</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
536
536
|
</td>
|
@@ -618,10 +618,10 @@
|
|
618
618
|
<pre class="lines">
|
619
619
|
|
620
620
|
|
621
|
-
|
621
|
+
923</pre>
|
622
622
|
</td>
|
623
623
|
<td>
|
624
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
624
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 923</span>
|
625
625
|
|
626
626
|
<span class='kw'>def</span> <span class='id identifier rubyid_load_html'>load_html</span><span class='lparen'>(</span><span class='id identifier rubyid_str'>str</span><span class='comma'>,</span> <span class='id identifier rubyid_baseurl'>baseurl</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
627
627
|
</td>
|
@@ -693,10 +693,10 @@
|
|
693
693
|
<pre class="lines">
|
694
694
|
|
695
695
|
|
696
|
-
|
696
|
+
928</pre>
|
697
697
|
</td>
|
698
698
|
<td>
|
699
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
699
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 928</span>
|
700
700
|
|
701
701
|
<span class='kw'>def</span> <span class='id identifier rubyid_load_url'>load_url</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
702
702
|
</td>
|
@@ -748,10 +748,10 @@
|
|
748
748
|
<pre class="lines">
|
749
749
|
|
750
750
|
|
751
|
-
|
751
|
+
941</pre>
|
752
752
|
</td>
|
753
753
|
<td>
|
754
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
754
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 941</span>
|
755
755
|
|
756
756
|
<span class='kw'>def</span> <span class='id identifier rubyid_reload'>reload</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
757
757
|
</td>
|
@@ -803,10 +803,10 @@
|
|
803
803
|
<pre class="lines">
|
804
804
|
|
805
805
|
|
806
|
-
|
806
|
+
937</pre>
|
807
807
|
</td>
|
808
808
|
<td>
|
809
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
809
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 937</span>
|
810
810
|
|
811
811
|
<span class='kw'>def</span> <span class='id identifier rubyid_stop'>stop</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
812
812
|
</td>
|
@@ -819,9 +819,9 @@
|
|
819
819
|
</div>
|
820
820
|
|
821
821
|
<div id="footer">
|
822
|
-
Generated on
|
822
|
+
Generated on Sun Feb 28 09:23:31 2016 by
|
823
823
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
824
|
-
0.8.7.6 (ruby-2.
|
824
|
+
0.8.7.6 (ruby-2.2.3).
|
825
825
|
</div>
|
826
826
|
|
827
827
|
</body>
|
data/doc/MG/Widget.html
CHANGED
@@ -286,12 +286,12 @@ clicked. By default, a widget is enabled.</p>
|
|
286
286
|
<pre class="lines">
|
287
287
|
|
288
288
|
|
289
|
-
|
290
|
-
|
291
|
-
|
289
|
+
706
|
290
|
+
707
|
291
|
+
708</pre>
|
292
292
|
</td>
|
293
293
|
<td>
|
294
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
294
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 706</span>
|
295
295
|
|
296
296
|
def enabled?
|
297
297
|
@enabled?
|
@@ -347,12 +347,12 @@ end</pre>
|
|
347
347
|
<pre class="lines">
|
348
348
|
|
349
349
|
|
350
|
-
|
351
|
-
|
352
|
-
|
350
|
+
710
|
351
|
+
711
|
352
|
+
712</pre>
|
353
353
|
</td>
|
354
354
|
<td>
|
355
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
355
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 710</span>
|
356
356
|
|
357
357
|
def highlighted?
|
358
358
|
@highlighted?
|
@@ -435,10 +435,10 @@ widget.</p>
|
|
435
435
|
<pre class="lines">
|
436
436
|
|
437
437
|
|
438
|
-
|
438
|
+
721</pre>
|
439
439
|
</td>
|
440
440
|
<td>
|
441
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
441
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 721</span>
|
442
442
|
|
443
443
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_touch'>on_touch</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
444
444
|
</td>
|
@@ -451,9 +451,9 @@ widget.</p>
|
|
451
451
|
</div>
|
452
452
|
|
453
453
|
<div id="footer">
|
454
|
-
Generated on
|
454
|
+
Generated on Sun Feb 28 09:23:31 2016 by
|
455
455
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
456
|
-
0.8.7.6 (ruby-2.
|
456
|
+
0.8.7.6 (ruby-2.2.3).
|
457
457
|
</div>
|
458
458
|
|
459
459
|
</body>
|
data/doc/_index.html
CHANGED
@@ -176,6 +176,21 @@
|
|
176
176
|
</ul>
|
177
177
|
|
178
178
|
|
179
|
+
<ul id="alpha_F" class="alpha">
|
180
|
+
<li class="letter">F</li>
|
181
|
+
<ul>
|
182
|
+
|
183
|
+
<li>
|
184
|
+
<span class='object_link'><a href="MG/File.html" title="MG::File (class)">File</a></span>
|
185
|
+
|
186
|
+
<small>(MG)</small>
|
187
|
+
|
188
|
+
</li>
|
189
|
+
|
190
|
+
</ul>
|
191
|
+
</ul>
|
192
|
+
|
193
|
+
|
179
194
|
<ul id="alpha_L" class="alpha">
|
180
195
|
<li class="letter">L</li>
|
181
196
|
<ul>
|
@@ -198,6 +213,9 @@
|
|
198
213
|
</ul>
|
199
214
|
|
200
215
|
|
216
|
+
</td><td valign='top' width="33%">
|
217
|
+
|
218
|
+
|
201
219
|
<ul id="alpha_M" class="alpha">
|
202
220
|
<li class="letter">M</li>
|
203
221
|
<ul>
|
@@ -211,9 +229,6 @@
|
|
211
229
|
</ul>
|
212
230
|
|
213
231
|
|
214
|
-
</td><td valign='top' width="33%">
|
215
|
-
|
216
|
-
|
217
232
|
<ul id="alpha_N" class="alpha">
|
218
233
|
<li class="letter">N</li>
|
219
234
|
<ul>
|
@@ -353,9 +368,9 @@
|
|
353
368
|
</div>
|
354
369
|
|
355
370
|
<div id="footer">
|
356
|
-
Generated on
|
371
|
+
Generated on Sun Feb 28 09:23:30 2016 by
|
357
372
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
358
|
-
0.8.7.6 (ruby-2.
|
373
|
+
0.8.7.6 (ruby-2.2.3).
|
359
374
|
</div>
|
360
375
|
|
361
376
|
</body>
|
data/doc/class_list.html
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
|
51
51
|
<ul id="full_list" class="class">
|
52
52
|
<li><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></li>
|
53
|
-
<li><a class='toggle'></a> <span class='object_link'><a href="MG.html" title="MG (module)">MG</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="MG/Application.html" title="MG::Application (class)">Application</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Audio.html" title="MG::Audio (class)">Audio</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Button.html" title="MG::Button (class)">Button</a></span> < Widget<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Color.html" title="MG::Color (class)">Color</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Director.html" title="MG::Director (class)">Director</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Draw.html" title="MG::Draw (class)">Draw</a></span> < Node<small class='search_info'>MG</small></li><li><a class='toggle'></a> <span class='object_link'><a href="MG/Events.html" title="MG::Events (module)">Events</a></span><small class='search_info'>MG</small></li><ul><li><span class='object_link'><a href="MG/Events/Acceleration.html" title="MG::Events::Acceleration (class)">Acceleration</a></span> < Object<small class='search_info'>MG::Events</small></li><li><span class='object_link'><a href="MG/Events/Touch.html" title="MG::Events::Touch (class)">Touch</a></span> < Object<small class='search_info'>MG::Events</small></li></ul><li><span class='object_link'><a href="MG/Layout.html" title="MG::Layout (class)">Layout</a></span> < Widget<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/List.html" title="MG::List (class)">List</a></span> < Scroll<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Node.html" title="MG::Node (class)">Node</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Parallax.html" title="MG::Parallax (class)">Parallax</a></span> < Node<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Particle.html" title="MG::Particle (class)">Particle</a></span> < Node<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Point.html" title="MG::Point (class)">Point</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Scene.html" title="MG::Scene (class)">Scene</a></span> < Node<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Scroll.html" title="MG::Scroll (class)">Scroll</a></span> < Layout<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Size.html" title="MG::Size (class)">Size</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Slider.html" title="MG::Slider (class)">Slider</a></span> < Widget<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Sprite.html" title="MG::Sprite (class)">Sprite</a></span> < Node<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Text.html" title="MG::Text (class)">Text</a></span> < Widget<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Web.html" title="MG::Web (class)">Web</a></span> < Widget<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Widget.html" title="MG::Widget (class)">Widget</a></span> < Node<small class='search_info'>MG</small></li></ul>
|
53
|
+
<li><a class='toggle'></a> <span class='object_link'><a href="MG.html" title="MG (module)">MG</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="MG/Application.html" title="MG::Application (class)">Application</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Audio.html" title="MG::Audio (class)">Audio</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Button.html" title="MG::Button (class)">Button</a></span> < Widget<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Color.html" title="MG::Color (class)">Color</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Director.html" title="MG::Director (class)">Director</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Draw.html" title="MG::Draw (class)">Draw</a></span> < Node<small class='search_info'>MG</small></li><li><a class='toggle'></a> <span class='object_link'><a href="MG/Events.html" title="MG::Events (module)">Events</a></span><small class='search_info'>MG</small></li><ul><li><span class='object_link'><a href="MG/Events/Acceleration.html" title="MG::Events::Acceleration (class)">Acceleration</a></span> < Object<small class='search_info'>MG::Events</small></li><li><span class='object_link'><a href="MG/Events/Touch.html" title="MG::Events::Touch (class)">Touch</a></span> < Object<small class='search_info'>MG::Events</small></li></ul><li><span class='object_link'><a href="MG/File.html" title="MG::File (class)">File</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Layout.html" title="MG::Layout (class)">Layout</a></span> < Widget<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/List.html" title="MG::List (class)">List</a></span> < Scroll<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Node.html" title="MG::Node (class)">Node</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Parallax.html" title="MG::Parallax (class)">Parallax</a></span> < Node<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Particle.html" title="MG::Particle (class)">Particle</a></span> < Node<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Point.html" title="MG::Point (class)">Point</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Scene.html" title="MG::Scene (class)">Scene</a></span> < Node<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Scroll.html" title="MG::Scroll (class)">Scroll</a></span> < Layout<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Size.html" title="MG::Size (class)">Size</a></span> < Object<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Slider.html" title="MG::Slider (class)">Slider</a></span> < Widget<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Sprite.html" title="MG::Sprite (class)">Sprite</a></span> < Node<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Text.html" title="MG::Text (class)">Text</a></span> < Widget<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Web.html" title="MG::Web (class)">Web</a></span> < Widget<small class='search_info'>MG</small></li><li><span class='object_link'><a href="MG/Widget.html" title="MG::Widget (class)">Widget</a></span> < Node<small class='search_info'>MG</small></li></ul>
|
54
54
|
|
55
55
|
</ul>
|
56
56
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -63,7 +63,7 @@
|
|
63
63
|
|
64
64
|
<div id="content"><div id='filecontents'><h1>motion-game</h1>
|
65
65
|
|
66
|
-
<p>motion-game is a cross-platform mobile game engine for RubyMotion. It lets you write mobile games in Ruby for iOS and Android.</p>
|
66
|
+
<p>motion-game is a cross-platform mobile game engine for RubyMotion. It lets you write mobile games in Ruby for iOS, tvOS and Android.</p>
|
67
67
|
|
68
68
|
<p>motion-game is currently in <strong>beta</strong>. Please give it a try and report problems you find to us.</p>
|
69
69
|
|
@@ -71,43 +71,90 @@
|
|
71
71
|
|
72
72
|
<ul>
|
73
73
|
<li><strong>Use Ruby :-)</strong> motion-game exposes a pure Ruby API to write games for mobile devices. You can write a video game all in Ruby.</li>
|
74
|
-
<li><strong>100% cross-platform</strong>: motion-game projects are fully cross-platform for iOS and Android. One codebase runs everywhere.</li>
|
74
|
+
<li><strong>100% cross-platform</strong>: motion-game projects are fully cross-platform for iOS, tvOS and Android. One codebase runs everywhere.</li>
|
75
75
|
<li><strong>Fully-featured</strong>: motion-game has audio, sprites, animations, particles, device sensors / events, scene graph / director, UI widgets, etc.</li>
|
76
76
|
<li><strong>Solid foundations</strong>: the motion-game API is implemented using popular and stable opensource libraries, such as <a href="http://www.cocos2d-x.org/">cocos2d-x</a>, <a href="http://box2d.org/">box2d</a>, and more. motion-game projects are also based on RubyMotion which offers portable Ruby runtimes for iOS and Android as well as static compilation of Ruby code.</li>
|
77
77
|
<li><strong>Native compilation</strong>: your Ruby code will be compiled into optimized native code for each platform you target. There is no interpreter and the original Ruby code will not be in the app.</li>
|
78
|
-
<li><strong>Platform APIs access</strong>: if you need it, you can call the entire set of public iOS or Android APIs from Ruby code as well.</li>
|
78
|
+
<li><strong>Platform APIs access</strong>: if you need it, you can call the entire set of public iOS, tvOS or Android APIs from Ruby code as well.</li>
|
79
79
|
</ul>
|
80
80
|
|
81
81
|
<h2>Getting Started</h2>
|
82
82
|
|
83
|
-
<
|
84
|
-
|
85
|
-
<
|
86
|
-
|
83
|
+
<h3>Installing RubyMotion</h3>
|
84
|
+
|
85
|
+
<p><a href="http://rubymotion.com">RubyMotion 4.7+</a> is required. A starter version can be downloaded for free. You also need to set up your computer for mobile development (iOS and/or tvOS and/or Android). Follow the <a href="http://rubymotion.com/developers">Getting Started</a> guides after installation.</p>
|
86
|
+
|
87
|
+
<h3>Installing motion-game</h3>
|
88
|
+
|
89
|
+
<h4>Binaries</h4>
|
90
|
+
|
91
|
+
<p>motion-game is available as a gem:</p>
|
92
|
+
|
93
|
+
<pre class="code ruby"><code class="ruby">$ gem install motion-game
|
94
|
+
</code></pre>
|
87
95
|
|
88
|
-
<
|
96
|
+
<h4>Source</h4>
|
97
|
+
|
98
|
+
<p>You can build your own copy of motion-game:</p>
|
99
|
+
|
100
|
+
<pre class="code ruby"><code class="ruby">$ rake build:setup
|
101
|
+
$ rake build:all
|
102
|
+
</code></pre>
|
103
|
+
|
104
|
+
<h3>Hello World</h3>
|
89
105
|
|
90
106
|
<pre class="code ruby"><code class="ruby">$ motion create --template=motion-game HelloWorld
|
91
107
|
$ cd HelloWorld
|
92
|
-
|
108
|
+
</code></pre>
|
109
|
+
|
110
|
+
<h4>iOS</h4>
|
111
|
+
|
112
|
+
<pre class="code ruby"><code class="ruby">$ rake ios:simulator
|
93
113
|
$ rake ios:device
|
94
|
-
|
114
|
+
</code></pre>
|
115
|
+
|
116
|
+
<h4>tvOS</h4>
|
117
|
+
|
118
|
+
<pre class="code ruby"><code class="ruby">$ rake tvos:simulator
|
119
|
+
$ rake tvos:device
|
120
|
+
</code></pre>
|
121
|
+
|
122
|
+
<h4>Android</h4>
|
123
|
+
|
124
|
+
<pre class="code ruby"><code class="ruby">$ rake android:emulator
|
95
125
|
$ rake android:device
|
96
126
|
</code></pre>
|
97
127
|
|
98
|
-
<
|
128
|
+
<h3>API reference</h3>
|
129
|
+
|
130
|
+
<p>The whole framework API is documented. The <a href="http://www.rubymotion.com/developers/motion-game/_index.html">API reference</a> is available online.</p>
|
131
|
+
|
132
|
+
<p>You can also build the API reference locally:</p>
|
133
|
+
|
134
|
+
<pre class="code ruby"><code class="ruby">$ rake doc
|
135
|
+
$ open doc/index.html
|
136
|
+
</code></pre>
|
137
|
+
|
138
|
+
<h3>Samples</h3>
|
139
|
+
|
140
|
+
<p>The <a href="https://github.com/HipByte/motion-game/tree/master/samples">samples</a> directory contains sample projects.</p>
|
141
|
+
|
142
|
+
<h2>License</h2>
|
143
|
+
|
144
|
+
<p>Copyright (c) 2015, HipByte (<a href="mailto:info@hipbyte.com">info@hipbyte.com</a>) and contributors. All rights reserved.</p>
|
99
145
|
|
100
|
-
<p>
|
146
|
+
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
|
101
147
|
|
102
|
-
<
|
148
|
+
<p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
149
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</p>
|
103
150
|
|
104
|
-
<p>
|
151
|
+
<p>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>
|
105
152
|
</div></div>
|
106
153
|
|
107
154
|
<div id="footer">
|
108
|
-
Generated on
|
155
|
+
Generated on Sun Feb 28 09:23:30 2016 by
|
109
156
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
|
-
0.8.7.6 (ruby-2.
|
157
|
+
0.8.7.6 (ruby-2.2.3).
|
111
158
|
</div>
|
112
159
|
|
113
160
|
</body>
|