motion-game 1.0
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 +7 -0
- 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/libjpeg.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/libtiff.a +0 -0
- data/build/android/armeabi/libwebp.a +0 -0
- data/build/android/armeabi/libwebsockets.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/libjpeg.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/libtiff.a +0 -0
- data/build/android/x86/libwebp.a +0 -0
- data/build/android/x86/libwebsockets.a +0 -0
- data/build/ios/libchipmunk.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/libtiff.a +0 -0
- data/build/ios/libwebp.a +0 -0
- data/build/ios/libwebsockets.a +0 -0
- data/doc/MG.html +129 -0
- data/doc/MG/Application.html +332 -0
- data/doc/MG/Audio.html +1049 -0
- data/doc/MG/Button.html +722 -0
- data/doc/MG/Color.html +528 -0
- data/doc/MG/Director.html +1140 -0
- data/doc/MG/Draw.html +437 -0
- data/doc/MG/Events.html +127 -0
- data/doc/MG/Events/Acceleration.html +502 -0
- data/doc/MG/Events/Touch.html +232 -0
- data/doc/MG/Layout.html +513 -0
- data/doc/MG/List.html +1050 -0
- data/doc/MG/Node.html +1752 -0
- data/doc/MG/Parallax.html +294 -0
- data/doc/MG/Particle.html +1221 -0
- data/doc/MG/Point.html +540 -0
- data/doc/MG/Scene.html +1250 -0
- data/doc/MG/Scroll.html +530 -0
- data/doc/MG/Size.html +737 -0
- data/doc/MG/Slider.html +335 -0
- data/doc/MG/Sprite.html +2066 -0
- data/doc/MG/Text.html +918 -0
- data/doc/MG/Web.html +828 -0
- data/doc/MG/Widget.html +460 -0
- data/doc/_index.html +362 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +114 -0
- data/doc/file_list.html +60 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +114 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +933 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/motion-game.rb +1 -0
- data/lib/motion-game/android.rb +23 -0
- data/lib/motion-game/android/main_activity.rb +2 -0
- data/lib/motion-game/ios.rb +14 -0
- data/lib/motion-game/ios/app_delegate.rb +20 -0
- data/lib/motion-game/ios/root_view_controller.rb +14 -0
- data/lib/motion-game/project.rb +1 -0
- data/lib/motion-game/shortcuts.rb +177 -0
- data/template/motion-game/files/Gemfile +5 -0
- data/template/motion-game/files/Rakefile +12 -0
- data/template/motion-game/files/app/application.rb +5 -0
- data/template/motion-game/files/app/main_scene.rb +7 -0
- data/template/motion-game/files/config/android.rb.erb +6 -0
- data/template/motion-game/files/config/ios.rb.erb +6 -0
- metadata +130 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Class: MG::Parallax
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.8.7.6
|
|
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
|
+
hasFrames = window.top.frames.main ? true : false;
|
|
19
|
+
relpath = '../';
|
|
20
|
+
framesUrl = "../frames.html#!MG/Parallax.html";
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
25
|
+
|
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
</head>
|
|
30
|
+
<body>
|
|
31
|
+
<div id="header">
|
|
32
|
+
<div id="menu">
|
|
33
|
+
|
|
34
|
+
<a href="../_index.html">Index (P)</a> »
|
|
35
|
+
<span class='title'><span class='object_link'><a href="../MG.html" title="MG (module)">MG</a></span></span>
|
|
36
|
+
»
|
|
37
|
+
<span class="title">Parallax</span>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div id="search">
|
|
44
|
+
|
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
|
46
|
+
href="../class_list.html">
|
|
47
|
+
Class List
|
|
48
|
+
</a>
|
|
49
|
+
|
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
|
51
|
+
href="../method_list.html">
|
|
52
|
+
Method List
|
|
53
|
+
</a>
|
|
54
|
+
|
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
|
56
|
+
href="../file_list.html">
|
|
57
|
+
File List
|
|
58
|
+
</a>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
<div class="clear"></div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<iframe id="search_frame"></iframe>
|
|
65
|
+
|
|
66
|
+
<div id="content"><h1>Class: MG::Parallax
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
<dt class="r1">Inherits:</dt>
|
|
75
|
+
<dd class="r1">
|
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></span>
|
|
77
|
+
|
|
78
|
+
<ul class="fullTree">
|
|
79
|
+
<li>Object</li>
|
|
80
|
+
|
|
81
|
+
<li class="next"><span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></li>
|
|
82
|
+
|
|
83
|
+
<li class="next">MG::Parallax</li>
|
|
84
|
+
|
|
85
|
+
</ul>
|
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
87
|
+
|
|
88
|
+
</dd>
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
|
99
|
+
<dd class="r2 last">motion-game</dd>
|
|
100
|
+
|
|
101
|
+
</dl>
|
|
102
|
+
<div class="clear"></div>
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
<h2>Instance Attribute Summary</h2>
|
|
111
|
+
|
|
112
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></h3>
|
|
113
|
+
<p class="inherited"><span class='object_link'><a href="Node.html#alpha-instance_method" title="MG::Node#alpha (method)">#alpha</a></span>, <span class='object_link'><a href="Node.html#anchor_point-instance_method" title="MG::Node#anchor_point (method)">#anchor_point</a></span>, <span class='object_link'><a href="Node.html#color-instance_method" title="MG::Node#color (method)">#color</a></span>, <span class='object_link'><a href="Node.html#name-instance_method" title="MG::Node#name (method)">#name</a></span>, <span class='object_link'><a href="Node.html#position-instance_method" title="MG::Node#position (method)">#position</a></span>, <span class='object_link'><a href="Node.html#rotation-instance_method" title="MG::Node#rotation (method)">#rotation</a></span>, <span class='object_link'><a href="Node.html#scale-instance_method" title="MG::Node#scale (method)">#scale</a></span>, <span class='object_link'><a href="Node.html#size-instance_method" title="MG::Node#size (method)">#size</a></span>, <span class='object_link'><a href="Node.html#visible%3F-instance_method" title="MG::Node#visible? (method)">#visible?</a></span>, <span class='object_link'><a href="Node.html#z_index-instance_method" title="MG::Node#z_index (method)">#z_index</a></span></p>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
<h2>
|
|
118
|
+
Container
|
|
119
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
120
|
+
</h2>
|
|
121
|
+
|
|
122
|
+
<ul class="summary">
|
|
123
|
+
|
|
124
|
+
<li class="public ">
|
|
125
|
+
<span class="summary_signature">
|
|
126
|
+
|
|
127
|
+
<a href="#add-instance_method" title="#add (instance method)">- (Node) <strong>add</strong>(node, zpos, parallax_ratio, position_offset) </a>
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
</span>
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<span class="summary_desc"><div class='inline'>
|
|
142
|
+
<p>Adds the given Node object to the receiver and configure it in the parallax
|
|
143
|
+
view.</p>
|
|
144
|
+
</div></span>
|
|
145
|
+
|
|
146
|
+
</li>
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
</ul>
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></h3>
|
|
162
|
+
<p class="inherited"><span class='object_link'><a href="Node.html#children-instance_method" title="MG::Node#children (method)">#children</a></span>, <span class='object_link'><a href="Node.html#clear-instance_method" title="MG::Node#clear (method)">#clear</a></span>, <span class='object_link'><a href="Node.html#delete-instance_method" title="MG::Node#delete (method)">#delete</a></span>, <span class='object_link'><a href="Node.html#delete_from_parent-instance_method" title="MG::Node#delete_from_parent (method)">#delete_from_parent</a></span>, <span class='object_link'><a href="Node.html#intersects%3F-instance_method" title="MG::Node#intersects? (method)">#intersects?</a></span>, <span class='object_link'><a href="Node.html#parent-instance_method" title="MG::Node#parent (method)">#parent</a></span></p>
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
<div id="instance_method_details" class="method_details_list">
|
|
166
|
+
<h2>Instance Method Details</h2>
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
<div class="method_details first">
|
|
170
|
+
<h3 class="signature first" id="add-instance_method">
|
|
171
|
+
|
|
172
|
+
- (<tt><span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></tt>) <strong>add</strong>(node, zpos, parallax_ratio, position_offset)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
</h3><div class="docstring">
|
|
179
|
+
<div class="discussion">
|
|
180
|
+
|
|
181
|
+
<p>Adds the given Node object to the receiver and configure it in the parallax
|
|
182
|
+
view.</p>
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
<div class="tags">
|
|
188
|
+
<p class="tag_title">Parameters:</p>
|
|
189
|
+
<ul class="param">
|
|
190
|
+
|
|
191
|
+
<li>
|
|
192
|
+
|
|
193
|
+
<span class='name'>node</span>
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
<span class='type'>(<tt><span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></tt>)</span>
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
—
|
|
201
|
+
<div class='inline'>
|
|
202
|
+
<p>the node to add to the receiver.</p>
|
|
203
|
+
</div>
|
|
204
|
+
|
|
205
|
+
</li>
|
|
206
|
+
|
|
207
|
+
<li>
|
|
208
|
+
|
|
209
|
+
<span class='name'>zpos</span>
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
—
|
|
217
|
+
<div class='inline'>
|
|
218
|
+
<p>the local z-order.</p>
|
|
219
|
+
</div>
|
|
220
|
+
|
|
221
|
+
</li>
|
|
222
|
+
|
|
223
|
+
<li>
|
|
224
|
+
|
|
225
|
+
<span class='name'>parallax_ratio</span>
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
<span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
</li>
|
|
233
|
+
|
|
234
|
+
<li>
|
|
235
|
+
|
|
236
|
+
<span class='name'>position_offset</span>
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
<span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
</li>
|
|
244
|
+
|
|
245
|
+
</ul>
|
|
246
|
+
|
|
247
|
+
<p class="tag_title">Returns:</p>
|
|
248
|
+
<ul class="return">
|
|
249
|
+
|
|
250
|
+
<li>
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
<span class='type'>(<tt><span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></tt>)</span>
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
—
|
|
258
|
+
<div class='inline'>
|
|
259
|
+
<p>the child node.</p>
|
|
260
|
+
</div>
|
|
261
|
+
|
|
262
|
+
</li>
|
|
263
|
+
|
|
264
|
+
</ul>
|
|
265
|
+
|
|
266
|
+
</div><table class="source_code">
|
|
267
|
+
<tr>
|
|
268
|
+
<td>
|
|
269
|
+
<pre class="lines">
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
358</pre>
|
|
273
|
+
</td>
|
|
274
|
+
<td>
|
|
275
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 358</span>
|
|
276
|
+
|
|
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
|
+
</td>
|
|
279
|
+
</tr>
|
|
280
|
+
</table>
|
|
281
|
+
</div>
|
|
282
|
+
|
|
283
|
+
</div>
|
|
284
|
+
|
|
285
|
+
</div>
|
|
286
|
+
|
|
287
|
+
<div id="footer">
|
|
288
|
+
Generated on Thu Sep 3 15:12:07 2015 by
|
|
289
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
290
|
+
0.8.7.6 (ruby-2.0.0).
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
</body>
|
|
294
|
+
</html>
|
|
@@ -0,0 +1,1221 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Class: MG::Particle
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.8.7.6
|
|
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
|
+
hasFrames = window.top.frames.main ? true : false;
|
|
19
|
+
relpath = '../';
|
|
20
|
+
framesUrl = "../frames.html#!MG/Particle.html";
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
25
|
+
|
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
</head>
|
|
30
|
+
<body>
|
|
31
|
+
<div id="header">
|
|
32
|
+
<div id="menu">
|
|
33
|
+
|
|
34
|
+
<a href="../_index.html">Index (P)</a> »
|
|
35
|
+
<span class='title'><span class='object_link'><a href="../MG.html" title="MG (module)">MG</a></span></span>
|
|
36
|
+
»
|
|
37
|
+
<span class="title">Particle</span>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div id="search">
|
|
44
|
+
|
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
|
46
|
+
href="../class_list.html">
|
|
47
|
+
Class List
|
|
48
|
+
</a>
|
|
49
|
+
|
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
|
51
|
+
href="../method_list.html">
|
|
52
|
+
Method List
|
|
53
|
+
</a>
|
|
54
|
+
|
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
|
56
|
+
href="../file_list.html">
|
|
57
|
+
File List
|
|
58
|
+
</a>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
<div class="clear"></div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<iframe id="search_frame"></iframe>
|
|
65
|
+
|
|
66
|
+
<div id="content"><h1>Class: MG::Particle
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
<dt class="r1">Inherits:</dt>
|
|
75
|
+
<dd class="r1">
|
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></span>
|
|
77
|
+
|
|
78
|
+
<ul class="fullTree">
|
|
79
|
+
<li>Object</li>
|
|
80
|
+
|
|
81
|
+
<li class="next"><span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></li>
|
|
82
|
+
|
|
83
|
+
<li class="next">MG::Particle</li>
|
|
84
|
+
|
|
85
|
+
</ul>
|
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
87
|
+
|
|
88
|
+
</dd>
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
|
99
|
+
<dd class="r2 last">motion-game</dd>
|
|
100
|
+
|
|
101
|
+
</dl>
|
|
102
|
+
<div class="clear"></div>
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
<h2>Properties <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
109
|
+
<ul class="summary">
|
|
110
|
+
|
|
111
|
+
<li class="public ">
|
|
112
|
+
<span class="summary_signature">
|
|
113
|
+
|
|
114
|
+
<a href="#angle-instance_method" title="#angle (instance method)">- (Float) <strong>angle</strong> </a>
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
</span>
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
<span class="summary_desc"><div class='inline'>
|
|
132
|
+
<p>The angle of each particle.</p>
|
|
133
|
+
</div></span>
|
|
134
|
+
|
|
135
|
+
</li>
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
<li class="public ">
|
|
139
|
+
<span class="summary_signature">
|
|
140
|
+
|
|
141
|
+
<a href="#angle_range-instance_method" title="#angle_range (instance method)">- (Float) <strong>angle_range</strong> </a>
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
</span>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
<span class="summary_desc"><div class='inline'>
|
|
159
|
+
<p>The angle variation of each particle.</p>
|
|
160
|
+
</div></span>
|
|
161
|
+
|
|
162
|
+
</li>
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
<li class="public ">
|
|
166
|
+
<span class="summary_signature">
|
|
167
|
+
|
|
168
|
+
<a href="#duration-instance_method" title="#duration (instance method)">- (Float) <strong>duration</strong> </a>
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
</span>
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
<span class="summary_desc"><div class='inline'>
|
|
186
|
+
<p>The duration of the particle.</p>
|
|
187
|
+
</div></span>
|
|
188
|
+
|
|
189
|
+
</li>
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
<li class="public ">
|
|
193
|
+
<span class="summary_signature">
|
|
194
|
+
|
|
195
|
+
<a href="#end_color-instance_method" title="#end_color (instance method)">- (Color) <strong>end_color</strong> </a>
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
</span>
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
<span class="summary_desc"><div class='inline'>
|
|
213
|
+
<p>The color that should be used when the particle ends.</p>
|
|
214
|
+
</div></span>
|
|
215
|
+
|
|
216
|
+
</li>
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
<li class="public ">
|
|
220
|
+
<span class="summary_signature">
|
|
221
|
+
|
|
222
|
+
<a href="#life-instance_method" title="#life (instance method)">- (Float) <strong>life</strong> </a>
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
</span>
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
<span class="summary_desc"><div class='inline'>
|
|
240
|
+
<p>The life of each particle.</p>
|
|
241
|
+
</div></span>
|
|
242
|
+
|
|
243
|
+
</li>
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
<li class="public ">
|
|
247
|
+
<span class="summary_signature">
|
|
248
|
+
|
|
249
|
+
<a href="#life_range-instance_method" title="#life_range (instance method)">- (Float) <strong>life_range</strong> </a>
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
</span>
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
<span class="summary_desc"><div class='inline'>
|
|
267
|
+
<p>The life variation of each particle.</p>
|
|
268
|
+
</div></span>
|
|
269
|
+
|
|
270
|
+
</li>
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
<li class="public ">
|
|
274
|
+
<span class="summary_signature">
|
|
275
|
+
|
|
276
|
+
<a href="#particle_count-instance_method" title="#particle_count (instance method)">- (Integer) <strong>particle_count</strong> </a>
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
</span>
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
<span class="summary_desc"><div class='inline'>
|
|
294
|
+
<p>The number of particles to emit.</p>
|
|
295
|
+
</div></span>
|
|
296
|
+
|
|
297
|
+
</li>
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
<li class="public ">
|
|
301
|
+
<span class="summary_signature">
|
|
302
|
+
|
|
303
|
+
<a href="#position_range-instance_method" title="#position_range (instance method)">- (Point) <strong>position_range</strong> </a>
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
</span>
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
<span class="summary_desc"><div class='inline'>
|
|
321
|
+
<p>The position variation of each particle.</p>
|
|
322
|
+
</div></span>
|
|
323
|
+
|
|
324
|
+
</li>
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
<li class="public ">
|
|
328
|
+
<span class="summary_signature">
|
|
329
|
+
|
|
330
|
+
<a href="#speed-instance_method" title="#speed (instance method)">- (Float) <strong>speed</strong> </a>
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
</span>
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
<span class="summary_desc"><div class='inline'>
|
|
348
|
+
<p>The speed of the particle emitter.</p>
|
|
349
|
+
</div></span>
|
|
350
|
+
|
|
351
|
+
</li>
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
<li class="public ">
|
|
355
|
+
<span class="summary_signature">
|
|
356
|
+
|
|
357
|
+
<a href="#start_color-instance_method" title="#start_color (instance method)">- (Color) <strong>start_color</strong> </a>
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
</span>
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
<span class="summary_desc"><div class='inline'>
|
|
375
|
+
<p>The color that should be used when the particle starts.</p>
|
|
376
|
+
</div></span>
|
|
377
|
+
|
|
378
|
+
</li>
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
<li class="public ">
|
|
382
|
+
<span class="summary_signature">
|
|
383
|
+
|
|
384
|
+
<a href="#texture%3D-instance_method" title="#texture= (instance method)">- (String) <strong>texture</strong> </a>
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
</span>
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
<span class="note title writeonly">writeonly</span>
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
<span class="summary_desc"><div class='inline'>
|
|
404
|
+
<p>The path of the texture file.</p>
|
|
405
|
+
</div></span>
|
|
406
|
+
|
|
407
|
+
</li>
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
</ul>
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></h3>
|
|
417
|
+
<p class="inherited"><span class='object_link'><a href="Node.html#alpha-instance_method" title="MG::Node#alpha (method)">#alpha</a></span>, <span class='object_link'><a href="Node.html#anchor_point-instance_method" title="MG::Node#anchor_point (method)">#anchor_point</a></span>, <span class='object_link'><a href="Node.html#color-instance_method" title="MG::Node#color (method)">#color</a></span>, <span class='object_link'><a href="Node.html#name-instance_method" title="MG::Node#name (method)">#name</a></span>, <span class='object_link'><a href="Node.html#position-instance_method" title="MG::Node#position (method)">#position</a></span>, <span class='object_link'><a href="Node.html#rotation-instance_method" title="MG::Node#rotation (method)">#rotation</a></span>, <span class='object_link'><a href="Node.html#scale-instance_method" title="MG::Node#scale (method)">#scale</a></span>, <span class='object_link'><a href="Node.html#size-instance_method" title="MG::Node#size (method)">#size</a></span>, <span class='object_link'><a href="Node.html#visible%3F-instance_method" title="MG::Node#visible? (method)">#visible?</a></span>, <span class='object_link'><a href="Node.html#z_index-instance_method" title="MG::Node#z_index (method)">#z_index</a></span></p>
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
<h2>
|
|
422
|
+
Constructors
|
|
423
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
424
|
+
</h2>
|
|
425
|
+
|
|
426
|
+
<ul class="summary">
|
|
427
|
+
|
|
428
|
+
<li class="public ">
|
|
429
|
+
<span class="summary_signature">
|
|
430
|
+
|
|
431
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Particle) <strong>initialize</strong>(file_name = nil) </a>
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
</span>
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
<span class="note title constructor">constructor</span>
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
<span class="summary_desc"><div class='inline'>
|
|
448
|
+
<p>Creates a Particle object.</p>
|
|
449
|
+
</div></span>
|
|
450
|
+
|
|
451
|
+
</li>
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
</ul>
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></h3>
|
|
467
|
+
<p class="inherited"><span class='object_link'><a href="Node.html#add-instance_method" title="MG::Node#add (method)">#add</a></span>, <span class='object_link'><a href="Node.html#children-instance_method" title="MG::Node#children (method)">#children</a></span>, <span class='object_link'><a href="Node.html#clear-instance_method" title="MG::Node#clear (method)">#clear</a></span>, <span class='object_link'><a href="Node.html#delete-instance_method" title="MG::Node#delete (method)">#delete</a></span>, <span class='object_link'><a href="Node.html#delete_from_parent-instance_method" title="MG::Node#delete_from_parent (method)">#delete_from_parent</a></span>, <span class='object_link'><a href="Node.html#intersects%3F-instance_method" title="MG::Node#intersects? (method)">#intersects?</a></span>, <span class='object_link'><a href="Node.html#parent-instance_method" title="MG::Node#parent (method)">#parent</a></span></p>
|
|
468
|
+
<div id="constructor_details" class="method_details_list">
|
|
469
|
+
<h2>Constructor Details</h2>
|
|
470
|
+
|
|
471
|
+
<div class="method_details first">
|
|
472
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
473
|
+
|
|
474
|
+
- (<tt><span class='object_link'><a href="" title="MG::Particle (class)">Particle</a></span></tt>) <strong>initialize</strong>(file_name = nil)
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
</h3><div class="docstring">
|
|
481
|
+
<div class="discussion">
|
|
482
|
+
|
|
483
|
+
<p>Creates a Particle object. If <code>file_name</code> is given, it should be
|
|
484
|
+
the name files can be created manually or with a visual editor such as
|
|
485
|
+
Particle Designer. If <code>file_name</code> is not given an empty
|
|
486
|
+
Particle object will be created.</p>
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
</div>
|
|
490
|
+
</div>
|
|
491
|
+
<div class="tags">
|
|
492
|
+
<p class="tag_title">Parameters:</p>
|
|
493
|
+
<ul class="param">
|
|
494
|
+
|
|
495
|
+
<li>
|
|
496
|
+
|
|
497
|
+
<span class='name'>file_name</span>
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
<em class="default">(defaults to: <tt>nil</tt>)</em>
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
—
|
|
507
|
+
<div class='inline'>
|
|
508
|
+
<p>the name of the property list particle file.</p>
|
|
509
|
+
</div>
|
|
510
|
+
|
|
511
|
+
</li>
|
|
512
|
+
|
|
513
|
+
</ul>
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
</div><table class="source_code">
|
|
517
|
+
<tr>
|
|
518
|
+
<td>
|
|
519
|
+
<pre class="lines">
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
392</pre>
|
|
523
|
+
</td>
|
|
524
|
+
<td>
|
|
525
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 392</span>
|
|
526
|
+
|
|
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
|
+
</td>
|
|
529
|
+
</tr>
|
|
530
|
+
</table>
|
|
531
|
+
</div>
|
|
532
|
+
|
|
533
|
+
</div>
|
|
534
|
+
|
|
535
|
+
<div id="instance_attr_details" class="attr_details">
|
|
536
|
+
<h2>Instance Attribute Details</h2>
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
<span id="angle=-instance_method"></span>
|
|
540
|
+
<div class="method_details first">
|
|
541
|
+
<h3 class="signature first" id="angle-instance_method">
|
|
542
|
+
|
|
543
|
+
- (<tt>Float</tt>) <strong>angle</strong>
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
</h3><div class="docstring">
|
|
550
|
+
<div class="discussion">
|
|
551
|
+
|
|
552
|
+
<p>Returns the angle of each particle.</p>
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
</div>
|
|
556
|
+
</div>
|
|
557
|
+
<div class="tags">
|
|
558
|
+
|
|
559
|
+
<p class="tag_title">Returns:</p>
|
|
560
|
+
<ul class="return">
|
|
561
|
+
|
|
562
|
+
<li>
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
—
|
|
570
|
+
<div class='inline'>
|
|
571
|
+
<p>the angle of each particle.</p>
|
|
572
|
+
</div>
|
|
573
|
+
|
|
574
|
+
</li>
|
|
575
|
+
|
|
576
|
+
</ul>
|
|
577
|
+
|
|
578
|
+
</div><table class="source_code">
|
|
579
|
+
<tr>
|
|
580
|
+
<td>
|
|
581
|
+
<pre class="lines">
|
|
582
|
+
|
|
583
|
+
|
|
584
|
+
410
|
|
585
|
+
411
|
|
586
|
+
412</pre>
|
|
587
|
+
</td>
|
|
588
|
+
<td>
|
|
589
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 410</span>
|
|
590
|
+
|
|
591
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_angle'>angle</span>
|
|
592
|
+
<span class='ivar'>@angle</span>
|
|
593
|
+
<span class='kw'>end</span></pre>
|
|
594
|
+
</td>
|
|
595
|
+
</tr>
|
|
596
|
+
</table>
|
|
597
|
+
</div>
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
<span id="angle_range=-instance_method"></span>
|
|
601
|
+
<div class="method_details ">
|
|
602
|
+
<h3 class="signature " id="angle_range-instance_method">
|
|
603
|
+
|
|
604
|
+
- (<tt>Float</tt>) <strong>angle_range</strong>
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
</h3><div class="docstring">
|
|
611
|
+
<div class="discussion">
|
|
612
|
+
|
|
613
|
+
<p>Returns the angle variation of each particle.</p>
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
</div>
|
|
617
|
+
</div>
|
|
618
|
+
<div class="tags">
|
|
619
|
+
|
|
620
|
+
<p class="tag_title">Returns:</p>
|
|
621
|
+
<ul class="return">
|
|
622
|
+
|
|
623
|
+
<li>
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
—
|
|
631
|
+
<div class='inline'>
|
|
632
|
+
<p>the angle variation of each particle.</p>
|
|
633
|
+
</div>
|
|
634
|
+
|
|
635
|
+
</li>
|
|
636
|
+
|
|
637
|
+
</ul>
|
|
638
|
+
|
|
639
|
+
</div><table class="source_code">
|
|
640
|
+
<tr>
|
|
641
|
+
<td>
|
|
642
|
+
<pre class="lines">
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
413
|
|
646
|
+
414
|
|
647
|
+
415</pre>
|
|
648
|
+
</td>
|
|
649
|
+
<td>
|
|
650
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 413</span>
|
|
651
|
+
|
|
652
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_angle_range'>angle_range</span>
|
|
653
|
+
<span class='ivar'>@angle_range</span>
|
|
654
|
+
<span class='kw'>end</span></pre>
|
|
655
|
+
</td>
|
|
656
|
+
</tr>
|
|
657
|
+
</table>
|
|
658
|
+
</div>
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
<span id="duration=-instance_method"></span>
|
|
662
|
+
<div class="method_details ">
|
|
663
|
+
<h3 class="signature " id="duration-instance_method">
|
|
664
|
+
|
|
665
|
+
- (<tt>Float</tt>) <strong>duration</strong>
|
|
666
|
+
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
</h3><div class="docstring">
|
|
672
|
+
<div class="discussion">
|
|
673
|
+
|
|
674
|
+
<p>Returns the duration of the particle.</p>
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
</div>
|
|
678
|
+
</div>
|
|
679
|
+
<div class="tags">
|
|
680
|
+
|
|
681
|
+
<p class="tag_title">Returns:</p>
|
|
682
|
+
<ul class="return">
|
|
683
|
+
|
|
684
|
+
<li>
|
|
685
|
+
|
|
686
|
+
|
|
687
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
—
|
|
692
|
+
<div class='inline'>
|
|
693
|
+
<p>the duration of the particle.</p>
|
|
694
|
+
</div>
|
|
695
|
+
|
|
696
|
+
</li>
|
|
697
|
+
|
|
698
|
+
</ul>
|
|
699
|
+
|
|
700
|
+
</div><table class="source_code">
|
|
701
|
+
<tr>
|
|
702
|
+
<td>
|
|
703
|
+
<pre class="lines">
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
416
|
|
707
|
+
417
|
|
708
|
+
418</pre>
|
|
709
|
+
</td>
|
|
710
|
+
<td>
|
|
711
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 416</span>
|
|
712
|
+
|
|
713
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_duration'>duration</span>
|
|
714
|
+
<span class='ivar'>@duration</span>
|
|
715
|
+
<span class='kw'>end</span></pre>
|
|
716
|
+
</td>
|
|
717
|
+
</tr>
|
|
718
|
+
</table>
|
|
719
|
+
</div>
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
<span id="end_color=-instance_method"></span>
|
|
723
|
+
<div class="method_details ">
|
|
724
|
+
<h3 class="signature " id="end_color-instance_method">
|
|
725
|
+
|
|
726
|
+
- (<tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>) <strong>end_color</strong>
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
</h3><div class="docstring">
|
|
733
|
+
<div class="discussion">
|
|
734
|
+
|
|
735
|
+
<p>Returns the color that should be used when the particle ends.</p>
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
</div>
|
|
739
|
+
</div>
|
|
740
|
+
<div class="tags">
|
|
741
|
+
|
|
742
|
+
<p class="tag_title">Returns:</p>
|
|
743
|
+
<ul class="return">
|
|
744
|
+
|
|
745
|
+
<li>
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
<span class='type'>(<tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>)</span>
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
—
|
|
753
|
+
<div class='inline'>
|
|
754
|
+
<p>the color that should be used when the particle ends.</p>
|
|
755
|
+
</div>
|
|
756
|
+
|
|
757
|
+
</li>
|
|
758
|
+
|
|
759
|
+
</ul>
|
|
760
|
+
|
|
761
|
+
</div><table class="source_code">
|
|
762
|
+
<tr>
|
|
763
|
+
<td>
|
|
764
|
+
<pre class="lines">
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
428
|
|
768
|
+
429
|
|
769
|
+
430</pre>
|
|
770
|
+
</td>
|
|
771
|
+
<td>
|
|
772
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 428</span>
|
|
773
|
+
|
|
774
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_end_color'>end_color</span>
|
|
775
|
+
<span class='ivar'>@end_color</span>
|
|
776
|
+
<span class='kw'>end</span></pre>
|
|
777
|
+
</td>
|
|
778
|
+
</tr>
|
|
779
|
+
</table>
|
|
780
|
+
</div>
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
<span id="life=-instance_method"></span>
|
|
784
|
+
<div class="method_details ">
|
|
785
|
+
<h3 class="signature " id="life-instance_method">
|
|
786
|
+
|
|
787
|
+
- (<tt>Float</tt>) <strong>life</strong>
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
</h3><div class="docstring">
|
|
794
|
+
<div class="discussion">
|
|
795
|
+
|
|
796
|
+
<p>Returns the life of each particle.</p>
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
</div>
|
|
800
|
+
</div>
|
|
801
|
+
<div class="tags">
|
|
802
|
+
|
|
803
|
+
<p class="tag_title">Returns:</p>
|
|
804
|
+
<ul class="return">
|
|
805
|
+
|
|
806
|
+
<li>
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
—
|
|
814
|
+
<div class='inline'>
|
|
815
|
+
<p>the life of each particle.</p>
|
|
816
|
+
</div>
|
|
817
|
+
|
|
818
|
+
</li>
|
|
819
|
+
|
|
820
|
+
</ul>
|
|
821
|
+
|
|
822
|
+
</div><table class="source_code">
|
|
823
|
+
<tr>
|
|
824
|
+
<td>
|
|
825
|
+
<pre class="lines">
|
|
826
|
+
|
|
827
|
+
|
|
828
|
+
404
|
|
829
|
+
405
|
|
830
|
+
406</pre>
|
|
831
|
+
</td>
|
|
832
|
+
<td>
|
|
833
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 404</span>
|
|
834
|
+
|
|
835
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_life'>life</span>
|
|
836
|
+
<span class='ivar'>@life</span>
|
|
837
|
+
<span class='kw'>end</span></pre>
|
|
838
|
+
</td>
|
|
839
|
+
</tr>
|
|
840
|
+
</table>
|
|
841
|
+
</div>
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
<span id="life_range=-instance_method"></span>
|
|
845
|
+
<div class="method_details ">
|
|
846
|
+
<h3 class="signature " id="life_range-instance_method">
|
|
847
|
+
|
|
848
|
+
- (<tt>Float</tt>) <strong>life_range</strong>
|
|
849
|
+
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
|
|
854
|
+
</h3><div class="docstring">
|
|
855
|
+
<div class="discussion">
|
|
856
|
+
|
|
857
|
+
<p>Returns the life variation of each particle.</p>
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
</div>
|
|
861
|
+
</div>
|
|
862
|
+
<div class="tags">
|
|
863
|
+
|
|
864
|
+
<p class="tag_title">Returns:</p>
|
|
865
|
+
<ul class="return">
|
|
866
|
+
|
|
867
|
+
<li>
|
|
868
|
+
|
|
869
|
+
|
|
870
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
—
|
|
875
|
+
<div class='inline'>
|
|
876
|
+
<p>the life variation of each particle.</p>
|
|
877
|
+
</div>
|
|
878
|
+
|
|
879
|
+
</li>
|
|
880
|
+
|
|
881
|
+
</ul>
|
|
882
|
+
|
|
883
|
+
</div><table class="source_code">
|
|
884
|
+
<tr>
|
|
885
|
+
<td>
|
|
886
|
+
<pre class="lines">
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
407
|
|
890
|
+
408
|
|
891
|
+
409</pre>
|
|
892
|
+
</td>
|
|
893
|
+
<td>
|
|
894
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 407</span>
|
|
895
|
+
|
|
896
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_life_range'>life_range</span>
|
|
897
|
+
<span class='ivar'>@life_range</span>
|
|
898
|
+
<span class='kw'>end</span></pre>
|
|
899
|
+
</td>
|
|
900
|
+
</tr>
|
|
901
|
+
</table>
|
|
902
|
+
</div>
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
<span id="particle_count=-instance_method"></span>
|
|
906
|
+
<div class="method_details ">
|
|
907
|
+
<h3 class="signature " id="particle_count-instance_method">
|
|
908
|
+
|
|
909
|
+
- (<tt>Integer</tt>) <strong>particle_count</strong>
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
</h3><div class="docstring">
|
|
916
|
+
<div class="discussion">
|
|
917
|
+
|
|
918
|
+
<p>Returns the number of particles to emit.</p>
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
</div>
|
|
922
|
+
</div>
|
|
923
|
+
<div class="tags">
|
|
924
|
+
|
|
925
|
+
<p class="tag_title">Returns:</p>
|
|
926
|
+
<ul class="return">
|
|
927
|
+
|
|
928
|
+
<li>
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
—
|
|
936
|
+
<div class='inline'>
|
|
937
|
+
<p>the number of particles to emit.</p>
|
|
938
|
+
</div>
|
|
939
|
+
|
|
940
|
+
</li>
|
|
941
|
+
|
|
942
|
+
</ul>
|
|
943
|
+
|
|
944
|
+
</div><table class="source_code">
|
|
945
|
+
<tr>
|
|
946
|
+
<td>
|
|
947
|
+
<pre class="lines">
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
422
|
|
951
|
+
423
|
|
952
|
+
424</pre>
|
|
953
|
+
</td>
|
|
954
|
+
<td>
|
|
955
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 422</span>
|
|
956
|
+
|
|
957
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_particle_count'>particle_count</span>
|
|
958
|
+
<span class='ivar'>@particle_count</span>
|
|
959
|
+
<span class='kw'>end</span></pre>
|
|
960
|
+
</td>
|
|
961
|
+
</tr>
|
|
962
|
+
</table>
|
|
963
|
+
</div>
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
<span id="position_range=-instance_method"></span>
|
|
967
|
+
<div class="method_details ">
|
|
968
|
+
<h3 class="signature " id="position_range-instance_method">
|
|
969
|
+
|
|
970
|
+
- (<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>) <strong>position_range</strong>
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
</h3><div class="docstring">
|
|
977
|
+
<div class="discussion">
|
|
978
|
+
|
|
979
|
+
<p>Returns the position variation of each particle.</p>
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
</div>
|
|
983
|
+
</div>
|
|
984
|
+
<div class="tags">
|
|
985
|
+
|
|
986
|
+
<p class="tag_title">Returns:</p>
|
|
987
|
+
<ul class="return">
|
|
988
|
+
|
|
989
|
+
<li>
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
<span class='type'>(<tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>)</span>
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
—
|
|
997
|
+
<div class='inline'>
|
|
998
|
+
<p>the position variation of each particle.</p>
|
|
999
|
+
</div>
|
|
1000
|
+
|
|
1001
|
+
</li>
|
|
1002
|
+
|
|
1003
|
+
</ul>
|
|
1004
|
+
|
|
1005
|
+
</div><table class="source_code">
|
|
1006
|
+
<tr>
|
|
1007
|
+
<td>
|
|
1008
|
+
<pre class="lines">
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
419
|
|
1012
|
+
420
|
|
1013
|
+
421</pre>
|
|
1014
|
+
</td>
|
|
1015
|
+
<td>
|
|
1016
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 419</span>
|
|
1017
|
+
|
|
1018
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_position_range'>position_range</span>
|
|
1019
|
+
<span class='ivar'>@position_range</span>
|
|
1020
|
+
<span class='kw'>end</span></pre>
|
|
1021
|
+
</td>
|
|
1022
|
+
</tr>
|
|
1023
|
+
</table>
|
|
1024
|
+
</div>
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
<span id="speed=-instance_method"></span>
|
|
1028
|
+
<div class="method_details ">
|
|
1029
|
+
<h3 class="signature " id="speed-instance_method">
|
|
1030
|
+
|
|
1031
|
+
- (<tt>Float</tt>) <strong>speed</strong>
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
</h3><div class="docstring">
|
|
1038
|
+
<div class="discussion">
|
|
1039
|
+
|
|
1040
|
+
<p>Returns the speed of the particle emitter.</p>
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
</div>
|
|
1044
|
+
</div>
|
|
1045
|
+
<div class="tags">
|
|
1046
|
+
|
|
1047
|
+
<p class="tag_title">Returns:</p>
|
|
1048
|
+
<ul class="return">
|
|
1049
|
+
|
|
1050
|
+
<li>
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
—
|
|
1058
|
+
<div class='inline'>
|
|
1059
|
+
<p>the speed of the particle emitter.</p>
|
|
1060
|
+
</div>
|
|
1061
|
+
|
|
1062
|
+
</li>
|
|
1063
|
+
|
|
1064
|
+
</ul>
|
|
1065
|
+
|
|
1066
|
+
</div><table class="source_code">
|
|
1067
|
+
<tr>
|
|
1068
|
+
<td>
|
|
1069
|
+
<pre class="lines">
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
401
|
|
1073
|
+
402
|
|
1074
|
+
403</pre>
|
|
1075
|
+
</td>
|
|
1076
|
+
<td>
|
|
1077
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 401</span>
|
|
1078
|
+
|
|
1079
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_speed'>speed</span>
|
|
1080
|
+
<span class='ivar'>@speed</span>
|
|
1081
|
+
<span class='kw'>end</span></pre>
|
|
1082
|
+
</td>
|
|
1083
|
+
</tr>
|
|
1084
|
+
</table>
|
|
1085
|
+
</div>
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
<span id="start_color=-instance_method"></span>
|
|
1089
|
+
<div class="method_details ">
|
|
1090
|
+
<h3 class="signature " id="start_color-instance_method">
|
|
1091
|
+
|
|
1092
|
+
- (<tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>) <strong>start_color</strong>
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
</h3><div class="docstring">
|
|
1099
|
+
<div class="discussion">
|
|
1100
|
+
|
|
1101
|
+
<p>Returns the color that should be used when the particle starts.</p>
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
</div>
|
|
1105
|
+
</div>
|
|
1106
|
+
<div class="tags">
|
|
1107
|
+
|
|
1108
|
+
<p class="tag_title">Returns:</p>
|
|
1109
|
+
<ul class="return">
|
|
1110
|
+
|
|
1111
|
+
<li>
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
<span class='type'>(<tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>)</span>
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
—
|
|
1119
|
+
<div class='inline'>
|
|
1120
|
+
<p>the color that should be used when the particle starts.</p>
|
|
1121
|
+
</div>
|
|
1122
|
+
|
|
1123
|
+
</li>
|
|
1124
|
+
|
|
1125
|
+
</ul>
|
|
1126
|
+
|
|
1127
|
+
</div><table class="source_code">
|
|
1128
|
+
<tr>
|
|
1129
|
+
<td>
|
|
1130
|
+
<pre class="lines">
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
425
|
|
1134
|
+
426
|
|
1135
|
+
427</pre>
|
|
1136
|
+
</td>
|
|
1137
|
+
<td>
|
|
1138
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 425</span>
|
|
1139
|
+
|
|
1140
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_start_color'>start_color</span>
|
|
1141
|
+
<span class='ivar'>@start_color</span>
|
|
1142
|
+
<span class='kw'>end</span></pre>
|
|
1143
|
+
</td>
|
|
1144
|
+
</tr>
|
|
1145
|
+
</table>
|
|
1146
|
+
</div>
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
<span id=""></span>
|
|
1150
|
+
<div class="method_details ">
|
|
1151
|
+
<h3 class="signature " id="texture=-instance_method">
|
|
1152
|
+
|
|
1153
|
+
- (<tt>String</tt>) <strong>texture=</strong>(value) <span class="extras">(writeonly)</span>
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
</h3><div class="docstring">
|
|
1160
|
+
<div class="discussion">
|
|
1161
|
+
|
|
1162
|
+
<p>Returns the path of the texture file.</p>
|
|
1163
|
+
|
|
1164
|
+
|
|
1165
|
+
</div>
|
|
1166
|
+
</div>
|
|
1167
|
+
<div class="tags">
|
|
1168
|
+
|
|
1169
|
+
<p class="tag_title">Returns:</p>
|
|
1170
|
+
<ul class="return">
|
|
1171
|
+
|
|
1172
|
+
<li>
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
1176
|
+
|
|
1177
|
+
|
|
1178
|
+
|
|
1179
|
+
—
|
|
1180
|
+
<div class='inline'>
|
|
1181
|
+
<p>the path of the texture file.</p>
|
|
1182
|
+
</div>
|
|
1183
|
+
|
|
1184
|
+
</li>
|
|
1185
|
+
|
|
1186
|
+
</ul>
|
|
1187
|
+
|
|
1188
|
+
</div><table class="source_code">
|
|
1189
|
+
<tr>
|
|
1190
|
+
<td>
|
|
1191
|
+
<pre class="lines">
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
398
|
|
1195
|
+
399
|
|
1196
|
+
400</pre>
|
|
1197
|
+
</td>
|
|
1198
|
+
<td>
|
|
1199
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 398</span>
|
|
1200
|
+
|
|
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
|
+
<span class='ivar'>@texture</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
|
1203
|
+
<span class='kw'>end</span></pre>
|
|
1204
|
+
</td>
|
|
1205
|
+
</tr>
|
|
1206
|
+
</table>
|
|
1207
|
+
</div>
|
|
1208
|
+
|
|
1209
|
+
</div>
|
|
1210
|
+
|
|
1211
|
+
|
|
1212
|
+
</div>
|
|
1213
|
+
|
|
1214
|
+
<div id="footer">
|
|
1215
|
+
Generated on Thu Sep 3 15:12:07 2015 by
|
|
1216
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1217
|
+
0.8.7.6 (ruby-2.0.0).
|
|
1218
|
+
</div>
|
|
1219
|
+
|
|
1220
|
+
</body>
|
|
1221
|
+
</html>
|