dxopal 1.5.2 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/DEVELOPMENT.md +4 -4
  4. data/Gemfile +0 -1
  5. data/Gemfile.lock +22 -24
  6. data/README.md +4 -0
  7. data/Rakefile +6 -1
  8. data/build/dxopal.js +48950 -38847
  9. data/build/dxopal.min.js +1 -1
  10. data/config.ru +1 -1
  11. data/doc/api/DXOpal/Constants/Colors.html +4 -4
  12. data/doc/api/DXOpal/Constants.html +4 -4
  13. data/doc/api/DXOpal/Font.html +4 -4
  14. data/doc/api/DXOpal/Image.html +19 -19
  15. data/doc/api/DXOpal/Input/KeyCodes.html +6 -6
  16. data/doc/api/DXOpal/Input/MouseCodes.html +4 -4
  17. data/doc/api/DXOpal/Input/Touch.html +47 -47
  18. data/doc/api/DXOpal/Input.html +87 -81
  19. data/doc/api/DXOpal/RemoteResource.html +164 -33
  20. data/doc/api/DXOpal/Sound.html +22 -16
  21. data/doc/api/DXOpal/SoundEffect/WaveTypes.html +4 -4
  22. data/doc/api/DXOpal/SoundEffect.html +6 -6
  23. data/doc/api/DXOpal/Sprite/CollisionArea/Base.html +5 -5
  24. data/doc/api/DXOpal/Sprite/CollisionArea/Circle.html +4 -4
  25. data/doc/api/DXOpal/Sprite/CollisionArea/Point.html +4 -4
  26. data/doc/api/DXOpal/Sprite/CollisionArea/Rect.html +4 -4
  27. data/doc/api/DXOpal/Sprite/CollisionArea/Triangle.html +4 -4
  28. data/doc/api/DXOpal/Sprite/CollisionArea.html +4 -4
  29. data/doc/api/DXOpal/Sprite/CollisionCheck/ClassMethods.html +7 -7
  30. data/doc/api/DXOpal/Sprite/CollisionCheck.html +8 -8
  31. data/doc/api/DXOpal/Sprite/Physics.html +4 -4
  32. data/doc/api/DXOpal/Sprite.html +10 -10
  33. data/doc/api/DXOpal/Window.html +120 -114
  34. data/doc/api/DXOpal.html +5 -5
  35. data/doc/api/Kernel.html +4 -4
  36. data/doc/api/_index.html +5 -5
  37. data/doc/api/file.README.html +23 -20
  38. data/doc/api/frames.html +10 -5
  39. data/doc/api/index.html +23 -20
  40. data/doc/api/method_list.html +214 -206
  41. data/doc/api/top-level-namespace.html +4 -4
  42. data/lib/dxopal/input.rb +5 -2
  43. data/lib/dxopal/remote_resource.rb +33 -1
  44. data/lib/dxopal/sound.rb +5 -2
  45. data/lib/dxopal/version.rb +1 -1
  46. data/lib/dxopal/window.rb +6 -3
  47. data/lib/dxopal.rb +1 -0
  48. metadata +3 -3
data/doc/api/DXOpal.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: DXOpal
8
8
 
9
- &mdash; Documentation by YARD 0.9.26
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -109,7 +109,7 @@
109
109
  <dt id="VERSION-constant" class="">VERSION =
110
110
 
111
111
  </dt>
112
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.5.2</span><span class='tstring_end'>&quot;</span></span></pre></dd>
112
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.6.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
113
113
 
114
114
  </dl>
115
115
 
@@ -125,9 +125,9 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Tue Dec 29 11:37:22 2020 by
129
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
- 0.9.26 (ruby-2.7.0).
128
+ Generated on Tue Jul 9 22:42:33 2024 by
129
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
+ 0.9.36 (ruby-3.2.2).
131
131
  </div>
132
132
 
133
133
  </div>
data/doc/api/Kernel.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Kernel
8
8
 
9
- &mdash; Documentation by YARD 0.9.26
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -121,9 +121,9 @@
121
121
  </div>
122
122
 
123
123
  <div id="footer">
124
- Generated on Tue Dec 29 11:37:23 2020 by
125
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
- 0.9.26 (ruby-2.7.0).
124
+ Generated on Tue Jul 9 22:42:34 2024 by
125
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
+ 0.9.36 (ruby-3.2.2).
127
127
  </div>
128
128
 
129
129
  </div>
data/doc/api/_index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>
7
- Documentation by YARD 0.9.26
7
+ Documentation by YARD 0.9.36
8
8
 
9
9
  </title>
10
10
 
@@ -52,7 +52,7 @@
52
52
  <div class="clear"></div>
53
53
  </div>
54
54
 
55
- <div id="content"><h1 class="noborder title">Documentation by YARD 0.9.26</h1>
55
+ <div id="content"><h1 class="noborder title">Documentation by YARD 0.9.36</h1>
56
56
  <div id="listing">
57
57
  <h1 class="alphaindex">Alphabetic Index</h1>
58
58
 
@@ -356,9 +356,9 @@
356
356
  </div>
357
357
 
358
358
  <div id="footer">
359
- Generated on Tue Dec 29 11:37:22 2020 by
360
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
361
- 0.9.26 (ruby-2.7.0).
359
+ Generated on Tue Jul 9 22:42:33 2024 by
360
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
361
+ 0.9.36 (ruby-3.2.2).
362
362
  </div>
363
363
 
364
364
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.9.26
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -57,37 +57,40 @@
57
57
  <div class="clear"></div>
58
58
  </div>
59
59
 
60
- <div id="content"><div id='filecontents'>
61
- <h1 id="label-DXOpal">DXOpal</h1>
60
+ <div id="content"><div id='filecontents'><h1 id="dxopal">DXOpal</h1>
62
61
 
63
- <p>Game development framework for <a href="https://opalrb.com/">Opal</a>, has similar API to <a href="http://dxruby.osdn.jp/">DXRuby</a></p>
62
+ <p>Game development framework for <a href="https://opalrb.com/">Opal</a>,
63
+ has similar API to <a href="http://dxruby.osdn.jp/">DXRuby</a></p>
64
64
 
65
- <h2 id="label-How+to+use">How to use</h2>
65
+ <h2 id="how-to-use">How to use</h2>
66
66
 
67
- <p>see <a href="https://yhara.github.io/dxopal">yhara.github.io/dxopal</a>/</p>
67
+ <p>see <a href="https://yhara.github.io/dxopal/">https://yhara.github.io/dxopal/</a></p>
68
68
 
69
- <h2 id="label-License">License</h2>
69
+ <h2 id="development">Development</h2>
70
+
71
+ <p>see DEVELOPMENT.md</p>
72
+
73
+ <h2 id="license">License</h2>
70
74
 
71
75
  <p>MIT (including images and sounds under examples/)</p>
72
76
 
73
- <h2 id="label-Acknowledgements">Acknowledgements</h2>
74
- <ul><li>
75
- <p><a href="https://opalrb.com/">Opal</a></p>
76
- </li><li>
77
- <p><a href="http://dxruby.osdn.jp/">DXRuby</a></p>
78
- </li><li>
79
- <p><a href="https://www.bfxr.net/">Bxfr</a> examples/apple_catcher/sounds/Explosion2.wav is made by this</p>
80
- </li></ul>
77
+ <h2 id="acknowledgements">Acknowledgements</h2>
78
+
79
+ <ul>
80
+ <li><a href="https://opalrb.com/">Opal</a></li>
81
+ <li><a href="http://dxruby.osdn.jp/">DXRuby</a></li>
82
+ <li><a href="https://www.bfxr.net/">Bxfr</a> examples/apple_catcher/sounds/Explosion2.wav is made by this</li>
83
+ </ul>
81
84
 
82
- <h2 id="label-Contact">Contact</h2>
85
+ <h2 id="contact">Contact</h2>
83
86
 
84
- <p><a href="https://github.com/yhara/dxopal">github.com/yhara/dxopal</a></p>
87
+ <p><a href="https://github.com/yhara/dxopal">https://github.com/yhara/dxopal</a></p>
85
88
  </div></div>
86
89
 
87
90
  <div id="footer">
88
- Generated on Tue Dec 29 11:37:22 2020 by
89
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
90
- 0.9.26 (ruby-2.7.0).
91
+ Generated on Tue Jul 9 22:42:33 2024 by
92
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
93
+ 0.9.36 (ruby-3.2.2).
91
94
  </div>
92
95
 
93
96
  </div>
data/doc/api/frames.html CHANGED
@@ -2,13 +2,18 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8">
5
- <title>Documentation by YARD 0.9.26</title>
5
+ <title>Documentation by YARD 0.9.36</title>
6
6
  </head>
7
7
  <script type="text/javascript">
8
- var match = unescape(window.location.hash).match(/^#!(.+)/);
9
- var name = match ? match[1] : 'index.html';
10
- name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
11
- window.top.location = name;
8
+ var mainUrl = 'index.html';
9
+ try {
10
+ var match = decodeURIComponent(window.location.hash).match(/^#!(.+)/);
11
+ var name = match ? match[1] : mainUrl;
12
+ var url = new URL(name, location.href);
13
+ window.top.location.replace(url.origin === location.origin ? name : mainUrl);
14
+ } catch (e) {
15
+ window.top.location.replace(mainUrl);
16
+ }
12
17
  </script>
13
18
  <noscript>
14
19
  <h1>Oops!</h1>
data/doc/api/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Documentation by YARD 0.9.26
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -57,37 +57,40 @@
57
57
  <div class="clear"></div>
58
58
  </div>
59
59
 
60
- <div id="content"><div id='filecontents'>
61
- <h1 id="label-DXOpal">DXOpal</h1>
60
+ <div id="content"><div id='filecontents'><h1 id="dxopal">DXOpal</h1>
62
61
 
63
- <p>Game development framework for <a href="https://opalrb.com/">Opal</a>, has similar API to <a href="http://dxruby.osdn.jp/">DXRuby</a></p>
62
+ <p>Game development framework for <a href="https://opalrb.com/">Opal</a>,
63
+ has similar API to <a href="http://dxruby.osdn.jp/">DXRuby</a></p>
64
64
 
65
- <h2 id="label-How+to+use">How to use</h2>
65
+ <h2 id="how-to-use">How to use</h2>
66
66
 
67
- <p>see <a href="https://yhara.github.io/dxopal">yhara.github.io/dxopal</a>/</p>
67
+ <p>see <a href="https://yhara.github.io/dxopal/">https://yhara.github.io/dxopal/</a></p>
68
68
 
69
- <h2 id="label-License">License</h2>
69
+ <h2 id="development">Development</h2>
70
+
71
+ <p>see DEVELOPMENT.md</p>
72
+
73
+ <h2 id="license">License</h2>
70
74
 
71
75
  <p>MIT (including images and sounds under examples/)</p>
72
76
 
73
- <h2 id="label-Acknowledgements">Acknowledgements</h2>
74
- <ul><li>
75
- <p><a href="https://opalrb.com/">Opal</a></p>
76
- </li><li>
77
- <p><a href="http://dxruby.osdn.jp/">DXRuby</a></p>
78
- </li><li>
79
- <p><a href="https://www.bfxr.net/">Bxfr</a> examples/apple_catcher/sounds/Explosion2.wav is made by this</p>
80
- </li></ul>
77
+ <h2 id="acknowledgements">Acknowledgements</h2>
78
+
79
+ <ul>
80
+ <li><a href="https://opalrb.com/">Opal</a></li>
81
+ <li><a href="http://dxruby.osdn.jp/">DXRuby</a></li>
82
+ <li><a href="https://www.bfxr.net/">Bxfr</a> examples/apple_catcher/sounds/Explosion2.wav is made by this</li>
83
+ </ul>
81
84
 
82
- <h2 id="label-Contact">Contact</h2>
85
+ <h2 id="contact">Contact</h2>
83
86
 
84
- <p><a href="https://github.com/yhara/dxopal">github.com/yhara/dxopal</a></p>
87
+ <p><a href="https://github.com/yhara/dxopal">https://github.com/yhara/dxopal</a></p>
85
88
  </div></div>
86
89
 
87
90
  <div id="footer">
88
- Generated on Tue Dec 29 11:37:22 2020 by
89
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
90
- 0.9.26 (ruby-2.7.0).
91
+ Generated on Tue Jul 9 22:42:33 2024 by
92
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
93
+ 0.9.36 (ruby-3.2.2).
91
94
  </div>
92
95
 
93
96
  </div>