Permalink
Browse files

Added update.ogg for when game is out of date.

  • Loading branch information...
1 parent 89f47b3 commit 14f52f4a88637959f8bdf7ebce95c786d2a425d1 @ismyhc committed Aug 8, 2012
Showing with 13 additions and 6 deletions.
  1. +12 −5 lib/help.rb
  2. BIN lib/sounds/update.ogg
  3. +1 −1 lib/start_menu.rb
View
@@ -1,23 +1,25 @@
class Help < Chingu::GameState
traits :timer
- Chingu::Text.trait :asynchronous
-
- def initialize(options = {})
+ def initialize(options ={})
super
@white = Gosu::Color.new(255,255,255,255)
@color = Gosu::Color.new(225,0,0,0)
#@font = Gosu::Font[35]
@label = Gosu::Font.new($window, $default_font, 30)
@text = Gosu::Font.new($window, $menu_font, 12)
@label_1 = "Controls"
- @text_1 = "- Move player with a,s,d,f or arrow keys"
+ @text_1 = "- Move player with a,w,s,d or arrow keys"
@text_2 = "- Fire with enter or space"
@label_2 = "System Messages"
@text_3 = "- #{Help.the_gmessage}"
@testy = ""
@testt = "You are going to be cool".scan(/./)
self.input = { :d => :download_page }
+
+ @update = Sound["update.ogg"]
+
+ play_update
# @testt.each do |i|
# @testy += i
@@ -32,13 +34,18 @@ def gmessage(gmessage)
end
end
+ def play_update
+ @update.play(1.0, 1.0, false)
+ end
+
+
def download_page
Launchy.open("http://ismyhc.github.com/galaxoid/")
end
def button_up(id)
pop_game_state(:setup => false) if id == Gosu::KbEscape # Return the previous game state, dont call setup()
- end
+ end
def draw
previous_game_state.draw # Draw prev game state onto screen (in this case our level)
View
Binary file not shown.
View
@@ -94,7 +94,7 @@ def debug
def load
@select_sound.play(0.4, 3.0, false)
- after(100) { push_game_state(Play) }
+ after(200) { push_game_state(Play) }
end
def finalize

0 comments on commit 14f52f4

Please sign in to comment.