pario 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -133,7 +133,6 @@ 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
137
136
  game.show
138
137
  EOF
139
138
  main_template.result(binding)
@@ -144,6 +143,9 @@ game_template = ERB.new <<-EOF
144
143
  class #{game_name.capitalize} < Gosu::Window
145
144
  def initialize(window_width, window_height)
146
145
  super(window_width,window_height,0)
146
+
147
+ # set $game_window as a global variable
148
+ set_game_window(self)
147
149
  @background_image = background_image "media/pario_background.png"
148
150
  end
149
151
 
@@ -2,7 +2,7 @@ module Pario #:nodoc:
2
2
  module Version
3
3
  MAJOR = '0'
4
4
  MINOR = '5'
5
- MICRO = '3'
5
+ MICRO = '4'
6
6
 
7
7
  STRING = [MAJOR, MINOR, MICRO].compact.join('.')
8
8
  end
@@ -23,6 +23,12 @@ module Util
23
23
  $game_window.button_down?(key_const)
24
24
  end
25
25
 
26
+ def set_game_window(game)
27
+ # For now, use $game_window
28
+ # This may change
29
+ $game_window = game
30
+ end
31
+
26
32
  # positioning layers within a game
27
33
  # module ZOrder
28
34
  # Background, UI = *0..3
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pario
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 3
10
- version: 0.5.3
9
+ - 4
10
+ version: 0.5.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bill Davenport
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-03-12 00:00:00 -05:00
19
+ date: 2011-03-14 00:00:00 -04:00
20
20
  default_executable: pario
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency