dxopal 1.5.1 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/DEVELOPMENT.md +4 -4
  4. data/Gemfile +1 -1
  5. data/Gemfile.lock +23 -25
  6. data/README.md +7 -3
  7. data/Rakefile +8 -15
  8. data/build/dxopal.js +57670 -40007
  9. data/build/dxopal.min.js +1 -1
  10. data/config.ru +1 -1
  11. data/doc/api/DXOpal/Constants/Colors.html +172 -0
  12. data/doc/api/DXOpal/Constants.html +115 -0
  13. data/doc/api/DXOpal/Font.html +72 -18
  14. data/doc/api/DXOpal/Image.html +902 -409
  15. data/doc/api/DXOpal/Input/KeyCodes.html +986 -0
  16. data/doc/api/DXOpal/Input/MouseCodes.html +8 -8
  17. data/doc/api/DXOpal/Input/Touch.html +834 -0
  18. data/doc/api/DXOpal/Input.html +833 -104
  19. data/doc/api/DXOpal/RemoteResource.html +170 -41
  20. data/doc/api/DXOpal/Sound.html +33 -27
  21. data/doc/api/DXOpal/SoundEffect/WaveTypes.html +8 -8
  22. data/doc/api/DXOpal/SoundEffect.html +13 -15
  23. data/doc/api/DXOpal/Sprite/CollisionArea/Base.html +649 -0
  24. data/doc/api/DXOpal/Sprite/CollisionArea/Circle.html +656 -0
  25. data/doc/api/DXOpal/Sprite/CollisionArea/Point.html +448 -0
  26. data/doc/api/DXOpal/Sprite/CollisionArea/Rect.html +549 -0
  27. data/doc/api/DXOpal/Sprite/CollisionArea/Triangle.html +423 -0
  28. data/doc/api/DXOpal/Sprite/CollisionArea.html +126 -0
  29. data/doc/api/DXOpal/Sprite/CollisionCheck/ClassMethods.html +268 -0
  30. data/doc/api/DXOpal/Sprite/CollisionCheck.html +926 -0
  31. data/doc/api/DXOpal/Sprite/Physics.html +426 -0
  32. data/doc/api/DXOpal/Sprite.html +522 -45
  33. data/doc/api/DXOpal/Window.html +245 -156
  34. data/doc/api/DXOpal.html +11 -11
  35. data/doc/api/Kernel.html +131 -0
  36. data/doc/api/_index.html +277 -5
  37. data/doc/api/class_list.html +1 -1
  38. data/doc/api/css/style.css +1 -0
  39. data/doc/api/file.README.html +23 -22
  40. data/doc/api/frames.html +10 -5
  41. data/doc/api/index.html +23 -22
  42. data/doc/api/method_list.html +1608 -0
  43. data/doc/api/top-level-namespace.html +155 -4
  44. data/lib/dxopal/input.rb +9 -4
  45. data/lib/dxopal/remote_resource.rb +33 -1
  46. data/lib/dxopal/sound.rb +5 -2
  47. data/lib/dxopal/version.rb +1 -1
  48. data/lib/dxopal/window.rb +6 -3
  49. data/lib/dxopal.rb +1 -0
  50. metadata +21 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 724d992e085c40ce591b590f21fa03b6f447c93b3bbbb759738074b39f25b777
4
- data.tar.gz: 0a437792c89316ce3d2c2961d156eb4ca396eef2d63eeef010952e5c5409820b
3
+ metadata.gz: 35aa09bed1a5200defa559e412f39edd8b91c072f1d439fec01026d0ff586e4a
4
+ data.tar.gz: 3f07dfc87316d529a07d9e0dda3cba7cb6fad2495d7794160497f77d1249d076
5
5
  SHA512:
6
- metadata.gz: 9cf8c08e93414280313d7a1ff7531061f41a6655f9b9edb1be47b90d9add04250f0c3ae2b40bbe66ef99ca355eec175f1adb94ce93a2f159e72dc65b17d9b20a
7
- data.tar.gz: 763a85abc89d74765a733aa187a1a148f94eb0d6aa22132d4f11ce58898737ef024bae191da4d4399a7885bcd0cb12eea85a5b75528309a5f1afe692155a168a
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.1)
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 uglify-es -g
15
- $ bundle exec rackup
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 uglify-es)
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
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'opal', '0.11.4'
3
+ gem 'opal'
4
4
  gem 'opal-sprockets'
5
5
  gem 'rake'
6
6
  gem 'yard'
data/Gemfile.lock CHANGED
@@ -1,50 +1,48 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dxopal (1.5.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.0)
12
- concurrent-ruby (1.1.5)
13
- hike (1.2.3)
14
- nio4r (2.5.2)
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
- hike (~> 1.2)
18
- parser (= 2.3.3.1)
19
- sourcemap (~> 0.1.0)
20
- opal-sprockets (0.4.3.0.11.0.3.7)
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 (2.3.3.1)
25
- ast (~> 2.2)
26
- puma (4.3.1)
21
+ parser (3.3.3.0)
22
+ ast (~> 2.4.1)
23
+ racc
24
+ puma (6.4.2)
27
25
  nio4r (~> 2.0)
28
- rack (2.1.1)
29
- rake (13.0.1)
30
- sourcemap (0.1.1)
31
- sprockets (3.7.2)
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 (> 1, < 3)
31
+ rack (>= 2.2.4, < 4)
34
32
  thor (0.20.3)
35
- tilt (2.0.10)
36
- yard (0.9.24)
33
+ tilt (2.3.0)
34
+ yard (0.9.36)
37
35
 
38
36
  PLATFORMS
39
- ruby
37
+ arm64-darwin-21
40
38
 
41
39
  DEPENDENCIES
42
40
  dxopal!
43
- opal (= 0.11.4)
41
+ opal
44
42
  opal-sprockets
45
43
  puma
46
44
  rake
47
45
  yard
48
46
 
49
47
  BUNDLED WITH
50
- 2.0.2
48
+ 2.4.13
data/README.md CHANGED
@@ -1,21 +1,25 @@
1
1
  # DXOpal
2
2
 
3
- Game development framework for [Opal](http://opalrb.org/),
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](http://opalrb.org/)
20
+ - [Opal](https://opalrb.com/)
17
21
  - [DXRuby](http://dxruby.osdn.jp/)
18
- - [Bxfr](http://www.bfxr.net/) examples/apple_catcher/sounds/Explosion2.wav is made by this
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 => ["build/dxopal.min.js", "starter-kit/dxopal.min.js"]
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 "uglifyjs #{t.source} -o #{t.name}"
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/ opal/**/*.rb"
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