dxopal 1.3.0 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +22 -11
- data/HACKING.md +18 -0
- data/Rakefile +30 -42
- data/TODO.md +2 -2
- data/build/dxopal.js +26126 -18430
- data/build/dxopal.min.js +1 -1
- data/config.ru +2 -2
- data/doc/api/_index.html +7 -138
- data/doc/api/class_list.html +3 -3
- data/doc/api/css/style.css +2 -2
- data/doc/api/file.README.html +6 -6
- data/doc/api/file_list.html +2 -2
- data/doc/api/frames.html +2 -2
- data/doc/api/index.html +6 -6
- data/doc/api/js/app.js +25 -3
- data/doc/api/method_list.html +2 -970
- data/doc/api/top-level-namespace.html +6 -16
- data/doc/en/index.html +3 -2
- data/doc/ja/index.html +3 -2
- data/dxopal.gemspec +2 -2
- data/exe/dxopal +13 -1
- data/{opal → lib}/dxopal.rb +1 -0
- data/{opal → lib}/dxopal/constants/colors.rb +0 -0
- data/{opal → lib}/dxopal/font.rb +5 -0
- data/{opal → lib}/dxopal/image.rb +40 -9
- data/{opal → lib}/dxopal/input.rb +55 -0
- data/{opal → lib}/dxopal/input/key_codes.rb +64 -66
- data/lib/dxopal/patches/require_dxopal.rb +30 -0
- data/{opal → lib}/dxopal/patches/require_remote.rb +0 -0
- data/{opal → lib}/dxopal/remote_resource.rb +2 -2
- data/{opal → lib}/dxopal/sound.rb +0 -0
- data/{opal → lib}/dxopal/sound_effect.rb +0 -0
- data/{opal → lib}/dxopal/sprite.rb +0 -0
- data/{opal → lib}/dxopal/sprite/collision_area.rb +0 -0
- data/{opal → lib}/dxopal/sprite/collision_check.rb +0 -0
- data/{opal → lib}/dxopal/sprite/collision_checker.rb +0 -0
- data/{opal → lib}/dxopal/sprite/physics.rb +0 -0
- data/lib/dxopal/version.rb +3 -0
- data/{opal → lib}/dxopal/window.rb +0 -0
- metadata +24 -23
- data/opal/dxopal/version.rb +0 -3
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
# Patch to ignore `require "dxopal"`
|
3
|
+
#
|
4
|
+
|
5
|
+
# TODO: why this does not work?
|
6
|
+
#module DXOpal
|
7
|
+
# module PatchRequire
|
8
|
+
# def require(*args)
|
9
|
+
# if args == ['dxopal']
|
10
|
+
# # Do nothing
|
11
|
+
# else
|
12
|
+
# super
|
13
|
+
# end
|
14
|
+
# end
|
15
|
+
# end
|
16
|
+
#
|
17
|
+
# Kernel.prepend(PatchRequire)
|
18
|
+
#end
|
19
|
+
|
20
|
+
module Kernel
|
21
|
+
alias dxopal_orig_require require
|
22
|
+
end
|
23
|
+
|
24
|
+
def require(*args)
|
25
|
+
if args == ['dxopal']
|
26
|
+
# Do nothing, because DXOpal is already loaded and you don't need to find it
|
27
|
+
else
|
28
|
+
dxopal_orig_require(*args)
|
29
|
+
end
|
30
|
+
end
|
File without changes
|
@@ -37,9 +37,9 @@ module DXOpal
|
|
37
37
|
def self._load_resources(&block)
|
38
38
|
@@resources.each do |klass_name, items|
|
39
39
|
klass = @@klasses[klass_name]
|
40
|
-
items.each do |name, (
|
40
|
+
items.each do |name, (block2, args)|
|
41
41
|
if !@@promises[klass_name][name]
|
42
|
-
instance, promise = klass._load(*args, &
|
42
|
+
instance, promise = klass._load(*args, &block2)
|
43
43
|
@@instances[klass_name][name] = instance
|
44
44
|
@@promises[klass_name][name] = promise
|
45
45
|
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dxopal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yutaka HARA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: '0.20'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: '0.20'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- DEVELOPMENT.md
|
54
54
|
- Gemfile
|
55
55
|
- Gemfile.lock
|
56
|
+
- HACKING.md
|
56
57
|
- README.md
|
57
58
|
- Rakefile
|
58
59
|
- TODO.md
|
@@ -90,23 +91,24 @@ files:
|
|
90
91
|
- dxopal.gemspec
|
91
92
|
- exe/dxopal
|
92
93
|
- index.html
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
96
|
-
-
|
97
|
-
-
|
98
|
-
-
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
94
|
+
- lib/dxopal.rb
|
95
|
+
- lib/dxopal/constants/colors.rb
|
96
|
+
- lib/dxopal/font.rb
|
97
|
+
- lib/dxopal/image.rb
|
98
|
+
- lib/dxopal/input.rb
|
99
|
+
- lib/dxopal/input/key_codes.rb
|
100
|
+
- lib/dxopal/patches/require_dxopal.rb
|
101
|
+
- lib/dxopal/patches/require_remote.rb
|
102
|
+
- lib/dxopal/remote_resource.rb
|
103
|
+
- lib/dxopal/sound.rb
|
104
|
+
- lib/dxopal/sound_effect.rb
|
105
|
+
- lib/dxopal/sprite.rb
|
106
|
+
- lib/dxopal/sprite/collision_area.rb
|
107
|
+
- lib/dxopal/sprite/collision_check.rb
|
108
|
+
- lib/dxopal/sprite/collision_checker.rb
|
109
|
+
- lib/dxopal/sprite/physics.rb
|
110
|
+
- lib/dxopal/version.rb
|
111
|
+
- lib/dxopal/window.rb
|
110
112
|
- template/index.html
|
111
113
|
- template/main.rb
|
112
114
|
homepage: https://yhara.github.io/dxopal/
|
@@ -129,8 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
131
|
- !ruby/object:Gem::Version
|
130
132
|
version: '0'
|
131
133
|
requirements: []
|
132
|
-
|
133
|
-
rubygems_version: 2.7.6
|
134
|
+
rubygems_version: 3.0.3
|
134
135
|
signing_key:
|
135
136
|
specification_version: 4
|
136
137
|
summary: Game development framework for Opal
|
data/opal/dxopal/version.rb
DELETED