Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only Game deserves to be in game.rb

  • Loading branch information...
commit 1ff4628286f5f27b68d04396d1b01a2fa0e6488a 1 parent 1929fc6
@gabebw authored
Showing with 17 additions and 17 deletions.
  1. +1 −1  README.md
  2. +0 −16 game.rb
  3. +16 −0 play.rb
View
2  README.md
@@ -6,7 +6,7 @@ made during a Madison Ruby user group hack night.
To play:
# Ruby 1.9+
- ruby game.rb
+ ruby play.rb
Controls:
View
16 game.rb
@@ -1,17 +1,3 @@
-require 'bundler'
-Bundler.setup
-
-$LOAD_PATH << File.dirname(__FILE__)
-require 'chingu'
-require 'spaceship'
-require 'level'
-require 'enemy'
-
-# Input
-# :holding_left = 'every frame'
-# :left = 'key down'
-# :released_left = 'key up'
-
class Game < Chingu::Window
def initialize
super
@@ -19,5 +5,3 @@ def initialize
push_game_state(Level)
end
end
-
-Game.new.show
View
16 play.rb
@@ -0,0 +1,16 @@
+require 'bundler'
+Bundler.setup
+
+$LOAD_PATH << File.dirname(__FILE__)
+require 'chingu'
+require 'spaceship'
+require 'level'
+require 'enemy'
+require 'game'
+
+# Input
+# :holding_left = 'every frame'
+# :left = 'key down'
+# :released_left = 'key up'
+
+Game.new.show
Please sign in to comment.
Something went wrong with that request. Please try again.