Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Modernize!
  • Loading branch information
jqr committed Mar 28, 2013
1 parent e979b7d commit 8c3fdbb
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 14 deletions.
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source "https://rubygems.org"

gem "gosu"
gem "activesupport", "2.3.8", require: "active_support"
12 changes: 12 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,12 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (2.3.8)
gosu (0.7.45)

PLATFORMS
ruby

DEPENDENCIES
activesupport (= 2.3.8)
gosu
8 changes: 2 additions & 6 deletions README.rdoc
Expand Up @@ -7,13 +7,9 @@ http://github.com/indyrb/port/raw/master/screenshots/2009-04-14.png

== Running

First, install the Gosu gem and activesupport.
First, install the gem dependencies:

gem install gosu activesupport

If you haven't already, download the source.
git clone git://github.com/indyrb/port.git
cd port
bundle install

Now you should be able to run the game!

Expand Down
3 changes: 3 additions & 0 deletions bin/port
@@ -1,5 +1,8 @@
#!/usr/bin/env ruby

require "bundler"
Bundler.require

APP_ROOT = File.join(File.dirname(__FILE__), "..")

options = {}
Expand Down
15 changes: 7 additions & 8 deletions lib/port.rb
@@ -1,9 +1,6 @@
require 'rubygems'
require 'gosu'
require 'logger'
require 'activesupport'

$: << File.join(File.dirname(__FILE__))
$: << File.join(File.dirname(__FILE__), 'lib')

require 'port/ext/array'
require 'port/ext/hash'
Expand All @@ -26,17 +23,19 @@
require 'port/cloud'
require 'port/score'
require 'port/fps_counter'
Dir.glob(File.join(APP_ROOT, 'lib', 'port', 'vehicles', '*.rb')) do |file|
require file
end
require 'port/vehicles/bomber'
require 'port/vehicles/fighter'
require 'port/vehicles/old_fighter'
require 'port/vehicles/space_shuttle'
require 'port/vehicles/stealth_bomber'

class Application
attr_accessor :window

def self.logger
@logger ||= Logger.new(STDOUT)
end

def initialize(options = {})
self.window = Window.new(self, options)
end
Expand Down

0 comments on commit 8c3fdbb

Please sign in to comment.