-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanups and modifications for compatibility w/ latest Chingu
- Loading branch information
ippa
committed
Sep 30, 2009
1 parent
93c8514
commit 38e4893
Showing
7 changed files
with
41 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
class GameOver < Chingu::GameState | ||
|
||
def initialize(options) | ||
super | ||
@score = options[:score] | ||
@text = Chingu::Text.new(:text => "GAME OVER - They stole all your riches. Score: #{@score}.", :x => 200, :y => 200, :size => 30, :zorder => 1000) | ||
@text2 = Chingu::Text.new(:text => "ESC: quit SPACE: try again",:x => 400, :y => 300, :size => 20, :zorder => 1000) | ||
self.input = { :esc => :exit, :space => :play_again } | ||
@text = Chingu::Text.create(:text => "GAME OVER - They stole all your riches. Score: #{@score}.", :x => 200, :y => 200, :size => 30, :zorder => 1000) | ||
@text2 = Chingu::Text.create(:text => "ESC: quit SPACE: try again",:x => 400, :y => 300, :size => 20, :zorder => 1000) | ||
self.input = { :esc => :exit, :space => Cavern } | ||
end | ||
|
||
def play_again | ||
switch_game_state(Cavern.new) | ||
end | ||
|
||
# def draw | ||
# previous_game_state.draw | ||
# super | ||
# end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters