ippa-chingu 0.4.6 → 0.4.7

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.
data/chingu.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{chingu}
5
- s.version = "0.4.6"
5
+ s.version = "0.4.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["ippa"]
9
- s.date = %q{2009-08-27}
9
+ s.date = %q{2009-08-28}
10
10
  s.description = %q{Game framework built on top of the OpenGL accelerated game lib Gosu.
11
11
  It adds simple yet powerfull game states, prettier inputhandling, deploymentsafe asset-handling, a basic re-usable game object and automation of common task.}
12
12
  s.email = ["ippa@rubylicio.us"]
data/lib/chingu.rb CHANGED
@@ -34,5 +34,5 @@ require 'set'
34
34
  end
35
35
 
36
36
  module Chingu
37
- VERSION = "0.4.6"
37
+ VERSION = "0.4.7"
38
38
  end
@@ -106,6 +106,7 @@ module Chingu
106
106
  @game_states[-1] = new_state
107
107
  end
108
108
  end
109
+ self.inside_state = current_game_state
109
110
  end
110
111
  end
111
112
  alias :switch :switch_game_state
@@ -139,6 +140,7 @@ module Chingu
139
140
  # Push new state on top of stack and therefore making it active
140
141
  @game_states.push(new_state)
141
142
  end
143
+ self.inside_state = current_game_state
142
144
  end
143
145
  end
144
146
  alias :push :push_game_state
@@ -170,6 +172,7 @@ module Chingu
170
172
  transitional_game_state = @transitional_game_state.new(current_game_state, @transitional_game_state_options)
171
173
  self.switch_game_state(transitional_game_state, :transitional => false)
172
174
  end
175
+ self.inside_state = current_game_state
173
176
  end
174
177
  alias :pop :pop_game_state
175
178
 
@@ -187,6 +190,7 @@ module Chingu
187
190
  #
188
191
  def clear_game_states
189
192
  @game_states.clear
193
+ self.inside_state = nil
190
194
  end
191
195
  alias :clear :clear_game_states
192
196
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ippa-chingu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - ippa
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-27 00:00:00 -07:00
12
+ date: 2009-08-28 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -80,6 +80,7 @@ files:
80
80
  - lib/chingu/window.rb
81
81
  has_rdoc: false
82
82
  homepage: http://github.com/ippa/chingu/tree/master
83
+ licenses:
83
84
  post_install_message:
84
85
  rdoc_options:
85
86
  - --main
@@ -101,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
102
  requirements: []
102
103
 
103
104
  rubyforge_project: chingu
104
- rubygems_version: 1.2.0
105
+ rubygems_version: 1.3.5
105
106
  signing_key:
106
107
  specification_version: 3
107
108
  summary: Game framework built on top of the OpenGL accelerated game lib Gosu