Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 14f52f4a88637959f8bdf7ebce95c786d2a425d1 1 parent 89f47b3
@ismyhc authored
View
17 lib/help.rb
@@ -1,9 +1,7 @@
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)
@@ -11,13 +9,17 @@ def initialize(options = {})
@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
BIN  lib/sounds/update.ogg
Binary file not shown
View
2  lib/start_menu.rb
@@ -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.
Something went wrong with that request. Please try again.