Skip to content

Commit

Permalink
made the game run on osx
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoertink committed Apr 17, 2015
1 parent c37e9d9 commit 3224368
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 5 deletions.
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
megaman
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.9.3
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
source 'https://rubygems.org'

gem 'gosu', '0.7.45', :platform => :ruby
gem 'chingu', '0.9rc9', :platform => :ruby
13 changes: 13 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
GEM
remote: https://rubygems.org/
specs:
chingu (0.9rc9)
gosu (>= 0.7.45)
gosu (0.7.45)

PLATFORMS
ruby

DEPENDENCIES
chingu (= 0.9rc9)
gosu (= 0.7.45)
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,13 @@ You can create your game level:
Follow the link if you want to [install on Linux](https://github.com/TheBlasfem/megamanruby/wiki)

Feel free to fork the repo, send your pull request with more enemies and items! ;)

## OSX Setup

* Install ruby 1.9.3 (these gems have issues with 2.0.x)
* `brew install sdl2 libogg libvorbis`
* `bundle`

## Playing

`ruby Main.rb`
2 changes: 1 addition & 1 deletion game_states/intro.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Intro < GameState
def initialize
super
#Sound["opening.wav"].play
Sound["opening.wav"].play
self.input = {:return => Play}
end
def draw
Expand Down
8 changes: 4 additions & 4 deletions play.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
:factor_y: 1.0
:alpha: 255
- EnemyFace:
:x: 599.0
:y: 405.0
:x: 228.0
:y: 522.0
:angle: 0
:zorder: 999999
:factor_x: 1
Expand Down Expand Up @@ -169,9 +169,9 @@
:alpha: 255
- EnemyTiny:
:x: 3096.0
:y: 504.0
:y: 531.0
:angle: 0
:zorder: 999999
:factor_x: 1
:factor_y: 1
:factor_y: 1.0
:alpha: 255

0 comments on commit 3224368

Please sign in to comment.