motion-game 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/build/android/armeabi/libmotion-cocos.a +0 -0
- data/build/android/motion-cocos.jar +0 -0
- data/build/android/x86/libmotion-cocos.a +0 -0
- data/build/ios/libmotion-cocos.a +0 -0
- data/build/tvos/libmotion-cocos.a +0 -0
- data/doc/MG.html +40 -38
- data/doc/MG/Action.html +402 -0
- data/doc/MG/Animate.html +281 -0
- data/doc/MG/Application.html +55 -52
- data/doc/MG/Audio.html +96 -93
- data/doc/MG/Blink.html +257 -0
- data/doc/MG/Button.html +82 -79
- data/doc/MG/Color.html +70 -67
- data/doc/MG/DelayTime.html +239 -0
- data/doc/MG/Director.html +256 -95
- data/doc/MG/Draw.html +67 -64
- data/doc/MG/Events.html +39 -37
- data/doc/MG/Events/Acceleration.html +70 -67
- data/doc/MG/Events/Touch.html +52 -49
- data/doc/MG/FadeIn.html +240 -0
- data/doc/MG/FadeOut.html +240 -0
- data/doc/MG/FadeTo.html +256 -0
- data/doc/MG/File.html +50 -47
- data/doc/MG/Follow.html +241 -0
- data/doc/MG/JumpBy.html +292 -0
- data/doc/MG/JumpTo.html +287 -0
- data/doc/MG/Layout.html +70 -67
- data/doc/MG/List.html +88 -85
- data/doc/MG/Menu.html +65 -62
- data/doc/MG/MoveBy.html +259 -0
- data/doc/MG/MoveTo.html +257 -0
- data/doc/MG/Node.html +393 -133
- data/doc/MG/Parallax.html +51 -48
- data/doc/MG/Particle.html +118 -115
- data/doc/MG/Point.html +67 -64
- data/doc/MG/Repeat.html +257 -0
- data/doc/MG/RepeatForever.html +239 -0
- data/doc/MG/RotateBy.html +259 -0
- data/doc/MG/RotateTo.html +257 -0
- data/doc/MG/ScaleBy.html +255 -0
- data/doc/MG/ScaleTo.html +255 -0
- data/doc/MG/Scene.html +110 -107
- data/doc/MG/Scroll.html +70 -67
- data/doc/MG/Sequence.html +241 -0
- data/doc/MG/Size.html +75 -72
- data/doc/MG/SkewBy.html +273 -0
- data/doc/MG/SkewTo.html +273 -0
- data/doc/MG/Slider.html +58 -55
- data/doc/MG/Spawn.html +239 -0
- data/doc/MG/Speed.html +259 -0
- data/doc/MG/Sprite.html +547 -144
- data/doc/MG/Text.html +94 -91
- data/doc/MG/TintBy.html +272 -0
- data/doc/MG/TintTo.html +274 -0
- data/doc/MG/Web.html +77 -74
- data/doc/MG/Widget.html +70 -67
- data/doc/_index.html +223 -33
- data/doc/class_list.html +24 -31
- data/doc/css/full_list.css +32 -31
- data/doc/css/style.css +220 -78
- data/doc/file.README.html +29 -30
- data/doc/file_list.html +26 -30
- data/doc/frames.html +7 -16
- data/doc/index.html +29 -30
- data/doc/js/app.js +100 -76
- data/doc/js/full_list.js +170 -135
- data/doc/method_list.html +1096 -500
- data/doc/top-level-namespace.html +35 -35
- data/lib/motion-game/android/main_activity.rb +21 -0
- data/lib/motion-game/ios/app_delegate.rb +14 -0
- data/lib/motion-game/tvos/app_delegate.rb +16 -0
- data/template/motion-game/files/app/application.rb +8 -0
- metadata +28 -4
data/doc/MG/ScaleTo.html
ADDED
@@ -0,0 +1,255 @@
|
|
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::ScaleTo
|
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::ScaleTo";
|
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 (S)</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">ScaleTo</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::ScaleTo
|
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="Action.html" title="MG::Action (class)">Action</a></span></span>
|
75
|
+
|
76
|
+
<ul class="fullTree">
|
77
|
+
<li>Object</li>
|
78
|
+
|
79
|
+
<li class="next"><span class='object_link'><a href="Action.html" title="MG::Action (class)">Action</a></span></li>
|
80
|
+
|
81
|
+
<li class="next">MG::ScaleTo</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="Action.html" title="MG::Action (class)">Action</a></span></h3>
|
115
|
+
<p class="inherited"><span class='object_link'><a href="Action.html#done%3F-instance_method" title="MG::Action#done? (method)">#done?</a></span></p>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<h2>
|
120
|
+
Constructors
|
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="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(scale, interval) ⇒ ScaleTo </a>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
</span>
|
134
|
+
|
135
|
+
|
136
|
+
<span class="note title constructor">constructor</span>
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<span class="summary_desc"><div class='inline'>
|
146
|
+
<p>Creates an action that will scale the receiver.</p>
|
147
|
+
</div></span>
|
148
|
+
|
149
|
+
</li>
|
150
|
+
|
151
|
+
|
152
|
+
</ul>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Action.html" title="MG::Action (class)">Action</a></span></h3>
|
165
|
+
<p class="inherited"><span class='object_link'><a href="Action.html#clone-instance_method" title="MG::Action#clone (method)">#clone</a></span>, <span class='object_link'><a href="Action.html#reverse-instance_method" title="MG::Action#reverse (method)">#reverse</a></span></p>
|
166
|
+
<div id="constructor_details" class="method_details_list">
|
167
|
+
<h2>Constructor Details</h2>
|
168
|
+
|
169
|
+
<div class="method_details first">
|
170
|
+
<h3 class="signature first" id="initialize-instance_method">
|
171
|
+
|
172
|
+
#<strong>initialize</strong>(scale, interval) ⇒ <tt><span class='object_link'><a href="" title="MG::ScaleTo (class)">ScaleTo</a></span></tt>
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
</h3><div class="docstring">
|
179
|
+
<div class="discussion">
|
180
|
+
|
181
|
+
<p>Creates an action that will scale the receiver</p>
|
182
|
+
|
183
|
+
|
184
|
+
</div>
|
185
|
+
</div>
|
186
|
+
<div class="tags">
|
187
|
+
<p class="tag_title">Parameters:</p>
|
188
|
+
<ul class="param">
|
189
|
+
|
190
|
+
<li>
|
191
|
+
|
192
|
+
<span class='name'>scale</span>
|
193
|
+
|
194
|
+
|
195
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
—
|
200
|
+
<div class='inline'>
|
201
|
+
<p>the receiver should be scaled to</p>
|
202
|
+
</div>
|
203
|
+
|
204
|
+
</li>
|
205
|
+
|
206
|
+
<li>
|
207
|
+
|
208
|
+
<span class='name'>interval</span>
|
209
|
+
|
210
|
+
|
211
|
+
<span class='type'>(<tt>Float</tt>)</span>
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
—
|
216
|
+
<div class='inline'>
|
217
|
+
<p>the animation interval.</p>
|
218
|
+
</div>
|
219
|
+
|
220
|
+
</li>
|
221
|
+
|
222
|
+
</ul>
|
223
|
+
|
224
|
+
|
225
|
+
</div><table class="source_code">
|
226
|
+
<tr>
|
227
|
+
<td>
|
228
|
+
<pre class="lines">
|
229
|
+
|
230
|
+
|
231
|
+
130</pre>
|
232
|
+
</td>
|
233
|
+
<td>
|
234
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 130</span>
|
235
|
+
|
236
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_scale'>scale</span><span class='comma'>,</span> <span class='id identifier rubyid_interval'>interval</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
237
|
+
</td>
|
238
|
+
</tr>
|
239
|
+
</table>
|
240
|
+
</div>
|
241
|
+
|
242
|
+
</div>
|
243
|
+
|
244
|
+
|
245
|
+
</div>
|
246
|
+
|
247
|
+
<div id="footer">
|
248
|
+
Generated on Sun Nov 27 15:52:18 2016 by
|
249
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
250
|
+
0.9.5 (ruby-2.3.3).
|
251
|
+
</div>
|
252
|
+
|
253
|
+
</div>
|
254
|
+
</body>
|
255
|
+
</html>
|
data/doc/MG/Scene.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Class: MG::Scene
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.9.5
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "MG::Scene";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!MG/Scene.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,50 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
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">
|
33
38
|
|
34
39
|
<a href="../_index.html">Index (S)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../MG.html" title="MG (module)">MG</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Scene</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
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>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
62
|
+
<iframe id="search_frame" src="../class_list.html"></iframe>
|
65
63
|
|
66
|
-
|
64
|
+
<div id="content"><h1>Class: MG::Scene
|
67
65
|
|
68
66
|
|
69
67
|
|
70
68
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
69
|
+
<div class="box_info">
|
73
70
|
|
74
|
-
|
75
|
-
<
|
71
|
+
<dl>
|
72
|
+
<dt>Inherits:</dt>
|
73
|
+
<dd>
|
76
74
|
<span class="inheritName"><span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></span>
|
77
75
|
|
78
76
|
<ul class="fullTree">
|
@@ -85,21 +83,25 @@
|
|
85
83
|
</ul>
|
86
84
|
<a href="#" class="inheritanceTree">show all</a>
|
87
85
|
|
88
|
-
|
89
|
-
|
86
|
+
</dd>
|
87
|
+
</dl>
|
88
|
+
|
89
|
+
|
90
90
|
|
91
91
|
|
92
|
-
|
93
92
|
|
94
|
-
|
95
93
|
|
96
94
|
|
95
|
+
|
96
|
+
|
97
|
+
|
97
98
|
|
98
|
-
|
99
|
-
<
|
99
|
+
<dl>
|
100
|
+
<dt>Defined in:</dt>
|
101
|
+
<dd>motion-game</dd>
|
102
|
+
</dl>
|
100
103
|
|
101
|
-
</
|
102
|
-
<div class="clear"></div>
|
104
|
+
</div>
|
103
105
|
|
104
106
|
<h2>Overview</h2><div class="docstring">
|
105
107
|
<div class="discussion">
|
@@ -120,13 +122,13 @@ game loop. An application must have at least one scene, and the
|
|
120
122
|
|
121
123
|
|
122
124
|
|
123
|
-
<h2>Properties <small
|
125
|
+
<h2>Properties <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
124
126
|
<ul class="summary">
|
125
127
|
|
126
128
|
<li class="public ">
|
127
129
|
<span class="summary_signature">
|
128
130
|
|
129
|
-
<a href="#debug_physics%3F-instance_method" title="#debug_physics? (instance method)"
|
131
|
+
<a href="#debug_physics%3F-instance_method" title="#debug_physics? (instance method)">#<strong>debug_physics?</strong> ⇒ Boolean </a>
|
130
132
|
|
131
133
|
|
132
134
|
|
@@ -153,7 +155,7 @@ game loop. An application must have at least one scene, and the
|
|
153
155
|
<li class="public ">
|
154
156
|
<span class="summary_signature">
|
155
157
|
|
156
|
-
<a href="#gravity-instance_method" title="#gravity (instance method)"
|
158
|
+
<a href="#gravity-instance_method" title="#gravity (instance method)">#<strong>gravity</strong> ⇒ Point </a>
|
157
159
|
|
158
160
|
|
159
161
|
|
@@ -190,7 +192,7 @@ game loop. An application must have at least one scene, and the
|
|
190
192
|
|
191
193
|
<h2>
|
192
194
|
Constructors
|
193
|
-
<small
|
195
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
194
196
|
</h2>
|
195
197
|
|
196
198
|
<ul class="summary">
|
@@ -198,7 +200,7 @@ game loop. An application must have at least one scene, and the
|
|
198
200
|
<li class="public ">
|
199
201
|
<span class="summary_signature">
|
200
202
|
|
201
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
203
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> ⇒ Scene </a>
|
202
204
|
|
203
205
|
|
204
206
|
|
@@ -225,7 +227,7 @@ game loop. An application must have at least one scene, and the
|
|
225
227
|
|
226
228
|
<h2>
|
227
229
|
Update Loop
|
228
|
-
<small
|
230
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
229
231
|
</h2>
|
230
232
|
|
231
233
|
<ul class="summary">
|
@@ -233,7 +235,7 @@ game loop. An application must have at least one scene, and the
|
|
233
235
|
<li class="public ">
|
234
236
|
<span class="summary_signature">
|
235
237
|
|
236
|
-
<a href="#schedule-instance_method" title="#schedule (instance method)"
|
238
|
+
<a href="#schedule-instance_method" title="#schedule (instance method)">#<strong>schedule</strong>(delay, repeat = 0, interval = 0) {|Float| ... } ⇒ String </a>
|
237
239
|
|
238
240
|
|
239
241
|
|
@@ -257,7 +259,7 @@ game loop. An application must have at least one scene, and the
|
|
257
259
|
<li class="public ">
|
258
260
|
<span class="summary_signature">
|
259
261
|
|
260
|
-
<a href="#start_update-instance_method" title="#start_update (instance method)"
|
262
|
+
<a href="#start_update-instance_method" title="#start_update (instance method)">#<strong>start_update</strong> ⇒ Scene </a>
|
261
263
|
|
262
264
|
|
263
265
|
|
@@ -281,7 +283,7 @@ game loop. An application must have at least one scene, and the
|
|
281
283
|
<li class="public ">
|
282
284
|
<span class="summary_signature">
|
283
285
|
|
284
|
-
<a href="#stop_update-instance_method" title="#stop_update (instance method)"
|
286
|
+
<a href="#stop_update-instance_method" title="#stop_update (instance method)">#<strong>stop_update</strong> ⇒ Scene </a>
|
285
287
|
|
286
288
|
|
287
289
|
|
@@ -305,7 +307,7 @@ game loop. An application must have at least one scene, and the
|
|
305
307
|
<li class="public ">
|
306
308
|
<span class="summary_signature">
|
307
309
|
|
308
|
-
<a href="#unschedule-instance_method" title="#unschedule (instance method)"
|
310
|
+
<a href="#unschedule-instance_method" title="#unschedule (instance method)">#<strong>unschedule</strong>(key) ⇒ Scene </a>
|
309
311
|
|
310
312
|
|
311
313
|
|
@@ -329,7 +331,7 @@ game loop. An application must have at least one scene, and the
|
|
329
331
|
<li class="public ">
|
330
332
|
<span class="summary_signature">
|
331
333
|
|
332
|
-
<a href="#update-instance_method" title="#update (instance method)"
|
334
|
+
<a href="#update-instance_method" title="#update (instance method)">#<strong>update</strong>(delta) ⇒ Scene </a>
|
333
335
|
|
334
336
|
|
335
337
|
|
@@ -354,7 +356,7 @@ game loop. An application must have at least one scene, and the
|
|
354
356
|
|
355
357
|
<h2>
|
356
358
|
Events
|
357
|
-
<small
|
359
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
358
360
|
</h2>
|
359
361
|
|
360
362
|
<ul class="summary">
|
@@ -362,7 +364,7 @@ game loop. An application must have at least one scene, and the
|
|
362
364
|
<li class="public ">
|
363
365
|
<span class="summary_signature">
|
364
366
|
|
365
|
-
<a href="#on_accelerate-instance_method" title="#on_accelerate (instance method)"
|
367
|
+
<a href="#on_accelerate-instance_method" title="#on_accelerate (instance method)">#<strong>on_accelerate</strong> {|Events::Acceleration| ... } ⇒ Scene </a>
|
366
368
|
|
367
369
|
|
368
370
|
|
@@ -386,7 +388,7 @@ game loop. An application must have at least one scene, and the
|
|
386
388
|
<li class="public ">
|
387
389
|
<span class="summary_signature">
|
388
390
|
|
389
|
-
<a href="#on_contact_begin-instance_method" title="#on_contact_begin (instance method)"
|
391
|
+
<a href="#on_contact_begin-instance_method" title="#on_contact_begin (instance method)">#<strong>on_contact_begin</strong> {|Events::PhysicsContact| ... } ⇒ Scene </a>
|
390
392
|
|
391
393
|
|
392
394
|
|
@@ -410,7 +412,7 @@ game loop. An application must have at least one scene, and the
|
|
410
412
|
<li class="public ">
|
411
413
|
<span class="summary_signature">
|
412
414
|
|
413
|
-
<a href="#on_touch_begin-instance_method" title="#on_touch_begin (instance method)"
|
415
|
+
<a href="#on_touch_begin-instance_method" title="#on_touch_begin (instance method)">#<strong>on_touch_begin</strong> {|Events::Touch| ... } ⇒ Scene </a>
|
414
416
|
|
415
417
|
|
416
418
|
|
@@ -434,7 +436,7 @@ game loop. An application must have at least one scene, and the
|
|
434
436
|
<li class="public ">
|
435
437
|
<span class="summary_signature">
|
436
438
|
|
437
|
-
<a href="#on_touch_cancel-instance_method" title="#on_touch_cancel (instance method)"
|
439
|
+
<a href="#on_touch_cancel-instance_method" title="#on_touch_cancel (instance method)">#<strong>on_touch_cancel</strong> {|Events::Touch| ... } ⇒ Scene </a>
|
438
440
|
|
439
441
|
|
440
442
|
|
@@ -458,7 +460,7 @@ game loop. An application must have at least one scene, and the
|
|
458
460
|
<li class="public ">
|
459
461
|
<span class="summary_signature">
|
460
462
|
|
461
|
-
<a href="#on_touch_end-instance_method" title="#on_touch_end (instance method)"
|
463
|
+
<a href="#on_touch_end-instance_method" title="#on_touch_end (instance method)">#<strong>on_touch_end</strong> {|Events::Touch| ... } ⇒ Scene </a>
|
462
464
|
|
463
465
|
|
464
466
|
|
@@ -482,7 +484,7 @@ game loop. An application must have at least one scene, and the
|
|
482
484
|
<li class="public ">
|
483
485
|
<span class="summary_signature">
|
484
486
|
|
485
|
-
<a href="#on_touch_move-instance_method" title="#on_touch_move (instance method)"
|
487
|
+
<a href="#on_touch_move-instance_method" title="#on_touch_move (instance method)">#<strong>on_touch_move</strong> {|Events::Touch| ... } ⇒ Scene </a>
|
486
488
|
|
487
489
|
|
488
490
|
|
@@ -516,14 +518,14 @@ game loop. An application must have at least one scene, and the
|
|
516
518
|
|
517
519
|
|
518
520
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></h3>
|
519
|
-
<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>
|
521
|
+
<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>
|
520
522
|
<div id="constructor_details" class="method_details_list">
|
521
523
|
<h2>Constructor Details</h2>
|
522
524
|
|
523
525
|
<div class="method_details first">
|
524
526
|
<h3 class="signature first" id="initialize-instance_method">
|
525
527
|
|
526
|
-
|
528
|
+
#<strong>initialize</strong> ⇒ <tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>
|
527
529
|
|
528
530
|
|
529
531
|
|
@@ -548,10 +550,10 @@ the update loop by calling <span class='object_link'><a href="#start_update-inst
|
|
548
550
|
<pre class="lines">
|
549
551
|
|
550
552
|
|
551
|
-
|
553
|
+
531</pre>
|
552
554
|
</td>
|
553
555
|
<td>
|
554
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
556
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 531</span>
|
555
557
|
|
556
558
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
557
559
|
</td>
|
@@ -569,7 +571,7 @@ the update loop by calling <span class='object_link'><a href="#start_update-inst
|
|
569
571
|
<div class="method_details first">
|
570
572
|
<h3 class="signature first" id="debug_physics?-instance_method">
|
571
573
|
|
572
|
-
|
574
|
+
#<strong>debug_physics?</strong> ⇒ <tt>Boolean</tt>
|
573
575
|
|
574
576
|
|
575
577
|
|
@@ -610,12 +612,12 @@ the update loop by calling <span class='object_link'><a href="#start_update-inst
|
|
610
612
|
<pre class="lines">
|
611
613
|
|
612
614
|
|
613
|
-
|
614
|
-
|
615
|
-
|
615
|
+
615
|
616
|
+
616
|
617
|
+
617</pre>
|
616
618
|
</td>
|
617
619
|
<td>
|
618
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
620
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 615</span>
|
619
621
|
|
620
622
|
def debug_physics?
|
621
623
|
@debug_physics?
|
@@ -630,7 +632,7 @@ end</pre>
|
|
630
632
|
<div class="method_details ">
|
631
633
|
<h3 class="signature " id="gravity-instance_method">
|
632
634
|
|
633
|
-
|
635
|
+
#<strong>gravity</strong> ⇒ <tt><span class='object_link'><a href="Point.html" title="MG::Point (class)">Point</a></span></tt>
|
634
636
|
|
635
637
|
|
636
638
|
|
@@ -671,12 +673,12 @@ end</pre>
|
|
671
673
|
<pre class="lines">
|
672
674
|
|
673
675
|
|
674
|
-
|
675
|
-
|
676
|
-
|
676
|
+
612
|
677
|
+
613
|
678
|
+
614</pre>
|
677
679
|
</td>
|
678
680
|
<td>
|
679
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
681
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 612</span>
|
680
682
|
|
681
683
|
<span class='kw'>def</span> <span class='id identifier rubyid_gravity'>gravity</span>
|
682
684
|
<span class='ivar'>@gravity</span>
|
@@ -696,7 +698,7 @@ end</pre>
|
|
696
698
|
<div class="method_details first">
|
697
699
|
<h3 class="signature first" id="on_accelerate-instance_method">
|
698
700
|
|
699
|
-
|
701
|
+
#<strong>on_accelerate</strong> {|Events::Acceleration| ... } ⇒ <tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>
|
700
702
|
|
701
703
|
|
702
704
|
|
@@ -756,10 +758,10 @@ the device.</p>
|
|
756
758
|
<pre class="lines">
|
757
759
|
|
758
760
|
|
759
|
-
|
761
|
+
600</pre>
|
760
762
|
</td>
|
761
763
|
<td>
|
762
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
764
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 600</span>
|
763
765
|
|
764
766
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_accelerate'>on_accelerate</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
765
767
|
</td>
|
@@ -770,7 +772,7 @@ the device.</p>
|
|
770
772
|
<div class="method_details ">
|
771
773
|
<h3 class="signature " id="on_contact_begin-instance_method">
|
772
774
|
|
773
|
-
|
775
|
+
#<strong>on_contact_begin</strong> {|Events::PhysicsContact| ... } ⇒ <tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>
|
774
776
|
|
775
777
|
|
776
778
|
|
@@ -830,10 +832,10 @@ physics engine.</p>
|
|
830
832
|
<pre class="lines">
|
831
833
|
|
832
834
|
|
833
|
-
|
835
|
+
606</pre>
|
834
836
|
</td>
|
835
837
|
<td>
|
836
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
838
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 606</span>
|
837
839
|
|
838
840
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_contact_begin'>on_contact_begin</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
839
841
|
</td>
|
@@ -844,7 +846,7 @@ physics engine.</p>
|
|
844
846
|
<div class="method_details ">
|
845
847
|
<h3 class="signature " id="on_touch_begin-instance_method">
|
846
848
|
|
847
|
-
|
849
|
+
#<strong>on_touch_begin</strong> {|Events::Touch| ... } ⇒ <tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>
|
848
850
|
|
849
851
|
|
850
852
|
|
@@ -903,10 +905,10 @@ physics engine.</p>
|
|
903
905
|
<pre class="lines">
|
904
906
|
|
905
907
|
|
906
|
-
|
908
|
+
576</pre>
|
907
909
|
</td>
|
908
910
|
<td>
|
909
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
911
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 576</span>
|
910
912
|
|
911
913
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_touch_begin'>on_touch_begin</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
912
914
|
</td>
|
@@ -917,7 +919,7 @@ physics engine.</p>
|
|
917
919
|
<div class="method_details ">
|
918
920
|
<h3 class="signature " id="on_touch_cancel-instance_method">
|
919
921
|
|
920
|
-
|
922
|
+
#<strong>on_touch_cancel</strong> {|Events::Touch| ... } ⇒ <tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>
|
921
923
|
|
922
924
|
|
923
925
|
|
@@ -976,10 +978,10 @@ physics engine.</p>
|
|
976
978
|
<pre class="lines">
|
977
979
|
|
978
980
|
|
979
|
-
|
981
|
+
594</pre>
|
980
982
|
</td>
|
981
983
|
<td>
|
982
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
984
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 594</span>
|
983
985
|
|
984
986
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_touch_cancel'>on_touch_cancel</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
985
987
|
</td>
|
@@ -990,7 +992,7 @@ physics engine.</p>
|
|
990
992
|
<div class="method_details ">
|
991
993
|
<h3 class="signature " id="on_touch_end-instance_method">
|
992
994
|
|
993
|
-
|
995
|
+
#<strong>on_touch_end</strong> {|Events::Touch| ... } ⇒ <tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>
|
994
996
|
|
995
997
|
|
996
998
|
|
@@ -1049,10 +1051,10 @@ physics engine.</p>
|
|
1049
1051
|
<pre class="lines">
|
1050
1052
|
|
1051
1053
|
|
1052
|
-
|
1054
|
+
582</pre>
|
1053
1055
|
</td>
|
1054
1056
|
<td>
|
1055
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1057
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 582</span>
|
1056
1058
|
|
1057
1059
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_touch_end'>on_touch_end</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1058
1060
|
</td>
|
@@ -1063,7 +1065,7 @@ physics engine.</p>
|
|
1063
1065
|
<div class="method_details ">
|
1064
1066
|
<h3 class="signature " id="on_touch_move-instance_method">
|
1065
1067
|
|
1066
|
-
|
1068
|
+
#<strong>on_touch_move</strong> {|Events::Touch| ... } ⇒ <tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>
|
1067
1069
|
|
1068
1070
|
|
1069
1071
|
|
@@ -1122,10 +1124,10 @@ physics engine.</p>
|
|
1122
1124
|
<pre class="lines">
|
1123
1125
|
|
1124
1126
|
|
1125
|
-
|
1127
|
+
588</pre>
|
1126
1128
|
</td>
|
1127
1129
|
<td>
|
1128
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1130
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 588</span>
|
1129
1131
|
|
1130
1132
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_touch_move'>on_touch_move</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1131
1133
|
</td>
|
@@ -1136,7 +1138,7 @@ physics engine.</p>
|
|
1136
1138
|
<div class="method_details ">
|
1137
1139
|
<h3 class="signature " id="schedule-instance_method">
|
1138
1140
|
|
1139
|
-
|
1141
|
+
#<strong>schedule</strong>(delay, repeat = 0, interval = 0) {|Float| ... } ⇒ <tt>String</tt>
|
1140
1142
|
|
1141
1143
|
|
1142
1144
|
|
@@ -1252,10 +1254,10 @@ needed.</p>
|
|
1252
1254
|
<pre class="lines">
|
1253
1255
|
|
1254
1256
|
|
1255
|
-
|
1257
|
+
561</pre>
|
1256
1258
|
</td>
|
1257
1259
|
<td>
|
1258
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1260
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 561</span>
|
1259
1261
|
|
1260
1262
|
<span class='kw'>def</span> <span class='id identifier rubyid_schedule'>schedule</span><span class='lparen'>(</span><span class='id identifier rubyid_delay'>delay</span><span class='comma'>,</span> <span class='id identifier rubyid_repeat'>repeat</span><span class='op'>=</span><span class='int'>0</span><span class='comma'>,</span> <span class='id identifier rubyid_interval'>interval</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1261
1263
|
</td>
|
@@ -1266,7 +1268,7 @@ needed.</p>
|
|
1266
1268
|
<div class="method_details ">
|
1267
1269
|
<h3 class="signature " id="start_update-instance_method">
|
1268
1270
|
|
1269
|
-
|
1271
|
+
#<strong>start_update</strong> ⇒ <tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>
|
1270
1272
|
|
1271
1273
|
|
1272
1274
|
|
@@ -1308,10 +1310,10 @@ this object for every frame.</p>
|
|
1308
1310
|
<pre class="lines">
|
1309
1311
|
|
1310
1312
|
|
1311
|
-
|
1313
|
+
539</pre>
|
1312
1314
|
</td>
|
1313
1315
|
<td>
|
1314
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1316
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 539</span>
|
1315
1317
|
|
1316
1318
|
<span class='kw'>def</span> <span class='id identifier rubyid_start_update'>start_update</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1317
1319
|
</td>
|
@@ -1322,7 +1324,7 @@ this object for every frame.</p>
|
|
1322
1324
|
<div class="method_details ">
|
1323
1325
|
<h3 class="signature " id="stop_update-instance_method">
|
1324
1326
|
|
1325
|
-
|
1327
|
+
#<strong>stop_update</strong> ⇒ <tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>
|
1326
1328
|
|
1327
1329
|
|
1328
1330
|
|
@@ -1364,10 +1366,10 @@ called on this object.</p>
|
|
1364
1366
|
<pre class="lines">
|
1365
1367
|
|
1366
1368
|
|
1367
|
-
|
1369
|
+
544</pre>
|
1368
1370
|
</td>
|
1369
1371
|
<td>
|
1370
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1372
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 544</span>
|
1371
1373
|
|
1372
1374
|
<span class='kw'>def</span> <span class='id identifier rubyid_stop_update'>stop_update</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1373
1375
|
</td>
|
@@ -1378,7 +1380,7 @@ called on this object.</p>
|
|
1378
1380
|
<div class="method_details ">
|
1379
1381
|
<h3 class="signature " id="unschedule-instance_method">
|
1380
1382
|
|
1381
|
-
|
1383
|
+
#<strong>unschedule</strong>(key) ⇒ <tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>
|
1382
1384
|
|
1383
1385
|
|
1384
1386
|
|
@@ -1439,10 +1441,10 @@ called on this object.</p>
|
|
1439
1441
|
<pre class="lines">
|
1440
1442
|
|
1441
1443
|
|
1442
|
-
|
1444
|
+
567</pre>
|
1443
1445
|
</td>
|
1444
1446
|
<td>
|
1445
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1447
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 567</span>
|
1446
1448
|
|
1447
1449
|
<span class='kw'>def</span> <span class='id identifier rubyid_unschedule'>unschedule</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1448
1450
|
</td>
|
@@ -1453,7 +1455,7 @@ called on this object.</p>
|
|
1453
1455
|
<div class="method_details ">
|
1454
1456
|
<h3 class="signature " id="update-instance_method">
|
1455
1457
|
|
1456
|
-
|
1458
|
+
#<strong>update</strong>(delta) ⇒ <tt><span class='object_link'><a href="" title="MG::Scene (class)">Scene</a></span></tt>
|
1457
1459
|
|
1458
1460
|
|
1459
1461
|
|
@@ -1516,10 +1518,10 @@ this method was called.</p>
|
|
1516
1518
|
<pre class="lines">
|
1517
1519
|
|
1518
1520
|
|
1519
|
-
|
1521
|
+
551</pre>
|
1520
1522
|
</td>
|
1521
1523
|
<td>
|
1522
|
-
<pre class="code"><span class="info file"># File 'motion-game', line
|
1524
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 551</span>
|
1523
1525
|
|
1524
1526
|
<span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='id identifier rubyid_delta'>delta</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1525
1527
|
</td>
|
@@ -1531,11 +1533,12 @@ this method was called.</p>
|
|
1531
1533
|
|
1532
1534
|
</div>
|
1533
1535
|
|
1534
|
-
|
1535
|
-
Generated on
|
1536
|
+
<div id="footer">
|
1537
|
+
Generated on Sun Nov 27 15:52:19 2016 by
|
1536
1538
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1537
|
-
0.
|
1539
|
+
0.9.5 (ruby-2.3.3).
|
1538
1540
|
</div>
|
1539
1541
|
|
1542
|
+
</div>
|
1540
1543
|
</body>
|
1541
1544
|
</html>
|