gosu 0.10.8-x86-mingw32 → 0.11.0-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/1.8/gosu.so +0 -0
- data/lib/1.9/gosu.so +0 -0
- data/lib/2.0/gosu.so +0 -0
- data/lib/2.1/gosu.so +0 -0
- data/lib/2.2/gosu.so +0 -0
- data/lib/2.3/gosu.so +0 -0
- data/lib/SDL2.dll +0 -0
- data/lib/gosu/patches.rb +35 -19
- data/lib/gosu/run.rb +13 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cda19127db5a6c0629b0d927ac0c30cc7a6bfef9
|
4
|
+
data.tar.gz: b1fadae0368eaa24bd55872e3152d6f1276eecfe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f151d2f5732d1f56ded034389d4e8409d4ebd829c5199df774a80ef4fd54382a6389498c908c8260d4e426ca12fbecf35fd9844dc4852ec650065bdd159c6a0e
|
7
|
+
data.tar.gz: 21d48bf607a7f5fa4e0918e889410daf5d54337787232aade9b6b55f21838b825e9a32412e1d21aee5603d6549489aaa61252f065c3b5bed919c0265b169cdce
|
data/lib/1.8/gosu.so
CHANGED
Binary file
|
data/lib/1.9/gosu.so
CHANGED
Binary file
|
data/lib/2.0/gosu.so
CHANGED
Binary file
|
data/lib/2.1/gosu.so
CHANGED
Binary file
|
data/lib/2.2/gosu.so
CHANGED
Binary file
|
data/lib/2.3/gosu.so
CHANGED
Binary file
|
data/lib/SDL2.dll
CHANGED
Binary file
|
data/lib/gosu/patches.rb
CHANGED
@@ -4,31 +4,43 @@ class ::Numeric
|
|
4
4
|
def degrees_to_radians
|
5
5
|
self * Math::PI / 180.0
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
def radians_to_degrees
|
9
9
|
self * 180.0 / Math::PI
|
10
10
|
end
|
11
|
-
|
11
|
+
|
12
12
|
def gosu_to_radians
|
13
13
|
(self - 90) * Math::PI / 180.0
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
def radians_to_gosu
|
17
17
|
self * 180.0 / Math::PI + 90
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
21
|
# Backwards compatibility:
|
22
|
-
#
|
23
|
-
|
24
|
-
|
22
|
+
# Support for KbLeft instead of KB_LEFT and Gp3Button2 instead of GP_3_BUTTON_2.
|
23
|
+
# Also import old-style constants into Gosu::Button.
|
24
|
+
module Gosu::Button; end
|
25
|
+
Gosu.constants.grep(/^KB_|MS_|GP_/).each do |c|
|
26
|
+
old_name = case c
|
27
|
+
when :KB_ISO then "KbISO"
|
28
|
+
when :KB_NUMPAD_PLUS then "KbNumpadAdd"
|
29
|
+
when :KB_NUMPAD_MINUS then "KbNumpadSubtract"
|
30
|
+
when :KB_EQUALS then "KbEqual"
|
31
|
+
when :KB_LEFT_BRACKET then "KbBracketLeft"
|
32
|
+
when :KB_RIGHT_BRACKET then "KbBracketRight"
|
33
|
+
else c.to_s.capitalize.gsub(/_(.)/) { $1.upcase }
|
34
|
+
end
|
35
|
+
Gosu.const_set old_name, Gosu.const_get(c)
|
36
|
+
Gosu::Button.const_set old_name, Gosu.const_get(c)
|
25
37
|
end
|
26
38
|
|
27
39
|
# Backwards compatibility:
|
28
40
|
# Passing a Window to initialize and from_text has been deprecated in Gosu 0.9.
|
29
41
|
class Gosu::Image
|
30
42
|
alias initialize_without_window initialize
|
31
|
-
|
43
|
+
|
32
44
|
def initialize(*args)
|
33
45
|
if args[0].is_a? Gosu::Window then
|
34
46
|
if args.size == 7 then
|
@@ -40,11 +52,11 @@ class Gosu::Image
|
|
40
52
|
initialize_without_window(*args)
|
41
53
|
end
|
42
54
|
end
|
43
|
-
|
55
|
+
|
44
56
|
class << self
|
45
57
|
alias from_text_without_window from_text
|
46
58
|
end
|
47
|
-
|
59
|
+
|
48
60
|
def self.from_text(*args)
|
49
61
|
if args.size == 4
|
50
62
|
from_text_without_window(args[1], args[3], :font => args[2])
|
@@ -61,7 +73,7 @@ end
|
|
61
73
|
# Passing a Window to Sample#initialize has been deprecated in Gosu 0.7.17.
|
62
74
|
class Gosu::Sample
|
63
75
|
alias initialize_without_window initialize
|
64
|
-
|
76
|
+
|
65
77
|
def initialize(*args)
|
66
78
|
args.shift if args.first.is_a? Gosu::Window
|
67
79
|
initialize_without_window(*args)
|
@@ -72,7 +84,7 @@ end
|
|
72
84
|
# Passing a Window to Song#initialize has been deprecated in Gosu 0.7.17.
|
73
85
|
class Gosu::Song
|
74
86
|
alias initialize_without_window initialize
|
75
|
-
|
87
|
+
|
76
88
|
def initialize(*args)
|
77
89
|
args.shift if args.first.is_a? Gosu::Window
|
78
90
|
initialize_without_window(*args)
|
@@ -85,7 +97,7 @@ module Gosu
|
|
85
97
|
class ImmutableColor < Color
|
86
98
|
private :alpha=, :red=, :green=, :blue=, :hue=, :saturation=, :value=
|
87
99
|
end
|
88
|
-
|
100
|
+
|
89
101
|
class Color
|
90
102
|
NONE = Gosu::ImmutableColor.new(0x00_000000)
|
91
103
|
BLACK = Gosu::ImmutableColor.new(0xff_000000)
|
@@ -109,18 +121,18 @@ end
|
|
109
121
|
class Gosu::Window
|
110
122
|
# Backwards compatibility:
|
111
123
|
# Class methods that have been turned into module methods.
|
112
|
-
|
124
|
+
|
113
125
|
def self.button_id_to_char(id)
|
114
126
|
Gosu.button_id_to_char(id)
|
115
127
|
end
|
116
|
-
|
128
|
+
|
117
129
|
def self.char_to_button_id(ch)
|
118
130
|
Gosu.char_to_button_id(ch)
|
119
131
|
end
|
120
|
-
|
132
|
+
|
121
133
|
# Backwards compatibility:
|
122
134
|
# Instance methods that have been turned into module methods.
|
123
|
-
|
135
|
+
|
124
136
|
%w(draw_line draw_triangle draw_quad
|
125
137
|
flush gl clip_to record
|
126
138
|
transform translate rotate scale
|
@@ -129,18 +141,22 @@ class Gosu::Window
|
|
129
141
|
Gosu.send method, *args, &block
|
130
142
|
end
|
131
143
|
end
|
132
|
-
|
144
|
+
|
133
145
|
# Call Thread.pass every tick, which may or may not be necessary for friendly co-existence with
|
134
146
|
# Ruby's Thread class.
|
135
|
-
|
147
|
+
|
136
148
|
alias _tick tick
|
137
|
-
|
149
|
+
|
138
150
|
def tick
|
139
151
|
Thread.pass
|
140
152
|
_tick
|
141
153
|
end
|
142
154
|
end
|
143
155
|
|
156
|
+
# Backwards compatibility:
|
157
|
+
# This was renamed, because it's not actually a "copyright notice" (Wikipedia: https://en.wikipedia.org/wiki/Copyright_notice).
|
158
|
+
Gosu::GOSU_COPYRIGHT_NOTICE = Gosu::LICENSES
|
159
|
+
|
144
160
|
# Release OpenAL resources during Ruby's shutdown, not Gosu's.
|
145
161
|
at_exit do
|
146
162
|
Gosu::Song.current_song.stop if Gosu::Song.current_song
|
data/lib/gosu/run.rb
CHANGED
@@ -1,11 +1,20 @@
|
|
1
|
-
#
|
1
|
+
# This script is used by Ruby.app: https://github.com/gosu/ruby_app
|
2
|
+
|
3
|
+
# Replace the load path.
|
2
4
|
$LOAD_PATH.clear
|
3
5
|
$LOAD_PATH << File.dirname(__FILE__)[0..-6]
|
4
6
|
$LOAD_PATH << $LOAD_PATH[0] + '/lib'
|
5
|
-
|
7
|
+
|
8
|
+
# Ruby portions of Gosu.
|
6
9
|
require 'gosu/patches'
|
7
10
|
require 'gosu/swig_patches'
|
11
|
+
|
8
12
|
# Let the application know it is being run from the Mac app wrapper.
|
9
13
|
OSX_EXECUTABLE = true
|
10
|
-
|
11
|
-
|
14
|
+
|
15
|
+
# Main application.
|
16
|
+
begin
|
17
|
+
require 'Main'
|
18
|
+
rescue LoadError
|
19
|
+
require 'main'
|
20
|
+
end
|
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.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Julian Raschke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
2D game development library.
|
@@ -45,17 +45,17 @@ require_paths:
|
|
45
45
|
- lib
|
46
46
|
required_ruby_version: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
|
-
- -
|
48
|
+
- - '>='
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '0'
|
51
51
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - '>='
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
57
|
rubyforge_project:
|
58
|
-
rubygems_version: 2.6.
|
58
|
+
rubygems_version: 2.6.6
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: 2D game development library.
|