motion-game 1.1.7 → 1.1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -0
- data/build/android/motion-cocos.jar +0 -0
- metadata +2 -66
- data/doc/MG.html +0 -131
- data/doc/MG/Action.html +0 -402
- data/doc/MG/Animate.html +0 -281
- data/doc/MG/Application.html +0 -335
- data/doc/MG/Audio.html +0 -1268
- data/doc/MG/Blink.html +0 -257
- data/doc/MG/Button.html +0 -725
- data/doc/MG/Color.html +0 -535
- data/doc/MG/DelayTime.html +0 -239
- data/doc/MG/Director.html +0 -1301
- data/doc/MG/Draw.html +0 -813
- data/doc/MG/Events.html +0 -129
- data/doc/MG/Events/Acceleration.html +0 -505
- data/doc/MG/Events/Touch.html +0 -235
- data/doc/MG/FadeIn.html +0 -240
- data/doc/MG/FadeOut.html +0 -240
- data/doc/MG/FadeTo.html +0 -256
- data/doc/MG/File.html +0 -219
- data/doc/MG/Follow.html +0 -241
- data/doc/MG/JumpBy.html +0 -292
- data/doc/MG/JumpTo.html +0 -287
- data/doc/MG/Layout.html +0 -516
- data/doc/MG/List.html +0 -1053
- data/doc/MG/Menu.html +0 -458
- data/doc/MG/MoveBy.html +0 -259
- data/doc/MG/MoveTo.html +0 -257
- data/doc/MG/Node.html +0 -2013
- data/doc/MG/Parallax.html +0 -297
- data/doc/MG/Particle.html +0 -1224
- data/doc/MG/Point.html +0 -543
- data/doc/MG/Repeat.html +0 -257
- data/doc/MG/RepeatForever.html +0 -239
- data/doc/MG/RotateBy.html +0 -259
- data/doc/MG/RotateTo.html +0 -257
- data/doc/MG/ScaleBy.html +0 -255
- data/doc/MG/ScaleTo.html +0 -255
- data/doc/MG/Scene.html +0 -1544
- data/doc/MG/Scroll.html +0 -533
- data/doc/MG/Sequence.html +0 -241
- data/doc/MG/Size.html +0 -741
- data/doc/MG/SkewBy.html +0 -273
- data/doc/MG/SkewTo.html +0 -273
- data/doc/MG/Slider.html +0 -338
- data/doc/MG/Spawn.html +0 -239
- data/doc/MG/Speed.html +0 -259
- data/doc/MG/Sprite.html +0 -2591
- data/doc/MG/Text.html +0 -921
- data/doc/MG/TintBy.html +0 -272
- data/doc/MG/TintTo.html +0 -274
- data/doc/MG/Web.html +0 -831
- data/doc/MG/Widget.html +0 -552
- data/doc/_index.html +0 -574
- data/doc/class_list.html +0 -51
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -58
- data/doc/css/style.css +0 -481
- data/doc/file.README.html +0 -192
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -17
- data/doc/index.html +0 -192
- data/doc/js/app.js +0 -243
- data/doc/js/full_list.js +0 -216
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -1635
- data/doc/top-level-namespace.html +0 -112
data/doc/file.README.html
DELETED
@@ -1,192 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="UTF-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
File: README
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.5
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "README";
|
19
|
-
relpath = '';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="file_list.html"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="_index.html">Index</a> »
|
40
|
-
<span class="title">File: README</span>
|
41
|
-
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<div id="search">
|
45
|
-
|
46
|
-
<a class="full_list_link" id="class_list_link"
|
47
|
-
href="class_list.html">
|
48
|
-
|
49
|
-
<svg width="24" height="24">
|
50
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
51
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
52
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
</svg>
|
54
|
-
</a>
|
55
|
-
|
56
|
-
</div>
|
57
|
-
<div class="clear"></div>
|
58
|
-
</div>
|
59
|
-
|
60
|
-
<iframe id="search_frame" src="file_list.html"></iframe>
|
61
|
-
|
62
|
-
<div id="content"><div id='filecontents'><h1>motion-game</h1>
|
63
|
-
|
64
|
-
<p><a href="https://badge.fury.io/rb/motion-game"><img src="https://badge.fury.io/rb/motion-game.svg" alt="Gem Version"></a></p>
|
65
|
-
|
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
|
-
|
68
|
-
<p>motion-game is currently in <strong>beta</strong>. Please give it a try and report problems you find to us.</p>
|
69
|
-
|
70
|
-
<h2>Features</h2>
|
71
|
-
|
72
|
-
<ul>
|
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, tvOS and Android. One codebase runs everywhere.</li>
|
75
|
-
<li><strong>Fully-featured</strong>: motion-game has audio, sprites, animations, particles, device sensors / events, scene graph / director, UI widgets, etc.</li>
|
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
|
-
<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, tvOS or Android APIs from Ruby code as well.</li>
|
79
|
-
</ul>
|
80
|
-
|
81
|
-
<h2>Getting Started</h2>
|
82
|
-
|
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>
|
95
|
-
|
96
|
-
<h4>Source</h4>
|
97
|
-
|
98
|
-
<p>You can build your own copy of motion-game:</p>
|
99
|
-
|
100
|
-
<ul>
|
101
|
-
<li>Make sure you have your system set up for Android develpment: <code>motion android-setup --api_version=16</code>.</li>
|
102
|
-
</ul>
|
103
|
-
|
104
|
-
<pre class="code ruby"><code class="ruby">$ git clone https://github.com/HipByte/motion-game.git && cd motion-game
|
105
|
-
$ git submodule update --init
|
106
|
-
$ bundle
|
107
|
-
$ rake build:setup
|
108
|
-
|
109
|
-
$ rake gem
|
110
|
-
$ gem install motion-game-x.x.gem
|
111
|
-
</code></pre>
|
112
|
-
|
113
|
-
<h4>Developing Locally</h4>
|
114
|
-
|
115
|
-
<p>Once you have the source locally. Create a motion-game project as a sibling to the <code>motion-game</code> directory using the <code>motion create --template=motion-game PROJECTNAME</code> command.</p>
|
116
|
-
|
117
|
-
<p>Update the reference to <code>motion-game</code> in your <code>Gemfile</code> to point to your local instance of <code>motion-game</code>:</p>
|
118
|
-
|
119
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>motion-game</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>../motion-game</span><span class='tstring_end'>'</span></span>
|
120
|
-
</code></pre>
|
121
|
-
|
122
|
-
<p>Chances are all of you changes will be done in the <code>/src</code> directory (since it'll probably be adding missing Cocos2dx methods).</p>
|
123
|
-
|
124
|
-
<p>Once you've made your change in the correct <code>.cpp</code> file, run <code>rake build:ios</code>/<code>rake build:android</code> to test your changes locally (running <code>rake gem</code> is a longer process which you don't have to do).</p>
|
125
|
-
|
126
|
-
<p>Here are some examples of how to add missing apis to motion-game:</p>
|
127
|
-
|
128
|
-
<ul>
|
129
|
-
<li><a href="https://github.com/HipByte/motion-game/commit/3c32771be11c5715a4922ba45914207b2c6f4d38">add Draw#triange</a></li>
|
130
|
-
<li><a href="https://github.com/HipByte/motion-game/commit/972fd115d3ef2816c19618b14823363356ca85b1">add Draw#line</a></li>
|
131
|
-
<li><a href="https://github.com/HipByte/motion-game/commit/98cc463724153bae1481a9364ef3f166e15f8c0f">add Draw#clear</a></li>
|
132
|
-
</ul>
|
133
|
-
|
134
|
-
<h3>Hello World</h3>
|
135
|
-
|
136
|
-
<pre class="code ruby"><code class="ruby">$ motion create --template=motion-game HelloWorld
|
137
|
-
$ cd HelloWorld
|
138
|
-
</code></pre>
|
139
|
-
|
140
|
-
<h4>iOS</h4>
|
141
|
-
|
142
|
-
<pre class="code ruby"><code class="ruby">$ rake ios:simulator
|
143
|
-
$ rake ios:device
|
144
|
-
</code></pre>
|
145
|
-
|
146
|
-
<h4>tvOS</h4>
|
147
|
-
|
148
|
-
<pre class="code ruby"><code class="ruby">$ rake tvos:simulator
|
149
|
-
$ rake tvos:device
|
150
|
-
</code></pre>
|
151
|
-
|
152
|
-
<h4>Android</h4>
|
153
|
-
|
154
|
-
<pre class="code ruby"><code class="ruby">$ rake android:emulator
|
155
|
-
$ rake android:device
|
156
|
-
</code></pre>
|
157
|
-
|
158
|
-
<h3>API reference</h3>
|
159
|
-
|
160
|
-
<p>The whole framework API is documented. The <a href="http://www.rubydoc.info/gems/motion-game/">API reference</a> is available online.</p>
|
161
|
-
|
162
|
-
<p>You can also build the API reference locally:</p>
|
163
|
-
|
164
|
-
<pre class="code ruby"><code class="ruby">$ rake doc
|
165
|
-
$ open doc/index.html
|
166
|
-
</code></pre>
|
167
|
-
|
168
|
-
<h3>Samples</h3>
|
169
|
-
|
170
|
-
<p>The <a href="https://github.com/HipByte/motion-game/tree/master/samples">samples</a> directory contains sample projects.</p>
|
171
|
-
|
172
|
-
<h2>License</h2>
|
173
|
-
|
174
|
-
<p>Copyright (c) 2015, HipByte (<a href="mailto:info@hipbyte.com">info@hipbyte.com</a>) and contributors. All rights reserved.</p>
|
175
|
-
|
176
|
-
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
|
177
|
-
|
178
|
-
<p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
179
|
-
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>
|
180
|
-
|
181
|
-
<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>
|
182
|
-
</div></div>
|
183
|
-
|
184
|
-
<div id="footer">
|
185
|
-
Generated on Sun Dec 11 16:38:29 2016 by
|
186
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
187
|
-
0.9.5 (ruby-2.3.3).
|
188
|
-
</div>
|
189
|
-
|
190
|
-
</div>
|
191
|
-
</body>
|
192
|
-
</html>
|
data/doc/file_list.html
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
5
|
-
<meta charset="utf-8" />
|
6
|
-
|
7
|
-
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
-
|
9
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
|
-
|
17
|
-
|
18
|
-
<title>File List</title>
|
19
|
-
<base id="base_target" target="_parent" />
|
20
|
-
</head>
|
21
|
-
<body>
|
22
|
-
<div id="content">
|
23
|
-
<div class="fixed_header">
|
24
|
-
<h1 id="full_list_header">File List</h1>
|
25
|
-
<div id="full_list_nav">
|
26
|
-
|
27
|
-
<span><a target="_self" href="class_list.html">
|
28
|
-
Classes
|
29
|
-
</a></span>
|
30
|
-
|
31
|
-
<span><a target="_self" href="method_list.html">
|
32
|
-
Methods
|
33
|
-
</a></span>
|
34
|
-
|
35
|
-
<span><a target="_self" href="file_list.html">
|
36
|
-
Files
|
37
|
-
</a></span>
|
38
|
-
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div id="search">Search: <input type="text" /></div>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<ul id="full_list" class="file">
|
45
|
-
|
46
|
-
|
47
|
-
<li id="object_README" class="odd">
|
48
|
-
<div class="item"><span class="object_link"><a href="index.html" title="README">README</a></span></div>
|
49
|
-
</li>
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</ul>
|
54
|
-
</div>
|
55
|
-
</body>
|
56
|
-
</html>
|
data/doc/frames.html
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<title>Documentation by YARD 0.9.5</title>
|
6
|
-
</head>
|
7
|
-
<script type="text/javascript" charset="utf-8">
|
8
|
-
var match = unescape(window.location.hash).match(/^#!(.+)/);
|
9
|
-
var name = match ? match[1] : 'index.html';
|
10
|
-
name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
|
11
|
-
window.top.location = name;
|
12
|
-
</script>
|
13
|
-
<noscript>
|
14
|
-
<h1>Oops!</h1>
|
15
|
-
<h2>YARD requires JavaScript!</h2>
|
16
|
-
</noscript>
|
17
|
-
</html>
|
data/doc/index.html
DELETED
@@ -1,192 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="UTF-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
File: README
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.5
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "README";
|
19
|
-
relpath = '';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="class_list.html"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="_index.html">Index</a> »
|
40
|
-
<span class="title">File: README</span>
|
41
|
-
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<div id="search">
|
45
|
-
|
46
|
-
<a class="full_list_link" id="class_list_link"
|
47
|
-
href="class_list.html">
|
48
|
-
|
49
|
-
<svg width="24" height="24">
|
50
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
51
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
52
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
</svg>
|
54
|
-
</a>
|
55
|
-
|
56
|
-
</div>
|
57
|
-
<div class="clear"></div>
|
58
|
-
</div>
|
59
|
-
|
60
|
-
<iframe id="search_frame" src="class_list.html"></iframe>
|
61
|
-
|
62
|
-
<div id="content"><div id='filecontents'><h1>motion-game</h1>
|
63
|
-
|
64
|
-
<p><a href="https://badge.fury.io/rb/motion-game"><img src="https://badge.fury.io/rb/motion-game.svg" alt="Gem Version"></a></p>
|
65
|
-
|
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
|
-
|
68
|
-
<p>motion-game is currently in <strong>beta</strong>. Please give it a try and report problems you find to us.</p>
|
69
|
-
|
70
|
-
<h2>Features</h2>
|
71
|
-
|
72
|
-
<ul>
|
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, tvOS and Android. One codebase runs everywhere.</li>
|
75
|
-
<li><strong>Fully-featured</strong>: motion-game has audio, sprites, animations, particles, device sensors / events, scene graph / director, UI widgets, etc.</li>
|
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
|
-
<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, tvOS or Android APIs from Ruby code as well.</li>
|
79
|
-
</ul>
|
80
|
-
|
81
|
-
<h2>Getting Started</h2>
|
82
|
-
|
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>
|
95
|
-
|
96
|
-
<h4>Source</h4>
|
97
|
-
|
98
|
-
<p>You can build your own copy of motion-game:</p>
|
99
|
-
|
100
|
-
<ul>
|
101
|
-
<li>Make sure you have your system set up for Android develpment: <code>motion android-setup --api_version=16</code>.</li>
|
102
|
-
</ul>
|
103
|
-
|
104
|
-
<pre class="code ruby"><code class="ruby">$ git clone https://github.com/HipByte/motion-game.git && cd motion-game
|
105
|
-
$ git submodule update --init
|
106
|
-
$ bundle
|
107
|
-
$ rake build:setup
|
108
|
-
|
109
|
-
$ rake gem
|
110
|
-
$ gem install motion-game-x.x.gem
|
111
|
-
</code></pre>
|
112
|
-
|
113
|
-
<h4>Developing Locally</h4>
|
114
|
-
|
115
|
-
<p>Once you have the source locally. Create a motion-game project as a sibling to the <code>motion-game</code> directory using the <code>motion create --template=motion-game PROJECTNAME</code> command.</p>
|
116
|
-
|
117
|
-
<p>Update the reference to <code>motion-game</code> in your <code>Gemfile</code> to point to your local instance of <code>motion-game</code>:</p>
|
118
|
-
|
119
|
-
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>motion-game</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>path:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>../motion-game</span><span class='tstring_end'>'</span></span>
|
120
|
-
</code></pre>
|
121
|
-
|
122
|
-
<p>Chances are all of you changes will be done in the <code>/src</code> directory (since it'll probably be adding missing Cocos2dx methods).</p>
|
123
|
-
|
124
|
-
<p>Once you've made your change in the correct <code>.cpp</code> file, run <code>rake build:ios</code>/<code>rake build:android</code> to test your changes locally (running <code>rake gem</code> is a longer process which you don't have to do).</p>
|
125
|
-
|
126
|
-
<p>Here are some examples of how to add missing apis to motion-game:</p>
|
127
|
-
|
128
|
-
<ul>
|
129
|
-
<li><a href="https://github.com/HipByte/motion-game/commit/3c32771be11c5715a4922ba45914207b2c6f4d38">add Draw#triange</a></li>
|
130
|
-
<li><a href="https://github.com/HipByte/motion-game/commit/972fd115d3ef2816c19618b14823363356ca85b1">add Draw#line</a></li>
|
131
|
-
<li><a href="https://github.com/HipByte/motion-game/commit/98cc463724153bae1481a9364ef3f166e15f8c0f">add Draw#clear</a></li>
|
132
|
-
</ul>
|
133
|
-
|
134
|
-
<h3>Hello World</h3>
|
135
|
-
|
136
|
-
<pre class="code ruby"><code class="ruby">$ motion create --template=motion-game HelloWorld
|
137
|
-
$ cd HelloWorld
|
138
|
-
</code></pre>
|
139
|
-
|
140
|
-
<h4>iOS</h4>
|
141
|
-
|
142
|
-
<pre class="code ruby"><code class="ruby">$ rake ios:simulator
|
143
|
-
$ rake ios:device
|
144
|
-
</code></pre>
|
145
|
-
|
146
|
-
<h4>tvOS</h4>
|
147
|
-
|
148
|
-
<pre class="code ruby"><code class="ruby">$ rake tvos:simulator
|
149
|
-
$ rake tvos:device
|
150
|
-
</code></pre>
|
151
|
-
|
152
|
-
<h4>Android</h4>
|
153
|
-
|
154
|
-
<pre class="code ruby"><code class="ruby">$ rake android:emulator
|
155
|
-
$ rake android:device
|
156
|
-
</code></pre>
|
157
|
-
|
158
|
-
<h3>API reference</h3>
|
159
|
-
|
160
|
-
<p>The whole framework API is documented. The <a href="http://www.rubydoc.info/gems/motion-game/">API reference</a> is available online.</p>
|
161
|
-
|
162
|
-
<p>You can also build the API reference locally:</p>
|
163
|
-
|
164
|
-
<pre class="code ruby"><code class="ruby">$ rake doc
|
165
|
-
$ open doc/index.html
|
166
|
-
</code></pre>
|
167
|
-
|
168
|
-
<h3>Samples</h3>
|
169
|
-
|
170
|
-
<p>The <a href="https://github.com/HipByte/motion-game/tree/master/samples">samples</a> directory contains sample projects.</p>
|
171
|
-
|
172
|
-
<h2>License</h2>
|
173
|
-
|
174
|
-
<p>Copyright (c) 2015, HipByte (<a href="mailto:info@hipbyte.com">info@hipbyte.com</a>) and contributors. All rights reserved.</p>
|
175
|
-
|
176
|
-
<p>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</p>
|
177
|
-
|
178
|
-
<p>Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
179
|
-
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>
|
180
|
-
|
181
|
-
<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>
|
182
|
-
</div></div>
|
183
|
-
|
184
|
-
<div id="footer">
|
185
|
-
Generated on Sun Dec 11 16:38:29 2016 by
|
186
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
187
|
-
0.9.5 (ruby-2.3.3).
|
188
|
-
</div>
|
189
|
-
|
190
|
-
</div>
|
191
|
-
</body>
|
192
|
-
</html>
|