motion-game 1.0 → 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/libchipmunk.a +0 -0
- data/build/android/armeabi/libcrypto.a +0 -0
- data/build/android/armeabi/libcurl.a +0 -0
- data/build/android/armeabi/libfreetype.a +0 -0
- data/build/android/armeabi/libmotion-cocos.a +0 -0
- data/build/android/armeabi/libpng.a +0 -0
- data/build/android/armeabi/libssl.a +0 -0
- data/build/android/armeabi/libz.a +0 -0
- data/build/android/motion-cocos.jar +0 -0
- data/build/android/x86/libchipmunk.a +0 -0
- data/build/android/x86/libcrypto.a +0 -0
- data/build/android/x86/libcurl.a +0 -0
- data/build/android/x86/libfreetype.a +0 -0
- data/build/android/x86/libmotion-cocos.a +0 -0
- data/build/android/x86/libpng.a +0 -0
- data/build/android/x86/libssl.a +0 -0
- data/build/android/x86/libz.a +0 -0
- data/build/ios/libchipmunk.a +0 -0
- data/build/ios/libcrypto.a +0 -0
- data/build/ios/libcurl.a +0 -0
- data/build/ios/libfreetype.a +0 -0
- data/build/ios/libjpeg.a +0 -0
- data/build/ios/libmotion-cocos.a +0 -0
- data/build/ios/libpng.a +0 -0
- data/build/ios/libssl.a +0 -0
- data/build/ios/libtiff.a +0 -0
- data/doc/MG.html +1 -1
- data/doc/MG/Application.html +1 -1
- data/doc/MG/Audio.html +1 -1
- data/doc/MG/Button.html +1 -1
- data/doc/MG/Color.html +1 -1
- data/doc/MG/Director.html +1 -1
- data/doc/MG/Draw.html +1 -1
- data/doc/MG/Events.html +1 -1
- data/doc/MG/Events/Acceleration.html +1 -1
- data/doc/MG/Events/Touch.html +1 -1
- data/doc/MG/Layout.html +1 -1
- data/doc/MG/List.html +1 -1
- data/doc/MG/Node.html +1 -1
- data/doc/MG/Parallax.html +1 -1
- data/doc/MG/Particle.html +1 -1
- data/doc/MG/Point.html +1 -1
- data/doc/MG/Scene.html +1 -1
- data/doc/MG/Scroll.html +1 -1
- data/doc/MG/Size.html +1 -1
- data/doc/MG/Slider.html +1 -1
- data/doc/MG/Sprite.html +1 -1
- data/doc/MG/Text.html +1 -1
- data/doc/MG/Web.html +1 -1
- data/doc/MG/Widget.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.README.html +2 -2
- data/doc/index.html +2 -2
- data/doc/top-level-namespace.html +1 -1
- data/lib/motion-game/android.rb +1 -1
- data/lib/motion-game/ios.rb +1 -1
- data/lib/motion-game/shortcuts.rb +74 -0
- data/lib/motion-game/tvos.rb +12 -0
- data/lib/motion-game/tvos/app_delegate.rb +20 -0
- data/lib/motion-game/tvos/root_view_controller.rb +14 -0
- data/template/motion-game/files/config/tvos.rb.erb +6 -0
- metadata +16 -11
- data/build/android/armeabi/libwebsockets.a +0 -0
- data/build/android/x86/libwebsockets.a +0 -0
- data/build/ios/libwebsockets.a +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a46476884bddd1205a59e75de57ee0af55365b52
|
|
4
|
+
data.tar.gz: 13a4fed7b8a8f531e7fa0df5e73c1ad97403d1eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7a22d1bf6a9abf802cb404ce3db5fae578ba4b39ac75a4207cf1f32fd502cee6fc82ac004a2ac6533317a4312a8d8afdce20e4320d6fd0b9066c9f9c97727cdf
|
|
7
|
+
data.tar.gz: 500ff67b8a897cdc30560755e68e059b6b6e7d5f106e6a6c17642e0031f31d06b25a637c90c430443de712f4fbccfde8514f7b67d832c856b74302f011153ed4
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/build/android/x86/libcurl.a
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/build/android/x86/libpng.a
CHANGED
|
Binary file
|
data/build/android/x86/libssl.a
CHANGED
|
Binary file
|
|
Binary file
|
data/build/ios/libchipmunk.a
CHANGED
|
Binary file
|
|
Binary file
|
data/build/ios/libcurl.a
CHANGED
|
Binary file
|
data/build/ios/libfreetype.a
CHANGED
|
Binary file
|
data/build/ios/libjpeg.a
CHANGED
|
Binary file
|
data/build/ios/libmotion-cocos.a
CHANGED
|
Binary file
|
data/build/ios/libpng.a
CHANGED
|
Binary file
|
data/build/ios/libssl.a
ADDED
|
Binary file
|
data/build/ios/libtiff.a
CHANGED
|
Binary file
|
data/doc/MG.html
CHANGED
|
@@ -120,7 +120,7 @@ under that module.</p>
|
|
|
120
120
|
</div>
|
|
121
121
|
|
|
122
122
|
<div id="footer">
|
|
123
|
-
Generated on
|
|
123
|
+
Generated on Mon Sep 7 14:28:54 2015 by
|
|
124
124
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
125
125
|
0.8.7.6 (ruby-2.0.0).
|
|
126
126
|
</div>
|
data/doc/MG/Application.html
CHANGED
|
@@ -323,7 +323,7 @@ implementation that will create the interface of your game.</p>
|
|
|
323
323
|
</div>
|
|
324
324
|
|
|
325
325
|
<div id="footer">
|
|
326
|
-
Generated on
|
|
326
|
+
Generated on Mon Sep 7 14:28:54 2015 by
|
|
327
327
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
328
328
|
0.8.7.6 (ruby-2.0.0).
|
|
329
329
|
</div>
|
data/doc/MG/Audio.html
CHANGED
|
@@ -1040,7 +1040,7 @@ immediately plays it.</p>
|
|
|
1040
1040
|
</div>
|
|
1041
1041
|
|
|
1042
1042
|
<div id="footer">
|
|
1043
|
-
Generated on
|
|
1043
|
+
Generated on Mon Sep 7 14:28:54 2015 by
|
|
1044
1044
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1045
1045
|
0.8.7.6 (ruby-2.0.0).
|
|
1046
1046
|
</div>
|
data/doc/MG/Button.html
CHANGED
|
@@ -713,7 +713,7 @@ the button is activated. Example:</p>
|
|
|
713
713
|
</div>
|
|
714
714
|
|
|
715
715
|
<div id="footer">
|
|
716
|
-
Generated on
|
|
716
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
717
717
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
718
718
|
0.8.7.6 (ruby-2.0.0).
|
|
719
719
|
</div>
|
data/doc/MG/Color.html
CHANGED
|
@@ -519,7 +519,7 @@ can be provided. For example,</p>
|
|
|
519
519
|
</div>
|
|
520
520
|
|
|
521
521
|
<div id="footer">
|
|
522
|
-
Generated on
|
|
522
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
523
523
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
524
524
|
0.8.7.6 (ruby-2.0.0).
|
|
525
525
|
</div>
|
data/doc/MG/Director.html
CHANGED
|
@@ -1131,7 +1131,7 @@ terminated.</p>
|
|
|
1131
1131
|
</div>
|
|
1132
1132
|
|
|
1133
1133
|
<div id="footer">
|
|
1134
|
-
Generated on
|
|
1134
|
+
Generated on Mon Sep 7 14:28:54 2015 by
|
|
1135
1135
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1136
1136
|
0.8.7.6 (ruby-2.0.0).
|
|
1137
1137
|
</div>
|
data/doc/MG/Draw.html
CHANGED
|
@@ -428,7 +428,7 @@ color.</p>
|
|
|
428
428
|
</div>
|
|
429
429
|
|
|
430
430
|
<div id="footer">
|
|
431
|
-
Generated on
|
|
431
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
432
432
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
433
433
|
0.8.7.6 (ruby-2.0.0).
|
|
434
434
|
</div>
|
data/doc/MG/Events.html
CHANGED
|
@@ -118,7 +118,7 @@ the game engine. You typically never instantiate these classes yourself.</p>
|
|
|
118
118
|
</div>
|
|
119
119
|
|
|
120
120
|
<div id="footer">
|
|
121
|
-
Generated on
|
|
121
|
+
Generated on Mon Sep 7 14:28:54 2015 by
|
|
122
122
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
123
123
|
0.8.7.6 (ruby-2.0.0).
|
|
124
124
|
</div>
|
|
@@ -493,7 +493,7 @@ the device, usually from the <span class='object_link'><a href="../Scene.html#on
|
|
|
493
493
|
</div>
|
|
494
494
|
|
|
495
495
|
<div id="footer">
|
|
496
|
-
Generated on
|
|
496
|
+
Generated on Mon Sep 7 14:28:54 2015 by
|
|
497
497
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
498
498
|
0.8.7.6 (ruby-2.0.0).
|
|
499
499
|
</div>
|
data/doc/MG/Events/Touch.html
CHANGED
|
@@ -223,7 +223,7 @@ the <span class='object_link'><a href="../Scene.html#on_touch_begin-instance_met
|
|
|
223
223
|
</div>
|
|
224
224
|
|
|
225
225
|
<div id="footer">
|
|
226
|
-
Generated on
|
|
226
|
+
Generated on Mon Sep 7 14:28:54 2015 by
|
|
227
227
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
228
228
|
0.8.7.6 (ruby-2.0.0).
|
|
229
229
|
</div>
|
data/doc/MG/Layout.html
CHANGED
|
@@ -504,7 +504,7 @@ end</pre>
|
|
|
504
504
|
</div>
|
|
505
505
|
|
|
506
506
|
<div id="footer">
|
|
507
|
-
Generated on
|
|
507
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
508
508
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
509
509
|
0.8.7.6 (ruby-2.0.0).
|
|
510
510
|
</div>
|
data/doc/MG/List.html
CHANGED
|
@@ -1041,7 +1041,7 @@ of the selection as the argument.</p>
|
|
|
1041
1041
|
</div>
|
|
1042
1042
|
|
|
1043
1043
|
<div id="footer">
|
|
1044
|
-
Generated on
|
|
1044
|
+
Generated on Mon Sep 7 14:28:56 2015 by
|
|
1045
1045
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1046
1046
|
0.8.7.6 (ruby-2.0.0).
|
|
1047
1047
|
</div>
|
data/doc/MG/Node.html
CHANGED
|
@@ -1743,7 +1743,7 @@ node's bounding box.</p>
|
|
|
1743
1743
|
</div>
|
|
1744
1744
|
|
|
1745
1745
|
<div id="footer">
|
|
1746
|
-
Generated on
|
|
1746
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
1747
1747
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1748
1748
|
0.8.7.6 (ruby-2.0.0).
|
|
1749
1749
|
</div>
|
data/doc/MG/Parallax.html
CHANGED
|
@@ -285,7 +285,7 @@ view.</p>
|
|
|
285
285
|
</div>
|
|
286
286
|
|
|
287
287
|
<div id="footer">
|
|
288
|
-
Generated on
|
|
288
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
289
289
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
290
290
|
0.8.7.6 (ruby-2.0.0).
|
|
291
291
|
</div>
|
data/doc/MG/Particle.html
CHANGED
|
@@ -1212,7 +1212,7 @@ Particle object will be created.</p>
|
|
|
1212
1212
|
</div>
|
|
1213
1213
|
|
|
1214
1214
|
<div id="footer">
|
|
1215
|
-
Generated on
|
|
1215
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
1216
1216
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1217
1217
|
0.8.7.6 (ruby-2.0.0).
|
|
1218
1218
|
</div>
|
data/doc/MG/Point.html
CHANGED
|
@@ -531,7 +531,7 @@ given point object.</p>
|
|
|
531
531
|
</div>
|
|
532
532
|
|
|
533
533
|
<div id="footer">
|
|
534
|
-
Generated on
|
|
534
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
535
535
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
536
536
|
0.8.7.6 (ruby-2.0.0).
|
|
537
537
|
</div>
|
data/doc/MG/Scene.html
CHANGED
|
@@ -1241,7 +1241,7 @@ this method was called.</p>
|
|
|
1241
1241
|
</div>
|
|
1242
1242
|
|
|
1243
1243
|
<div id="footer">
|
|
1244
|
-
Generated on
|
|
1244
|
+
Generated on Mon Sep 7 14:28:54 2015 by
|
|
1245
1245
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1246
1246
|
0.8.7.6 (ruby-2.0.0).
|
|
1247
1247
|
</div>
|
data/doc/MG/Scroll.html
CHANGED
|
@@ -521,7 +521,7 @@ than the size of the scroll view itself.</p>
|
|
|
521
521
|
</div>
|
|
522
522
|
|
|
523
523
|
<div id="footer">
|
|
524
|
-
Generated on
|
|
524
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
525
525
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
526
526
|
0.8.7.6 (ruby-2.0.0).
|
|
527
527
|
</div>
|
data/doc/MG/Size.html
CHANGED
|
@@ -728,7 +728,7 @@ size object.</p>
|
|
|
728
728
|
</div>
|
|
729
729
|
|
|
730
730
|
<div id="footer">
|
|
731
|
-
Generated on
|
|
731
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
732
732
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
733
733
|
0.8.7.6 (ruby-2.0.0).
|
|
734
734
|
</div>
|
data/doc/MG/Slider.html
CHANGED
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
</div>
|
|
327
327
|
|
|
328
328
|
<div id="footer">
|
|
329
|
-
Generated on
|
|
329
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
330
330
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
331
331
|
0.8.7.6 (ruby-2.0.0).
|
|
332
332
|
</div>
|
data/doc/MG/Sprite.html
CHANGED
|
@@ -2057,7 +2057,7 @@ of the current location and the given <code>delta_location</code> object.</p>
|
|
|
2057
2057
|
</div>
|
|
2058
2058
|
|
|
2059
2059
|
<div id="footer">
|
|
2060
|
-
Generated on
|
|
2060
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
2061
2061
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
2062
2062
|
0.8.7.6 (ruby-2.0.0).
|
|
2063
2063
|
</div>
|
data/doc/MG/Text.html
CHANGED
|
@@ -909,7 +909,7 @@
|
|
|
909
909
|
</div>
|
|
910
910
|
|
|
911
911
|
<div id="footer">
|
|
912
|
-
Generated on
|
|
912
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
913
913
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
914
914
|
0.8.7.6 (ruby-2.0.0).
|
|
915
915
|
</div>
|
data/doc/MG/Web.html
CHANGED
|
@@ -819,7 +819,7 @@
|
|
|
819
819
|
</div>
|
|
820
820
|
|
|
821
821
|
<div id="footer">
|
|
822
|
-
Generated on
|
|
822
|
+
Generated on Mon Sep 7 14:28:56 2015 by
|
|
823
823
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
824
824
|
0.8.7.6 (ruby-2.0.0).
|
|
825
825
|
</div>
|
data/doc/MG/Widget.html
CHANGED
|
@@ -451,7 +451,7 @@ widget.</p>
|
|
|
451
451
|
</div>
|
|
452
452
|
|
|
453
453
|
<div id="footer">
|
|
454
|
-
Generated on
|
|
454
|
+
Generated on Mon Sep 7 14:28:55 2015 by
|
|
455
455
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
456
456
|
0.8.7.6 (ruby-2.0.0).
|
|
457
457
|
</div>
|
data/doc/_index.html
CHANGED
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
</div>
|
|
354
354
|
|
|
355
355
|
<div id="footer">
|
|
356
|
-
Generated on
|
|
356
|
+
Generated on Mon Sep 7 14:28:54 2015 by
|
|
357
357
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
358
358
|
0.8.7.6 (ruby-2.0.0).
|
|
359
359
|
</div>
|
data/doc/file.README.html
CHANGED
|
@@ -97,7 +97,7 @@ $ rake android:device
|
|
|
97
97
|
|
|
98
98
|
<h2>Samples</h2>
|
|
99
99
|
|
|
100
|
-
<p>Check out the <a href="https://github.com/HipByte/
|
|
100
|
+
<p>Check out the <a href="https://github.com/HipByte/RubyMotionSamples/tree/master/game">HipByte/RubyMotionSamples/game</a> GitHub repository for samples.</p>
|
|
101
101
|
|
|
102
102
|
<h2>About</h2>
|
|
103
103
|
|
|
@@ -105,7 +105,7 @@ $ rake android:device
|
|
|
105
105
|
</div></div>
|
|
106
106
|
|
|
107
107
|
<div id="footer">
|
|
108
|
-
Generated on
|
|
108
|
+
Generated on Mon Sep 7 14:28:54 2015 by
|
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
110
110
|
0.8.7.6 (ruby-2.0.0).
|
|
111
111
|
</div>
|
data/doc/index.html
CHANGED
|
@@ -97,7 +97,7 @@ $ rake android:device
|
|
|
97
97
|
|
|
98
98
|
<h2>Samples</h2>
|
|
99
99
|
|
|
100
|
-
<p>Check out the <a href="https://github.com/HipByte/
|
|
100
|
+
<p>Check out the <a href="https://github.com/HipByte/RubyMotionSamples/tree/master/game">HipByte/RubyMotionSamples/game</a> GitHub repository for samples.</p>
|
|
101
101
|
|
|
102
102
|
<h2>About</h2>
|
|
103
103
|
|
|
@@ -105,7 +105,7 @@ $ rake android:device
|
|
|
105
105
|
</div></div>
|
|
106
106
|
|
|
107
107
|
<div id="footer">
|
|
108
|
-
Generated on
|
|
108
|
+
Generated on Mon Sep 7 14:28:54 2015 by
|
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
110
110
|
0.8.7.6 (ruby-2.0.0).
|
|
111
111
|
</div>
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
</div>
|
|
104
104
|
|
|
105
105
|
<div id="footer">
|
|
106
|
-
Generated on
|
|
106
|
+
Generated on Mon Sep 7 14:28:54 2015 by
|
|
107
107
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
108
108
|
0.8.7.6 (ruby-2.0.0).
|
|
109
109
|
</div>
|
data/lib/motion-game/android.rb
CHANGED
|
@@ -11,7 +11,7 @@ Motion::Project::App.setup do |app|
|
|
|
11
11
|
app.archs = ['armv5te', 'x86']
|
|
12
12
|
|
|
13
13
|
%w{armeabi x86}.each do |arch|
|
|
14
|
-
app.libs[arch] += %w{motion-cocos chipmunk crypto curl freetype jpeg png ssl tiff webp
|
|
14
|
+
app.libs[arch] += %w{motion-cocos chipmunk crypto curl freetype jpeg z png ssl tiff webp}.map { |x| File.join(File.dirname(__FILE__), "../../build/android/#{arch}/lib#{x}.a") } + ['-latomic', '-lEGL', '-lGLESv2', '-lOpenSLES', '-landroid'] # The order of these libraries is very important for the linker to find all symbols.
|
|
15
15
|
end
|
|
16
16
|
app.custom_init_funcs << 'Init_Fluency'
|
|
17
17
|
|
data/lib/motion-game/ios.rb
CHANGED
|
@@ -6,7 +6,7 @@ Motion::Project::App.setup do |app|
|
|
|
6
6
|
app.deployment_target = '7.0' unless Motion::Project::Config.starter?
|
|
7
7
|
app.files.concat(Dir.glob(File.join(File.dirname(__FILE__), 'ios/*.rb')))
|
|
8
8
|
app.frameworks += ['CoreMotion', 'AVFoundation', 'GameController', 'MediaPlayer', 'OpenAL']
|
|
9
|
-
app.libs += ['-lz', '-lsqlite3']
|
|
9
|
+
app.libs += ['-lz', '-lsqlite3', '-liconv']
|
|
10
10
|
app.vendor_project File.join(File.dirname(__FILE__), '../../build/ios'), :static, :force_load => true
|
|
11
11
|
app.custom_init_funcs << 'Init_Fluency'
|
|
12
12
|
|
|
@@ -109,6 +109,80 @@ namespace 'ios' do
|
|
|
109
109
|
invoke_rake 'ios', 'watch:simulator'
|
|
110
110
|
end
|
|
111
111
|
end
|
|
112
|
+
namespace 'tvos' do
|
|
113
|
+
desc "Create an .ipa archive"
|
|
114
|
+
task "archive" do
|
|
115
|
+
invoke_rake 'tvos', 'archive'
|
|
116
|
+
end
|
|
117
|
+
desc "Create an .ipa archive for distribution (AppStore)"
|
|
118
|
+
task "archive:distribution" do
|
|
119
|
+
invoke_rake 'tvos', 'archive:distribution'
|
|
120
|
+
end
|
|
121
|
+
desc "Build everything"
|
|
122
|
+
task "build" do
|
|
123
|
+
invoke_rake 'tvos', 'build'
|
|
124
|
+
end
|
|
125
|
+
desc "Build the device version"
|
|
126
|
+
task "build:device" do
|
|
127
|
+
invoke_rake 'tvos', 'build:device'
|
|
128
|
+
end
|
|
129
|
+
desc "Build the simulator version"
|
|
130
|
+
task "build:simulator" do
|
|
131
|
+
invoke_rake 'tvos', 'build:simulator'
|
|
132
|
+
end
|
|
133
|
+
desc "Clear local build objects"
|
|
134
|
+
task "clean" do
|
|
135
|
+
invoke_rake 'tvos', 'clean'
|
|
136
|
+
end
|
|
137
|
+
desc "Clean all build objects"
|
|
138
|
+
task "clean:all" do
|
|
139
|
+
invoke_rake 'tvos', 'clean:all'
|
|
140
|
+
end
|
|
141
|
+
desc "Show project config"
|
|
142
|
+
task "config" do
|
|
143
|
+
invoke_rake 'tvos', 'config'
|
|
144
|
+
end
|
|
145
|
+
desc "Same as crashlog:simulator"
|
|
146
|
+
task "crashlog" do
|
|
147
|
+
invoke_rake 'tvos', 'crashlog'
|
|
148
|
+
end
|
|
149
|
+
desc "Retrieve and symbolicate crash logs generated by the app on the device, and open the latest generated one"
|
|
150
|
+
task "crashlog:device" do
|
|
151
|
+
invoke_rake 'tvos', 'crashlog:device'
|
|
152
|
+
end
|
|
153
|
+
desc "Open the latest crash report generated by the app in the simulator"
|
|
154
|
+
task "crashlog:simulator" do
|
|
155
|
+
invoke_rake 'tvos', 'crashlog:simulator'
|
|
156
|
+
end
|
|
157
|
+
desc "Generate ctags"
|
|
158
|
+
task "ctags" do
|
|
159
|
+
invoke_rake 'tvos', 'ctags'
|
|
160
|
+
end
|
|
161
|
+
desc "Build the project, then run the simulator"
|
|
162
|
+
task "default" do
|
|
163
|
+
invoke_rake 'tvos', 'default'
|
|
164
|
+
end
|
|
165
|
+
desc "Deploy on the device"
|
|
166
|
+
task "device" do
|
|
167
|
+
invoke_rake 'tvos', 'device'
|
|
168
|
+
end
|
|
169
|
+
desc "Run the simulator"
|
|
170
|
+
task "simulator" do
|
|
171
|
+
invoke_rake 'tvos', 'simulator'
|
|
172
|
+
end
|
|
173
|
+
desc "Same as 'spec:simulator'"
|
|
174
|
+
task "spec" do
|
|
175
|
+
invoke_rake 'tvos', 'spec'
|
|
176
|
+
end
|
|
177
|
+
desc "Run the test/spec suite on the device"
|
|
178
|
+
task "spec:device" do
|
|
179
|
+
invoke_rake 'tvos', 'spec:device'
|
|
180
|
+
end
|
|
181
|
+
desc "Run the test/spec suite on the simulator"
|
|
182
|
+
task "spec:simulator" do
|
|
183
|
+
invoke_rake 'tvos', 'spec:simulator'
|
|
184
|
+
end
|
|
185
|
+
end
|
|
112
186
|
namespace 'android' do
|
|
113
187
|
desc "Create an application package file (.apk)"
|
|
114
188
|
task "build" do
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
$:.unshift("/Library/RubyMotion/lib")
|
|
2
|
+
require 'motion/project/template/tvos'
|
|
3
|
+
|
|
4
|
+
Motion::Project::App.setup do |app|
|
|
5
|
+
app.build_dir = 'build/ios'
|
|
6
|
+
app.deployment_target = '9.0' unless Motion::Project::Config.starter?
|
|
7
|
+
app.files.concat(Dir.glob(File.join(File.dirname(__FILE__), 'tvos/*.rb')))
|
|
8
|
+
app.frameworks += ['CoreMotion', 'AVFoundation', 'GameController', 'MediaPlayer', 'OpenAL']
|
|
9
|
+
app.libs += ['-lz', '-lsqlite3', '-liconv']
|
|
10
|
+
app.vendor_project File.join(File.dirname(__FILE__), '../../build/tvos'), :static, :force_load => true
|
|
11
|
+
app.custom_init_funcs << 'Init_Fluency'
|
|
12
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
class AppDelegate
|
|
2
|
+
def application(application, didFinishLaunchingWithOptions:launchOptions)
|
|
3
|
+
@app = Application.new # important to initialize the engine
|
|
4
|
+
|
|
5
|
+
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
|
|
6
|
+
|
|
7
|
+
rootViewController = RootViewController.alloc.init
|
|
8
|
+
rootViewController.wantsFullScreenLayout = true
|
|
9
|
+
glview = CCEAGLView.viewWithFrame(@window.bounds)
|
|
10
|
+
rootViewController.view = glview
|
|
11
|
+
|
|
12
|
+
@window.rootViewController = rootViewController
|
|
13
|
+
@window.makeKeyAndVisible
|
|
14
|
+
|
|
15
|
+
MG::Director.shared._set_glview(glview)
|
|
16
|
+
MG::Application.shared.run
|
|
17
|
+
|
|
18
|
+
true
|
|
19
|
+
end
|
|
20
|
+
end
|
metadata
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: motion-game
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '1.
|
|
4
|
+
version: '1.1'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- HipByte
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-12-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description: motion-
|
|
14
|
-
|
|
15
|
-
email:
|
|
13
|
+
description: motion-game allows you to write cross-platform native mobile games in
|
|
14
|
+
Ruby.
|
|
15
|
+
email: info@hipbyte.com
|
|
16
16
|
executables: []
|
|
17
17
|
extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
|
@@ -24,16 +24,20 @@ files:
|
|
|
24
24
|
- lib/motion-game/ios.rb
|
|
25
25
|
- lib/motion-game/project.rb
|
|
26
26
|
- lib/motion-game/shortcuts.rb
|
|
27
|
+
- lib/motion-game/tvos/app_delegate.rb
|
|
28
|
+
- lib/motion-game/tvos/root_view_controller.rb
|
|
29
|
+
- lib/motion-game/tvos.rb
|
|
27
30
|
- lib/motion-game.rb
|
|
28
31
|
- build/ios/libchipmunk.a
|
|
32
|
+
- build/ios/libcrypto.a
|
|
29
33
|
- build/ios/libcurl.a
|
|
30
34
|
- build/ios/libfreetype.a
|
|
31
35
|
- build/ios/libjpeg.a
|
|
32
36
|
- build/ios/libmotion-cocos.a
|
|
33
37
|
- build/ios/libpng.a
|
|
38
|
+
- build/ios/libssl.a
|
|
34
39
|
- build/ios/libtiff.a
|
|
35
40
|
- build/ios/libwebp.a
|
|
36
|
-
- build/ios/libwebsockets.a
|
|
37
41
|
- build/android/motion-cocos.jar
|
|
38
42
|
- build/android/armeabi/libchipmunk.a
|
|
39
43
|
- build/android/armeabi/libcrypto.a
|
|
@@ -45,7 +49,7 @@ files:
|
|
|
45
49
|
- build/android/armeabi/libssl.a
|
|
46
50
|
- build/android/armeabi/libtiff.a
|
|
47
51
|
- build/android/armeabi/libwebp.a
|
|
48
|
-
- build/android/armeabi/
|
|
52
|
+
- build/android/armeabi/libz.a
|
|
49
53
|
- build/android/x86/libchipmunk.a
|
|
50
54
|
- build/android/x86/libcrypto.a
|
|
51
55
|
- build/android/x86/libcurl.a
|
|
@@ -56,7 +60,7 @@ files:
|
|
|
56
60
|
- build/android/x86/libssl.a
|
|
57
61
|
- build/android/x86/libtiff.a
|
|
58
62
|
- build/android/x86/libwebp.a
|
|
59
|
-
- build/android/x86/
|
|
63
|
+
- build/android/x86/libz.a
|
|
60
64
|
- doc/_index.html
|
|
61
65
|
- doc/class_list.html
|
|
62
66
|
- doc/css/common.css
|
|
@@ -99,11 +103,12 @@ files:
|
|
|
99
103
|
- template/motion-game/files/app/main_scene.rb
|
|
100
104
|
- template/motion-game/files/config/android.rb.erb
|
|
101
105
|
- template/motion-game/files/config/ios.rb.erb
|
|
106
|
+
- template/motion-game/files/config/tvos.rb.erb
|
|
102
107
|
- template/motion-game/files/Gemfile
|
|
103
108
|
- template/motion-game/files/Rakefile
|
|
104
|
-
homepage: http://www.rubymotion.com/game
|
|
109
|
+
homepage: http://www.rubymotion.com/developers/motion-game
|
|
105
110
|
licenses:
|
|
106
|
-
-
|
|
111
|
+
- BSD
|
|
107
112
|
metadata:
|
|
108
113
|
rubymotion_template_dir: template
|
|
109
114
|
post_install_message:
|
|
Binary file
|
|
Binary file
|
data/build/ios/libwebsockets.a
DELETED
|
Binary file
|