smalruby 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of smalruby might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/lib/smalruby/character.rb +5 -5
- data/lib/smalruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62c4a71d12c70b3f8f541117e8f2a3b0997d97f8
|
4
|
+
data.tar.gz: 0549d26ab6a436e5911af7cc6421eddc39d945d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13b00831d432828208910cc8ef1cd6ee914298494224af2d48d179364785c6450aea8f4f078fd00e1247f47759f1680593c72852e924d2bbde35d9829978a2ac
|
7
|
+
data.tar.gz: 316bb5d6cfecd26ea7485206667d3adf6cf2e58406444afe2c6d74fa3f18438cc873d7e0ff11953ccc9602ae67d1e78c3a56f637cca9b436ddac3fd96f8ddf64
|
data/lib/smalruby/character.rb
CHANGED
@@ -31,7 +31,8 @@ module Smalruby
|
|
31
31
|
y: 0,
|
32
32
|
costume: nil,
|
33
33
|
angle: 0,
|
34
|
-
visible: true
|
34
|
+
visible: true,
|
35
|
+
rotation_style: :free
|
35
36
|
}
|
36
37
|
opt = process_optional_arguments(option, defaults)
|
37
38
|
|
@@ -45,7 +46,6 @@ module Smalruby
|
|
45
46
|
@threads = []
|
46
47
|
@checking_hit_targets = []
|
47
48
|
@angle = 0 unless Util.windows?
|
48
|
-
@rotation_style = :free
|
49
49
|
|
50
50
|
self.scale_x = 1.0
|
51
51
|
self.scale_y = 1.0
|
@@ -57,9 +57,9 @@ module Smalruby
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
if opt[:angle] != 0
|
61
|
-
|
62
|
-
|
60
|
+
self.angle = opt[:angle] if opt[:angle] != 0
|
61
|
+
|
62
|
+
self.rotation_style = opt[:rotation_style]
|
63
63
|
|
64
64
|
# HACK: Windows XP SP3の環境でワーカースレッドで音声を読み込めな
|
65
65
|
# い不具合が発生した。このためメインスレッドでプリロードしておく。
|
data/lib/smalruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smalruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouji Takao
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|