Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 14f52f4a88637959f8bdf7ebce95c786d2a425d1 1 parent 89f47b3
Jacob Davis authored
17 lib/help.rb
... ... @@ -1,9 +1,7 @@
1 1 class Help < Chingu::GameState
2 2 traits :timer
3   - Chingu::Text.trait :asynchronous
4 3
5   -
6   - def initialize(options = {})
  4 + def initialize(options ={})
7 5 super
8 6 @white = Gosu::Color.new(255,255,255,255)
9 7 @color = Gosu::Color.new(225,0,0,0)
@@ -11,13 +9,17 @@ def initialize(options = {})
11 9 @label = Gosu::Font.new($window, $default_font, 30)
12 10 @text = Gosu::Font.new($window, $menu_font, 12)
13 11 @label_1 = "Controls"
14   - @text_1 = "- Move player with a,s,d,f or arrow keys"
  12 + @text_1 = "- Move player with a,w,s,d or arrow keys"
15 13 @text_2 = "- Fire with enter or space"
16 14 @label_2 = "System Messages"
17 15 @text_3 = "- #{Help.the_gmessage}"
18 16 @testy = ""
19 17 @testt = "You are going to be cool".scan(/./)
20 18 self.input = { :d => :download_page }
  19 +
  20 + @update = Sound["update.ogg"]
  21 +
  22 + play_update
21 23
22 24 # @testt.each do |i|
23 25 # @testy += i
@@ -32,13 +34,18 @@ def gmessage(gmessage)
32 34 end
33 35 end
34 36
  37 + def play_update
  38 + @update.play(1.0, 1.0, false)
  39 + end
  40 +
  41 +
35 42 def download_page
36 43 Launchy.open("http://ismyhc.github.com/galaxoid/")
37 44 end
38 45
39 46 def button_up(id)
40 47 pop_game_state(:setup => false) if id == Gosu::KbEscape # Return the previous game state, dont call setup()
41   - end
  48 + end
42 49
43 50 def draw
44 51 previous_game_state.draw # Draw prev game state onto screen (in this case our level)
BIN  lib/sounds/update.ogg
Binary file not shown
2  lib/start_menu.rb
@@ -94,7 +94,7 @@ def debug
94 94
95 95 def load
96 96 @select_sound.play(0.4, 3.0, false)
97   - after(100) { push_game_state(Play) }
  97 + after(200) { push_game_state(Play) }
98 98 end
99 99
100 100 def finalize

0 comments on commit 14f52f4

Please sign in to comment.
Something went wrong with that request. Please try again.