Skip to content

Commit

Permalink
various fixes and stuff for win32 exe release with ocra
Browse files Browse the repository at this point in the history
  • Loading branch information
ippa committed Nov 1, 2009
1 parent 7899155 commit 187a67b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
lib
pkg
.gem
.git
14 changes: 10 additions & 4 deletions Main.rb
@@ -1,11 +1,17 @@
require 'rubygems'
require 'opengl'
GAMEROOT = File.dirname(File.expand_path($0))
require 'rubygems' unless RUBY_VERSION =~ /1\.9/
$: << File.join(GAMEROOT,"lib")
ENV['PATH'] = File.join(GAMEROOT,"lib") + ";" + ENV['PATH']
require 'chingu'
#require '../chingu/lib/chingu'
require 'opengl'
include Gosu
include Chingu

require_all('models')
require 'rest_client'
require 'crack'
require_all File.join(GAMEROOT,"models")

exit if defined?(Ocra)

#
# Monkeypatch some in wait for new chingu
Expand Down
1 change: 1 addition & 0 deletions build.bat
@@ -0,0 +1 @@
ocra Main.rb --no-autodll media\** sounds\** models\** lib\**\**\**
2 changes: 1 addition & 1 deletion models/intro_state.rb
Expand Up @@ -47,7 +47,7 @@ def initialize(options = {})
@sweep.play

Text.size = 120
Text.font = "media/game_over.ttf"
Text.font = media_path("game_over.ttf")
@drop_text = Array.new
@drop_text << Text.create("IPPA", :y => -600*4, :color => 0xFFFF0000, :stop_at => 100, :sound => "intro_1.wav", :falling => true)
@drop_text << Text.create("& DEPS", :y => -700*4, :color => 0xFF00FF00, :stop_at => 200, :sound => "intro_2.wav", :falling => true)
Expand Down

1 comment on commit 187a67b

@ippa
Copy link
Collaborator

@ippa ippa commented on 187a67b Dec 4, 2009

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.