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.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/build/android/armeabi/libmotion-cocos.a +0 -0
  3. data/build/android/motion-cocos.jar +0 -0
  4. data/build/android/x86/libmotion-cocos.a +0 -0
  5. data/build/ios/libmotion-cocos.a +0 -0
  6. data/build/tvos/libmotion-cocos.a +0 -0
  7. data/doc/MG.html +40 -38
  8. data/doc/MG/Action.html +402 -0
  9. data/doc/MG/Animate.html +281 -0
  10. data/doc/MG/Application.html +55 -52
  11. data/doc/MG/Audio.html +96 -93
  12. data/doc/MG/Blink.html +257 -0
  13. data/doc/MG/Button.html +82 -79
  14. data/doc/MG/Color.html +70 -67
  15. data/doc/MG/DelayTime.html +239 -0
  16. data/doc/MG/Director.html +256 -95
  17. data/doc/MG/Draw.html +67 -64
  18. data/doc/MG/Events.html +39 -37
  19. data/doc/MG/Events/Acceleration.html +70 -67
  20. data/doc/MG/Events/Touch.html +52 -49
  21. data/doc/MG/FadeIn.html +240 -0
  22. data/doc/MG/FadeOut.html +240 -0
  23. data/doc/MG/FadeTo.html +256 -0
  24. data/doc/MG/File.html +50 -47
  25. data/doc/MG/Follow.html +241 -0
  26. data/doc/MG/JumpBy.html +292 -0
  27. data/doc/MG/JumpTo.html +287 -0
  28. data/doc/MG/Layout.html +70 -67
  29. data/doc/MG/List.html +88 -85
  30. data/doc/MG/Menu.html +65 -62
  31. data/doc/MG/MoveBy.html +259 -0
  32. data/doc/MG/MoveTo.html +257 -0
  33. data/doc/MG/Node.html +393 -133
  34. data/doc/MG/Parallax.html +51 -48
  35. data/doc/MG/Particle.html +118 -115
  36. data/doc/MG/Point.html +67 -64
  37. data/doc/MG/Repeat.html +257 -0
  38. data/doc/MG/RepeatForever.html +239 -0
  39. data/doc/MG/RotateBy.html +259 -0
  40. data/doc/MG/RotateTo.html +257 -0
  41. data/doc/MG/ScaleBy.html +255 -0
  42. data/doc/MG/ScaleTo.html +255 -0
  43. data/doc/MG/Scene.html +110 -107
  44. data/doc/MG/Scroll.html +70 -67
  45. data/doc/MG/Sequence.html +241 -0
  46. data/doc/MG/Size.html +75 -72
  47. data/doc/MG/SkewBy.html +273 -0
  48. data/doc/MG/SkewTo.html +273 -0
  49. data/doc/MG/Slider.html +58 -55
  50. data/doc/MG/Spawn.html +239 -0
  51. data/doc/MG/Speed.html +259 -0
  52. data/doc/MG/Sprite.html +547 -144
  53. data/doc/MG/Text.html +94 -91
  54. data/doc/MG/TintBy.html +272 -0
  55. data/doc/MG/TintTo.html +274 -0
  56. data/doc/MG/Web.html +77 -74
  57. data/doc/MG/Widget.html +70 -67
  58. data/doc/_index.html +223 -33
  59. data/doc/class_list.html +24 -31
  60. data/doc/css/full_list.css +32 -31
  61. data/doc/css/style.css +220 -78
  62. data/doc/file.README.html +29 -30
  63. data/doc/file_list.html +26 -30
  64. data/doc/frames.html +7 -16
  65. data/doc/index.html +29 -30
  66. data/doc/js/app.js +100 -76
  67. data/doc/js/full_list.js +170 -135
  68. data/doc/method_list.html +1096 -500
  69. data/doc/top-level-namespace.html +35 -35
  70. data/lib/motion-game/android/main_activity.rb +21 -0
  71. data/lib/motion-game/ios/app_delegate.rb +14 -0
  72. data/lib/motion-game/tvos/app_delegate.rb +16 -0
  73. data/template/motion-game/files/app/application.rb +8 -0
  74. metadata +28 -4
