gosu 0.7.24-universal-darwin → 0.7.25-universal-darwin
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/CptnRuby.rb +1 -7
- data/examples/OpenGLIntegration.rb +1 -7
- data/examples/RMagickIntegration.rb +1 -7
- data/examples/TextInput.rb +1 -7
- data/examples/Tutorial.rb +1 -7
- data/lib/gosu.for_1_8.bundle +0 -0
- data/lib/gosu.for_1_9.bundle +0 -0
- data/lib/gosu.rb +0 -0
- data/lib/gosu/patches.rb +22 -11
- metadata +4 -4
data/examples/CptnRuby.rb
CHANGED
@@ -25,13 +25,7 @@
|
|
25
25
|
# ...Enemies, a more sophisticated object system, weapons, title and credits
|
26
26
|
# screens...
|
27
27
|
|
28
|
-
|
29
|
-
# In case you use Gosu via rubygems.
|
30
|
-
require 'rubygems'
|
31
|
-
rescue LoadError
|
32
|
-
# In case you don't.
|
33
|
-
end
|
34
|
-
|
28
|
+
require 'rubygems'
|
35
29
|
require 'gosu'
|
36
30
|
include Gosu
|
37
31
|
|
@@ -3,13 +3,7 @@
|
|
3
3
|
# the block given to Window#gl, and that Gosu Images can be
|
4
4
|
# used as textures using the gl_tex_info call.
|
5
5
|
|
6
|
-
|
7
|
-
# In case you use Gosu via RubyGems.
|
8
|
-
require 'rubygems'
|
9
|
-
rescue LoadError
|
10
|
-
# In case you don't.
|
11
|
-
end
|
12
|
-
|
6
|
+
require 'rubygems'
|
13
7
|
require 'gosu'
|
14
8
|
require 'gl'
|
15
9
|
require 'glu'
|
@@ -11,13 +11,7 @@
|
|
11
11
|
# * The look of dead soldiers is, err, by accident. Soldier.png needs to be
|
12
12
|
# designed in a less obfuscated way :)
|
13
13
|
|
14
|
-
|
15
|
-
# In case you use Gosu via RubyGems.
|
16
|
-
require 'rubygems'
|
17
|
-
rescue LoadError
|
18
|
-
# In case you don't.
|
19
|
-
end
|
20
|
-
|
14
|
+
require 'rubygems'
|
21
15
|
require 'gosu'
|
22
16
|
require 'RMagick'
|
23
17
|
|
data/examples/TextInput.rb
CHANGED
@@ -18,13 +18,7 @@
|
|
18
18
|
# presented here is not mandatory! Gosu only aims to provide enough code for
|
19
19
|
# games (or intermediate UI toolkits) to be built upon it.
|
20
20
|
|
21
|
-
|
22
|
-
# In case you use Gosu via RubyGems.
|
23
|
-
require 'rubygems'
|
24
|
-
rescue LoadError
|
25
|
-
# In case you don't.
|
26
|
-
end
|
27
|
-
|
21
|
+
require 'rubygems'
|
28
22
|
require 'gosu'
|
29
23
|
|
30
24
|
class TextField < Gosu::TextInput
|
data/examples/Tutorial.rb
CHANGED
data/lib/gosu.for_1_8.bundle
CHANGED
Binary file
|
data/lib/gosu.for_1_9.bundle
CHANGED
Binary file
|
data/lib/gosu.rb
CHANGED
File without changes
|
data/lib/gosu/patches.rb
CHANGED
@@ -39,17 +39,28 @@ end
|
|
39
39
|
|
40
40
|
# Color constants (SWIG messes up constants somehow)
|
41
41
|
class Gosu::Color
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
42
|
+
class Constant < Gosu::Color
|
43
|
+
private
|
44
|
+
def alpha=; end
|
45
|
+
def red=; end
|
46
|
+
def green=; end
|
47
|
+
def blue=; end
|
48
|
+
def hue=; end
|
49
|
+
def saturation=; end
|
50
|
+
def value=; end
|
51
|
+
end
|
52
|
+
|
53
|
+
NONE = Gosu::Color::Constant.new(0x00000000)
|
54
|
+
BLACK = Gosu::Color::Constant.new(0xff000000)
|
55
|
+
GRAY = Gosu::Color::Constant.new(0xff808080)
|
56
|
+
WHITE = Gosu::Color::Constant.new(0xffffffff)
|
57
|
+
AQUA = Gosu::Color::Constant.new(0xff00ffff)
|
58
|
+
RED = Gosu::Color::Constant.new(0xffff0000)
|
59
|
+
GREEN = Gosu::Color::Constant.new(0xff00ff00)
|
60
|
+
BLUE = Gosu::Color::Constant.new(0xff0000ff)
|
61
|
+
YELLOW = Gosu::Color::Constant.new(0xffffff00)
|
62
|
+
FUCHSIA = Gosu::Color::Constant.new(0xffff00ff)
|
63
|
+
CYAN = Gosu::Color::Constant.new(0xff00ffff)
|
53
64
|
end
|
54
65
|
|
55
66
|
# Instance methods for button_id_to_char and char_to_button_id
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gosu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 49
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 25
|
10
|
+
version: 0.7.25
|
11
11
|
platform: universal-darwin
|
12
12
|
authors:
|
13
13
|
- Julian Raschke
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-11-02 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies: []
|
22
22
|
|