gosu 0.14.0.pre2-x64-mingw32 → 0.14.0.pre3-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b40c900b571901fab896692a6e5a75edb4185e0fb7aee1b672efdd82a5ca153e
4
- data.tar.gz: 9ea2e02b0002ecaef461714750b1d92b042092e9d56dc19f28a03b37db46fceb
3
+ metadata.gz: f1e104783e7a6d6ca2dc10224d05a497f41bd8d97bb45f72fe04d467d616427f
4
+ data.tar.gz: c9a037ac5559b6cf6efe4541d294ac6d71271a1682985eea639b9310332ac46d
5
5
  SHA512:
6
- metadata.gz: 8948fe124c91357d339f3ea60ea16fa955d541dae8aba9f2e76e3022884424f8a2a4bb3ad9e2c90e135671268ab746a68b6ee7af25b45bbcf9baf6571fcb5584
7
- data.tar.gz: 3d07b93edfc562a26234f11c3765c862aa212ee77e6339eb73e92ec026adf115b00f50133a88e06ff633205dc7fd297c95e16fd2565d1ee08b5101a9f70d913b
6
+ metadata.gz: f971c362e695a3a012a6f19a2c036c2850d7c52b670d3171967443a151d48e9af8da7090d2bc3cac71766d16865d1c29b06b03aafce8f2da2a41e42d58631dc8
7
+ data.tar.gz: 90b620df9339c85d0568f4663c0382bbf285658a0a243a7a46da7f0a283b8a6bdb3cbefcefa11627523fca3ca393bedc8a7d6fabf0728757c1425a9b55f814d3
@@ -129,7 +129,15 @@ class Gosu::Song
129
129
  end
130
130
  end
131
131
 
132
- # Moved some Window-methods to the Gosu::Module
132
+ class Gosu::Font
133
+ def draw_rot(markup, x, y, z, angle, scale_x = 1, scale_y = 1, c = 0xff_ffffff, mode = :default)
134
+ Gosu.rotate(angle, x, y) { draw_markup(markup, x, y, z, scale_x, scale_y, c, mode) }
135
+ end
136
+
137
+ Gosu.deprecate Gosu::Font, :draw_rot, "Font#draw with Gosu.rotate"
138
+ end
139
+
140
+ # Moved some Window methods to the Gosu module.
133
141
  class Gosu::Window
134
142
  # Class methods that have been turned into module methods.
135
143
  class << self
@@ -151,13 +159,12 @@ class Gosu::Window
151
159
  Gosu.send method, *args, &block
152
160
  end
153
161
  end
162
+
163
+ Gosu.deprecate Gosu::Window, :set_mouse_position, "Window#mouse_x= and Window#mouse_y="
154
164
  end
155
165
 
156
166
  # Constants
157
167
  module Gosu
158
- Gosu.deprecate Window, :set_mouse_position, "Window#mouse_x= and Window#mouse_y="
159
- Gosu.deprecate Font, :draw_rot, "Font#draw with Gosu.rotate"
160
-
161
168
  # This was renamed because it's not actually a "copyright notice".
162
169
  # (https://en.wikipedia.org/wiki/Copyright_notice)
163
170
  deprecate_const :GOSU_COPYRIGHT_NOTICE, :LICENSES
@@ -18,6 +18,19 @@ class ::Numeric
18
18
  end
19
19
  end
20
20
 
21
+ class Gosu::Font
22
+ alias_method :draw, :draw_markup
23
+ # draw_text will stop parsing markup in Gosu 1.0.
24
+ alias_method :draw_text, :draw_markup
25
+ end
26
+
27
+ class Gosu::Image
28
+ # from_markup will stop parsing markup in Gosu 1.0.
29
+ def self.from_markup(*args)
30
+ self.from_text(*args)
31
+ end
32
+ end
33
+
21
34
  # Color constants.
22
35
  # This is cleaner than having SWIG define them.
23
36
  module Gosu
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gosu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0.pre2
4
+ version: 0.14.0.pre3
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Julian Raschke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2018-09-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.