@@ -1,12 +1,12 @@
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">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
7
  Top Level Namespace
8
8
 
9
- &mdash; Documentation by YARD 0.8.7.6
9
+ &mdash; 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
- hasFrames = window.top.frames.main ? true : false;
18
+ pathId = "";
19
19
  relpath = '';
20
- framesUrl = "frames.html#!top-level-namespace.html";
21
20
  </script>
22
21
 
23
22
 
@@ -28,58 +27,58 @@
28
27
 
29
28
  </head>
30
29
  <body>
31
- <div id="header">
32
- <div id="menu">
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</a> &raquo;
35
40
 
36
41
 
37
42
  <span class="title">Top Level Namespace</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
- <div id="search">
46
+ <div id="search">
44
47
 
45
48
  <a class="full_list_link" id="class_list_link"
46
49
  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
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
- <div class="clear"></div>
62
- </div>
59
+ <div class="clear"></div>
60
+ </div>
63
61
 
64
- <iframe id="search_frame"></iframe>
62
+ <iframe id="search_frame" src="class_list.html"></iframe>
65
63
 
66
- <div id="content"><h1>Top Level Namespace
64
+ <div id="content"><h1>Top Level Namespace
67
65
 
68
66
 
69
67
 
70
68
  </h1>
69
+ <div class="box_info">
70
+
71
71
 
72
- <dl class="box">
73
72
 
74
73
 
75
-
76
74
 
77
-
78
75
 
79
76
 
77
+
78
+
79
+
80
80
 
81
- </dl>
82
- <div class="clear"></div>
81
+ </div>
83
82
 
84
83
  <h2>Defined Under Namespace</h2>
85
84
  <p class="children">
@@ -102,11 +101,12 @@
102
101
 
103
102
  </div>
104
103
 
105
- <div id="footer">
106
- Generated on Wed Aug 31 17:59:07 2016 by
104
+ <div id="footer">
105
+ Generated on Sun Nov 27 15:52:18 2016 by
107
106
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
- 0.8.7.6 (ruby-2.3.1).
107
+ 0.9.5 (ruby-2.3.3).
109
108
  </div>
110
109
 
110
+ </div>
111
111
  </body>
112
112
  </html>
@@ -1,2 +1,23 @@
1
1
  class MainActivity < Org::Cocos2dx::Lib::Cocos2dxActivity
2
+ def onResume
3
+ super
4
+ if @called_first_resume
5
+ # ignore onResume calling when launched app to call :resume method as well as iOS/tvOS platform
6
+ director = MG::Director.shared
7
+ director.resume
8
+ director.start_animation
9
+ app = MG::Application.shared
10
+ app.send(:resume) if app.respond_to?(:resume)
11
+ end
12
+ @called_first_resume = true
13
+ end
14
+
15
+ def onPause
16
+ super
17
+ director = MG::Director.shared
18
+ director.pause
19
+ director.stop_animation
20
+ app = MG::Application.shared
21
+ app.send(:pause) if app.respond_to?(:pause)
22
+ end
2
23
  end
@@ -17,4 +17,18 @@ class AppDelegate
17
17
 
18
18
  true
19
19
  end
20
+
21
+ def applicationWillEnterForeground(application)
22
+ director = MG::Director.shared
23
+ director.resume
24
+ director.start_animation
25
+ @app.resume if @app.respond_to?(:resume)
26
+ end
27
+
28
+ def applicationWillResignActive(application)
29
+ director = MG::Director.shared
30
+ director.pause
31
+ director.stop_animation
32
+ @app.send(:pause) if @app.respond_to?(:pause)
33
+ end
20
34
  end
@@ -17,4 +17,20 @@ class AppDelegate
17
17
 
18
18
  true
19
19
  end
