pario 0.5.2 → 0.5.3

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.
@@ -133,6 +133,7 @@ config = YAML::load(File.open("config/config.yml"))
133
133
  include Util
134
134
 
135
135
  game = #{game_name.capitalize}.new(config[:screen_height], config[:screen_width])
136
+ $game_window = game
136
137
  game.show
137
138
  EOF
138
139
  main_template.result(binding)
@@ -2,7 +2,7 @@ module Pario #:nodoc:
2
2
  module Version
3
3
  MAJOR = '0'
4
4
  MINOR = '5'
5
- MICRO = '2'
5
+ MICRO = '3'
6
6
 
7
7
  STRING = [MAJOR, MINOR, MICRO].compact.join('.')
8
8
  end
@@ -20,7 +20,7 @@ module Util
20
20
  # #########################
21
21
  def key_pressed?(key)
22
22
  key_const = Gosu.const_get(:"Kb#{key.to_s.gsub(/\b\w/){$&.upcase}}")
23
- button_down?(key_const)
23
+ $game_window.button_down?(key_const)
24
24
  end
25
25
 
26
26
  # positioning layers within a game
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pario
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 13
4
5
  prerelease:
5
- version: 0.5.2
6
+ segments:
7
+ - 0
8
+ - 5
9
+ - 3
10
+ version: 0.5.3
6
11
  platform: ruby
7
12
  authors:
8
13
  - Bill Davenport
@@ -11,7 +16,7 @@ autorequire:
11
16
  bindir: bin
12
17
  cert_chain: []
13
18
 
14
- date: 2011-03-09 00:00:00 -05:00
19
+ date: 2011-03-12 00:00:00 -05:00
15
20
  default_executable: pario
16
21
  dependencies:
17
22
  - !ruby/object:Gem::Dependency
@@ -22,6 +27,11 @@ dependencies:
22
27
  requirements:
23
28
  - - ~>
24
29
  - !ruby/object:Gem::Version
30
+ hash: 55
31
+ segments:
32
+ - 0
33
+ - 7
34
+ - 26
25
35
  version: 0.7.26
26
36
  type: :runtime
27
37
  version_requirements: *id001
@@ -61,17 +71,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
71
  requirements:
62
72
  - - ">="
63
73
  - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
64
77
  version: "0"
65
78
  required_rubygems_version: !ruby/object:Gem::Requirement
66
79
  none: false
67
80
  requirements:
68
81
  - - ">="
69
82
  - !ruby/object:Gem::Version
83
+ hash: 21
84
+ segments:
85
+ - 1
86
+ - 3
87
+ - 7
70
88
  version: 1.3.7
71
89
  requirements: []
72
90
 
73
91
  rubyforge_project: pario
74
- rubygems_version: 1.5.2
92
+ rubygems_version: 1.4.2
75
93
  signing_key:
76
94
  specification_version: 3
77
95
  summary: A Gosu game framework