This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/jdavis/Development/galaxoid/pkg/galaxoid_0_1_OSX/Galaxoid.app/Contents/Resources/vendor/gems/chingu-0.8.1/lib/chingu/assets.rb:37:in `autoload': Can't load image "outerspace_pattern.jpg" (RuntimeError) | |
from /Users/jdavis/Development/galaxoid/pkg/galaxoid_0_1_OSX/Galaxoid.app/Contents/Resources/vendor/gems/chingu-0.8.1/lib/chingu/named_resource.rb:109:in `[]' | |
from /Users/jdavis/Development/galaxoid/pkg/galaxoid_0_1_OSX/Galaxoid.app/Contents/Resources/application/lib/start_menu.rb:11:in `initialize' | |
from /Users/jdavis/Development/galaxoid/pkg/galaxoid_0_1_OSX/Galaxoid.app/Contents/Resources/vendor/gems/chingu-0.8.1/lib/chingu/game_state_manager.rb:300:in `new' | |
from /Users/jdavis/Development/galaxoid/pkg/galaxoid_0_1_OSX/Galaxoid.app/Contents/Resources/vendor/gems/chingu-0.8.1/lib/chingu/game_state_manager.rb:300:in `game_state_instance' | |
from /Users/jdavis/Development/galaxoid/pkg/galaxoid_0_1_OSX/Galaxoid.app/Contents/Resources/vendor/gems/chingu-0.8.1/lib/chingu/game_state_manager.rb:148:in `push_g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ /Users/ge.unx.sas.com/vol/vol420/u42/jacdav/Dropbox/pkg/galaxoid_0_1_OSX/Galaxoid.app/Contents/MacOS/Galaxoid ; exit; | |
/Users/ge.unx.sas.com/vol/vol420/u42/jacdav/Dropbox/pkg/galaxoid_0_1_OSX/Galaxoid.app/Contents/Resources/lib/rexml/source.rb:169:in `initialize': uninitialized constant Encoding::UTF_8 (NameError) | |
from /Users/ge.unx.sas.com/vol/vol420/u42/jacdav/Dropbox/pkg/galaxoid_0_1_OSX/Galaxoid.app/Contents/Resources/lib/rexml/source.rb:17:in `new' | |
from /Users/ge.unx.sas.com/vol/vol420/u42/jacdav/Dropbox/pkg/galaxoid_0_1_OSX/Galaxoid.app/Contents/Resources/lib/rexml/source.rb:17:in `create_from' | |
from /Users/ge.unx.sas.com/vol/vol420/u42/jacdav/Dropbox/pkg/galaxoid_0_1_OSX/Galaxoid.app/Contents/Resources/lib/rexml/parsers/baseparser.rb:139:in `stream=' | |
from /Users/ge.unx.sas.com/vol/vol420/u42/jacdav/Dropbox/pkg/galaxoid_0_1_OSX/Galaxoid.app/Contents/Resources/lib/rexml/parsers/baseparser.rb:116:in `initialize' | |
from /Users/ge.unx.sas.com/vol/vol420/u42/jacdav/Dropbox/pkg/galaxoid_0_1_OSX/Galaxoid.ap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Galaxoid.app/Contents/Resources/lib/rexml/source.rb:169:in `initialize': uninitialized constant Encoding::UTF_8 (NameError) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GEM | |
remote: http://rubygems.org/ | |
specs: | |
chingu (0.9rc8) | |
gosu (>= 0.7.43) | |
gosu (>= 0.7.43) | |
crack (0.3.1) | |
gosu (0.7.43) | |
mime-types (1.18) | |
ocra (1.3.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'chingu', "0.9rc8" | |
gem 'rest-client', "1.6.7" | |
gem 'crack', :require => ["crack/xml", "crack/json"] | |
group :development do | |
gem 'ocra', '1.3.0' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Play < Chingu::GameState | |
traits :timer, :effect | |
class << self | |
attr_accessor :score | |
end | |
def setup | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void HandleMove (DPadButton dPadButton) | |
{ | |
if(dPadButton._direction == "left") | |
{ | |
GMain.instance.moveLeftPressed = true; | |
dPadButton.alpha = 0.2f; | |
} | |
if(dPadButton._direction == "right") | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void HandleFire (FireButton fireButton) | |
{ | |
if(fireButton._isBeingTouched) | |
{ | |
CreateBullet(); | |
fireButton.alpha = 0.2f; | |
} | |
else if(!fireButton._isBeingTouched) | |
{ | |
fireButton.alpha = 0.1f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Laser/Enemy Collision detection | |
for(int i = _laser.Count-1; i >= 0; i--) | |
{ | |
Laser laser = _laser[i]; | |
Rect laserRect = laser.textureRect.CloneAndScaleThenOffset(laser.scaleX, laser.scaleY, laser.x, laser.y); | |
for(int ii = _enemy.Count-1; ii >= 0; ii--) | |
{ | |
Enemy enemy = _enemy[ii]; | |
Rect enemyRect = enemy.textureRect.CloneAndScaleThenOffset(enemy.scaleX, enemy.scaleY, enemy.x, enemy.y); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// original code.. | |
// | |
private void CreateEnemyEffect(Enemy enemy) | |
{ | |
Vector2 enemyPos = _effectHolder.LocalToLocal(enemy,Vector2.zero); | |
if(_ready) | |
{ | |
for (int i = 0; i < 10; i++) |
OlderNewer