20
+
21
+ def applicationWillEnterForeground(application)
22
+ director = MG::Director.shared
23
+ director.resume
24
+ director.start_animation
25
+ app = MG::Application.shared
26
+ @app.resume if @app.respond_to?(:resume)
27
+ end
28
+
29
+ def applicationWillResignActive(application)
30
+ director = MG::Director.shared
31
+ director.pause
32
+ director.stop_animation
33
+ app = MG::Application.shared
34
+ @app.send(:pause) if @app.respond_to?(:pause)
35
+ end
20
36
  end
@@ -2,4 +2,12 @@ class Application < MG::Application
2
2
  def start
3
3
  MG::Director.shared.run(MainScene.new)
4
4
  end
5
+
6
+ def resume
7
+ # Will be called when app will move to active state from background.
8
+ end
9
+
10
+ def pause
11
+ # Will be called when app will move to background from active state.
12
+ end
5
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-game
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - HipByte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-31 00:00:00.000000000 Z
11
+ date: 2016-11-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: motion-game allows you to write cross-platform native mobile games in
14
14
  Ruby.
@@ -61,29 +61,54 @@ files:
61
61
  - build/tvos/libtiff.a
62
62
  - build/tvos/libwebp.a
63
63
  - doc/MG.html
64
+ - doc/MG/Action.html
65
+ - doc/MG/Animate.html
64
66
  - doc/MG/Application.html
65
67
  - doc/MG/Audio.html
68
+ - doc/MG/Blink.html
66
69
  - doc/MG/Button.html
67
70
  - doc/MG/Color.html
71
+ - doc/MG/DelayTime.html
68
72
  - doc/MG/Director.html
69
73
  - doc/MG/Draw.html
70
74
  - doc/MG/Events.html
71
75
  - doc/MG/Events/Acceleration.html
72
76
  - doc/MG/Events/Touch.html
77
+ - doc/MG/FadeIn.html
78
+ - doc/MG/FadeOut.html
79
+ - doc/MG/FadeTo.html
73
80
  - doc/MG/File.html
81
+ - doc/MG/Follow.html
82
+ - doc/MG/JumpBy.html
83
+ - doc/MG/JumpTo.html
74
84
  - doc/MG/Layout.html
75
85
  - doc/MG/List.html
76
86
  - doc/MG/Menu.html
87
+ - doc/MG/MoveBy.html
88
+ - doc/MG/MoveTo.html
77
89
  - doc/MG/Node.html
78
90
  - doc/MG/Parallax.html
79
91
  - doc/MG/Particle.html
80
92
  - doc/MG/Point.html
93
+ - doc/MG/Repeat.html
94
+ - doc/MG/RepeatForever.html
95
+ - doc/MG/RotateBy.html
96
+ - doc/MG/RotateTo.html
97
+ - doc/MG/ScaleBy.html
98
+ - doc/MG/ScaleTo.html
81
99
  - doc/MG/Scene.html
82
100
  - doc/MG/Scroll.html
101
+ - doc/MG/Sequence.html
83
102
  - doc/MG/Size.html
103
+ - doc/MG/SkewBy.html
104
+ - doc/MG/SkewTo.html
84
105
  - doc/MG/Slider.html
106
+ - doc/MG/Spawn.html
107
+ - doc/MG/Speed.html
85
108
  - doc/MG/Sprite.html
86
109
  - doc/MG/Text.html
110
+ - doc/MG/TintBy.html
111
+ - doc/MG/TintTo.html
87
112
  - doc/MG/Web.html
88
113
  - doc/MG/Widget.html
89
114
  - doc/_index.html
@@ -142,9 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
167
  version: '0'
143
168
  requirements: []
144
169
  rubyforge_project:
145
- rubygems_version: 2.5.1
170
+ rubygems_version: 2.5.2
146
171
  signing_key:
147
172
  specification_version: 4
148
173
  summary: Cross-platform mobile game engine for RubyMotion
149
174
  test_files: []
150
- has_rdoc: