dxopal 1.5.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/DEVELOPMENT.md +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +23 -25
- data/README.md +7 -3
- data/Rakefile +8 -15
- data/build/dxopal.js +57670 -40007
- data/build/dxopal.min.js +1 -1
- data/config.ru +1 -1
- data/doc/api/DXOpal/Constants/Colors.html +172 -0
- data/doc/api/DXOpal/Constants.html +115 -0
- data/doc/api/DXOpal/Font.html +72 -18
- data/doc/api/DXOpal/Image.html +902 -409
- data/doc/api/DXOpal/Input/KeyCodes.html +986 -0
- data/doc/api/DXOpal/Input/MouseCodes.html +8 -8
- data/doc/api/DXOpal/Input/Touch.html +834 -0
- data/doc/api/DXOpal/Input.html +833 -104
- data/doc/api/DXOpal/RemoteResource.html +170 -41
- data/doc/api/DXOpal/Sound.html +33 -27
- data/doc/api/DXOpal/SoundEffect/WaveTypes.html +8 -8
- data/doc/api/DXOpal/SoundEffect.html +13 -15
- data/doc/api/DXOpal/Sprite/CollisionArea/Base.html +649 -0
- data/doc/api/DXOpal/Sprite/CollisionArea/Circle.html +656 -0
- data/doc/api/DXOpal/Sprite/CollisionArea/Point.html +448 -0
- data/doc/api/DXOpal/Sprite/CollisionArea/Rect.html +549 -0
- data/doc/api/DXOpal/Sprite/CollisionArea/Triangle.html +423 -0
- data/doc/api/DXOpal/Sprite/CollisionArea.html +126 -0
- data/doc/api/DXOpal/Sprite/CollisionCheck/ClassMethods.html +268 -0
- data/doc/api/DXOpal/Sprite/CollisionCheck.html +926 -0
- data/doc/api/DXOpal/Sprite/Physics.html +426 -0
- data/doc/api/DXOpal/Sprite.html +522 -45
- data/doc/api/DXOpal/Window.html +245 -156
- data/doc/api/DXOpal.html +11 -11
- data/doc/api/Kernel.html +131 -0
- data/doc/api/_index.html +277 -5
- data/doc/api/class_list.html +1 -1
- data/doc/api/css/style.css +1 -0
- data/doc/api/file.README.html +23 -22
- data/doc/api/frames.html +10 -5
- data/doc/api/index.html +23 -22
- data/doc/api/method_list.html +1608 -0
- data/doc/api/top-level-namespace.html +155 -4
- data/lib/dxopal/input.rb +9 -4
- data/lib/dxopal/remote_resource.rb +33 -1
- data/lib/dxopal/sound.rb +5 -2
- data/lib/dxopal/version.rb +1 -1
- data/lib/dxopal/window.rb +6 -3
- data/lib/dxopal.rb +1 -0
- metadata +21 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35aa09bed1a5200defa559e412f39edd8b91c072f1d439fec01026d0ff586e4a
|
4
|
+
data.tar.gz: 3f07dfc87316d529a07d9e0dda3cba7cb6fad2495d7794160497f77d1249d076
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f232b0edc56eb64710722443a8092916ab658202ff625cdcbfb365f023de0b984b689570c3f9ab45c679f0b5ffc7d837f09e06fd8c860ac78d79df5231811f2c
|
7
|
+
data.tar.gz: 72bdc8e96b9a8fa420fdc1a2b7da8cd114c32fd4e7bbb241b94efeb2a0832a66abe22d23cf7e96b092ffda56ababdc95ed23576463b0f84a0f79f688ed9f82c6
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
## v1.6.0 (2024-07-09)
|
2
|
+
|
3
|
+
- Upgrade Opal to 1.8.2 (#53)
|
4
|
+
- feat: "Now Loading" (#54)
|
5
|
+
- feat: `Sound#play(true)` to enable looping (#51)
|
6
|
+
- fix: NameError with newer Opal (#46)
|
7
|
+
|
8
|
+
## v1.5.2 (2020-12-29)
|
9
|
+
|
10
|
+
- Upgrade opal to 1.0 (#37)
|
11
|
+
- fix: `mouse_release?` returns wrong value (#44)
|
12
|
+
|
1
13
|
## v1.5.1 (2020-02-01)
|
2
14
|
|
3
15
|
- fix: Image#[]= was broken since 1.4.0 (#35)
|
data/DEVELOPMENT.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
## Prerequisites
|
4
4
|
|
5
|
-
- Ruby (tested with 2.
|
5
|
+
- Ruby (tested with 3.2.2)
|
6
6
|
- Node.js (to minify .js)
|
7
7
|
|
8
8
|
## Setup
|
@@ -11,8 +11,8 @@
|
|
11
11
|
$ git clone https://github.com/yhara/dxopal
|
12
12
|
$ cd dxopal
|
13
13
|
$ bundle install
|
14
|
-
$ npm install
|
15
|
-
$
|
14
|
+
$ npm install terser -g
|
15
|
+
$ rake server
|
16
16
|
$ open http://localhost:9292/
|
17
17
|
```
|
18
18
|
|
@@ -28,7 +28,7 @@ $ git clone https://github.com/yhara/dxopal-starter-kit
|
|
28
28
|
$ rake build
|
29
29
|
$ rake build_min # Build and minify
|
30
30
|
|
31
|
-
(If some error is printed by build_min, make sure you have installed
|
31
|
+
(If some error is printed by build_min, make sure you have installed terser)
|
32
32
|
|
33
33
|
## Documents
|
34
34
|
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,50 +1,48 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
dxopal (1.
|
4
|
+
dxopal (1.6.0)
|
5
5
|
rack (~> 2.0)
|
6
6
|
thor (~> 0.20)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
ast (2.4.
|
12
|
-
concurrent-ruby (1.
|
13
|
-
|
14
|
-
|
15
|
-
opal (0.11.4)
|
11
|
+
ast (2.4.2)
|
12
|
+
concurrent-ruby (1.3.3)
|
13
|
+
nio4r (2.7.3)
|
14
|
+
opal (1.8.2)
|
16
15
|
ast (>= 2.3.0)
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
opal (~> 0.11.0)
|
22
|
-
sprockets (~> 3.7)
|
16
|
+
parser (~> 3.0, >= 3.0.3.2)
|
17
|
+
opal-sprockets (1.0.3)
|
18
|
+
opal (>= 1.0, < 2.0)
|
19
|
+
sprockets (~> 4.0)
|
23
20
|
tilt (>= 1.4)
|
24
|
-
parser (
|
25
|
-
ast (~> 2.
|
26
|
-
|
21
|
+
parser (3.3.3.0)
|
22
|
+
ast (~> 2.4.1)
|
23
|
+
racc
|
24
|
+
puma (6.4.2)
|
27
25
|
nio4r (~> 2.0)
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
sprockets (
|
26
|
+
racc (1.8.0)
|
27
|
+
rack (2.2.9)
|
28
|
+
rake (13.2.1)
|
29
|
+
sprockets (4.2.1)
|
32
30
|
concurrent-ruby (~> 1.0)
|
33
|
-
rack (
|
31
|
+
rack (>= 2.2.4, < 4)
|
34
32
|
thor (0.20.3)
|
35
|
-
tilt (2.0
|
36
|
-
yard (0.9.
|
33
|
+
tilt (2.3.0)
|
34
|
+
yard (0.9.36)
|
37
35
|
|
38
36
|
PLATFORMS
|
39
|
-
|
37
|
+
arm64-darwin-21
|
40
38
|
|
41
39
|
DEPENDENCIES
|
42
40
|
dxopal!
|
43
|
-
opal
|
41
|
+
opal
|
44
42
|
opal-sprockets
|
45
43
|
puma
|
46
44
|
rake
|
47
45
|
yard
|
48
46
|
|
49
47
|
BUNDLED WITH
|
50
|
-
2.
|
48
|
+
2.4.13
|
data/README.md
CHANGED
@@ -1,21 +1,25 @@
|
|
1
1
|
# DXOpal
|
2
2
|
|
3
|
-
Game development framework for [Opal](
|
3
|
+
Game development framework for [Opal](https://opalrb.com/),
|
4
4
|
has similar API to [DXRuby](http://dxruby.osdn.jp/)
|
5
5
|
|
6
6
|
## How to use
|
7
7
|
|
8
8
|
see https://yhara.github.io/dxopal/
|
9
9
|
|
10
|
+
## Development
|
11
|
+
|
12
|
+
see DEVELOPMENT.md
|
13
|
+
|
10
14
|
## License
|
11
15
|
|
12
16
|
MIT (including images and sounds under examples/)
|
13
17
|
|
14
18
|
## Acknowledgements
|
15
19
|
|
16
|
-
- [Opal](
|
20
|
+
- [Opal](https://opalrb.com/)
|
17
21
|
- [DXRuby](http://dxruby.osdn.jp/)
|
18
|
-
- [Bxfr](
|
22
|
+
- [Bxfr](https://www.bfxr.net/) examples/apple_catcher/sounds/Explosion2.wav is made by this
|
19
23
|
|
20
24
|
## Contact
|
21
25
|
|
data/Rakefile
CHANGED
@@ -5,12 +5,10 @@ desc "Build dxopal.js"
|
|
5
5
|
task :build => ["build/dxopal.js"]
|
6
6
|
|
7
7
|
desc "Build dxopal.js and dxopal.min.js"
|
8
|
-
task :build_min =>
|
9
|
-
|
10
|
-
file "starter-kit/dxopal.min.js" => "build/dxopal.min.js" do |t| cp t.source, t.name end
|
8
|
+
task :build_min => "build/dxopal.min.js"
|
11
9
|
|
12
10
|
file "build/dxopal.min.js" => "build/dxopal.js" do |t|
|
13
|
-
sh "
|
11
|
+
sh "terser #{t.source} -o #{t.name}"
|
14
12
|
end
|
15
13
|
|
16
14
|
file "build/dxopal.js" => Dir["lib/**/*.rb"] do |t|
|
@@ -23,7 +21,12 @@ end
|
|
23
21
|
|
24
22
|
desc "Rebuild API reference"
|
25
23
|
task :api do
|
26
|
-
sh "yard doc -o doc/api/
|
24
|
+
sh "yard doc -o doc/api/ lib/**/*.rb lib/**/**/*.rb"
|
25
|
+
end
|
26
|
+
|
27
|
+
desc "Run server"
|
28
|
+
task :server do
|
29
|
+
sh "bundle exec rackup -p 9292"
|
27
30
|
end
|
28
31
|
|
29
32
|
desc "git ci, git tag and git push"
|
@@ -42,14 +45,4 @@ task :release do
|
|
42
45
|
sh "git tag '#{v}'"
|
43
46
|
sh "git push origin master --tags"
|
44
47
|
sh "gem push dxopal-#{DXOpal::VERSION}.gem"
|
45
|
-
|
46
|
-
#cd "starter-kit" do
|
47
|
-
# sh "git status"
|
48
|
-
# print "ok? [y/n] "
|
49
|
-
# if $stdin.gets.chomp == "y"
|
50
|
-
# sh "git ci dxopal.min.js -m 'v#{DXOpal::VERSION}'"
|
51
|
-
# sh "git tag 'v#{DXOpal::VERSION}'"
|
52
|
-
# sh "git push origin master --tags"
|
53
|
-
# end
|
54
|
-
#end
|
55
48
|
end
|