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